How to design a private DNS failover solution for on-premises to AWS connectivity?
A company is planning to migrate an internal application to the AWS Cloud. The application will run on Amazon EC2 instances in one VPC. Users will access the application from the company's on-premises data center through AWS VPN or AWS Direct Connect. Users will use private domain names for the application endpoint from a domain name that is reserved explicitly for use in the AWS Cloud. Each EC2 instance must have automatic failover to another EC2 instance in the same AWS account and the same VPC. A network engineer must design a DNS solution that will not expose the application to the internet. Which solution will meet these requirements?
Community Votes
100% of anonymous learners picked answer C. Votes are pick records left by other test-takers — they are not the verified answer.
Community Insight
Route 53 health checkers cannot directly reach private IP addresses; to fail over private endpoints you must use a CloudWatch alarm as the health check target.
This question tests the design of a private DNS failover architecture using Route 53 private hosted zones, Route 53 Resolver inbound endpoints, and CloudWatch-based health checks for EC2 instances in private subnets accessed from on-premises.
Many candidates choose D because it uses native Route 53 health checks directly on private IPs, forgetting that Route 53 health checkers live on the public internet and cannot resolve or reach private VPC addresses without a public IP.
Community Discussion (6 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
The scenario requires three things: (1) DNS resolution of an AWS-reserved private domain from on-premises, (2) automatic failover between EC2 instances in the same VPC, and (3) no exposure of the application to the internet.
Why Option C is Correct
Option C correctly combines all the required components:
- Private subnets keep the EC2 instances unreachable from the internet.
- A Route 53 private hosted zone (PHZ) is associated with the VPC, ensuring the AWS-reserved domain is resolved only inside the VPC and through authorized resolvers.
- A Route 53 Resolver inbound endpoint allows on-premises DNS resolvers (connected via VPN or Direct Connect) to forward queries for the AWS domain into the VPC.
- Primary and failover records in the PHZ provide the required automatic failover between EC2 instances.
- Because the EC2 instances are in private subnets, Route 53 health checkers (which operate from public internet locations) cannot reach them directly. The correct workaround is to create a CloudWatch alarm that monitors application health and then attach the Route 53 health check to that CloudWatch alarm. This is the officially documented pattern for health-checking private resources.
Why the Other Options Are Wrong
- Option A assigns public IP addresses to the EC2 instances and uses an outbound endpoint. Outbound endpoints are for forwarding queries from AWS to on-premises, not the other way around. Public IPs also violate the requirement to not expose the application to the internet.
- Option B uses a public hosted zone, which would make the application's DNS records visible on the public internet — violating the core requirement.
- Option D attempts to set up Route 53 health checks directly on the private IP addresses of the EC2 instances. This is impossible because Route 53 health checkers reside outside the VPC and cannot route to private RFC 1918 addresses. Without a CloudWatch alarm intermediary, the health check will fail and failover will not work.
Community Consensus
The community strongly supports C (86%). Commenters correctly point out that "Route 53 health checkers need a public IP" and that for private resources you "can only use CloudWatch" as the health check target, referencing the official AWS blog on performing Route 53 health checks on private resources with CloudWatch.
Official Reference
- https://aws.amazon.com/blogs/networking-and-content-delivery/performing-route-53-health-checks-on-private-resources-in-a-vpc-with-aws-lambda-and-amazon-cloudwatch/
- https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-fail-over-configuring-health-checks.html
- https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/resolver.html
Exam Strategy
When a question mentions private IPs and Route 53 health checks, immediately recall that Route 53 health checkers are public. Look for the CloudWatch alarm bridge in the correct answer; any option that health-checks a private IP directly is a trap.
Related Analysis
Practice All ANS-C01 Questions
Access 137 questions with complete answers and detailed explanations.
View Full ANS-C01 Practice Test →