Route 53 Routing Policies for Healthy Web Servers in AWS VPC

Create Resource Record for Accessing Healthy Web Servers

Prev Question Next Question

Question

You are currently configuring Route 53 routing policies.

You want to create a recordset for a group of Web servers in your AWS VPC.

When a user requests for the resource record, they should be able to access only the healthy web servers defined in the VPC.

Which of the following resource record would you create?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

Answer - D.

Options A, B and C are invalid because, for such a requirement, you have to use the Multivalue answer resource record.

The AWS Documentation mentions the following.

Multivalue answer routing lets you configure Amazon Route 53 to return multiple values, such as IP addresses for your web servers, in response to DNS queries.

You can specify multiple values for almost any record, but multivalue answer routing also lets you check the health of each resource.

So, Route 53 returns only value for healthy resources.

It's not a substitute for a load balancer, but the ability to return multiple health-checkable IP addresses is a way to use DNS to improve availability and load balancing.

For more information on Routing policy's, please refer to the below URL.

https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-policy.html

The routing policy that can fulfill the requirement of accessing only the healthy web servers in a VPC when a user requests for the resource record is the Multivalue answer routing policy.

The Multivalue answer routing policy allows creating up to eight records with the same name and type, but different IP addresses. When a user requests for the resource record, Route 53 returns all the IP addresses in random order. This way, the user's request is distributed among all the healthy web servers defined in the VPC, and if any of the web servers are unhealthy or become unavailable, Route 53 automatically removes them from the list of IP addresses.

In contrast, the Simple routing policy is the default policy that returns a single IP address for the resource record. It does not provide any load balancing or failover capabilities.

The Weighted routing policy can route traffic to different resources based on the percentage of traffic that each resource can handle. However, it does not have any built-in health checks, and it requires manually configuring the weights for each resource.

The Failover routing policy is used to route traffic to a secondary resource when the primary resource becomes unavailable. It is not suitable for load balancing and does not provide any health checking capabilities.

Therefore, in this scenario, the Multivalue answer routing policy is the most appropriate choice as it provides load balancing and failover capabilities while ensuring that only the healthy web servers are accessible to the users.