Question 43:
You are migrating an existing application to AWS cloud that would be communicating with EC2 instances in the VPC. You need to make this application highly available. The application currently relies on hard-coded host names for communication between the various tiers. You have migrated the application and configured multi-tier using the internal elastic load balancer for serving traffic. The load balancer host name is "demo-app.us-east-1.elb.amazonaws.com". The current hard coded host name in your application for internal communication between your multi-tier application is "demolayer.example.com". How can you architect a solution for high availability?
Answer options:
A.Create an environment variable passed to the EC2 instances using "user-data" with the ELB host name "demo-app.us-east-1.elb.amazonaws.com" B.Create a PRIVATE resource record set using Route53 with a host name of "demolayer.example.com" and an ALIAS record to "demo-app.us-east-1.elb.amazonaws.com" C.Create a PUBLIC resource record set using Route53 with a host name of "demolayer.example.com" and an ALIAS record to "demo-app.us-east-1.elb.amazonaws.com" D.Add a CNAME record to the existing on-premise DNS server with a value of "demo-app.us-east-1.elb.amazonaws.com". Create a PUBLIC resource record set using Route53 with a host name of "applayer.example.com" and an ALIAS record to "demo-app.us-east-1.elb.amazonaws.com"