
Answer-first summary for fast verification
Answer: For each ALB, create an A record that has a latency-based routing policy to route app.example.com as an alias to the ALB. Set the value for Evaluate Target Health to Yes for the records.
The question requires a DNS solution that routes users to the AWS Region providing the lowest response time and fails over to the next Region if the application is unavailable. Option D is the correct choice because it uses a latency-based routing policy, which is designed to route traffic to the AWS Region that provides the lowest latency (and thus the fastest response time) for the user. Additionally, setting 'Evaluate Target Health' to Yes ensures that Route 53 will only route traffic to healthy resources, providing automatic failover if the application becomes unavailable in the initially intended Region. This meets all the requirements specified in the question. Options A and B suggest using a geolocation routing policy, which routes traffic based on the geographic location of the user, not the lowest latency. Option C suggests creating a single A record with a latency-based routing policy, but it does not specify setting 'Evaluate Target Health' to Yes, which is crucial for automatic failover.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
A company is deploying a web application across two AWS Regions, with one VPC in each Region. Each VPC contains three Amazon EC2 instances serving as web servers behind an Application Load Balancer (ALB). The company has already set up an Amazon Route 53 public hosted zone for example.com, and users will access the application using the FQDN app.example.com.
The company requires a DNS solution that enables global users to access the application by routing their requests to the Region with the lowest response time. Additionally, the solution must automatically fail over to the next-best Region if the application becomes unavailable in the initially selected Region.
Which solution meets these requirements?
A
For each ALB, create an A record that has a geolocation routing policy to route app.example.com to the IP addresses of the ALB. Configure a Route 53 HTTP health check that monitors each ALB by IP address. Associate the health check with the A records.
B
Create an A record that has a geolocation routing policy to route app.example.com to the IP addresses for both ALBs. Configure a Route 53 health check that monitors TCP port 80 for each ALB by IP address. Associate the health check with the A records.
C
Create an A record that has a latency-based routing policy to route app.example.com as an alias to one of the ALBs. Configure a Route 53 health check that monitors TCP port 80 for each ALB by IP address. Associate the health check with the A records.
D
For each ALB, create an A record that has a latency-based routing policy to route app.example.com as an alias to the ALB. Set the value for Evaluate Target Health to Yes for the records.