ANS-C01 · Question #204
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…
The correct answer is C. Place the EC2 instances in private subnets. Create an Amazon Route 53 private hosted zone for. To host an internal application in private subnets with private DNS and automatic failover, use an Amazon Route 53 private hosted zone and configure health checks, allowing on-premises users to resolve private domain names via secure connectivity.
Question
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?
Options
- AAssign public IP addresses to the EC2 instances. Create an Amazon Route 53 private hosted
- BPlace the EC2 instances in private subnets. Create an Amazon Route 53 public hosted zone for
- CPlace the EC2 instances in private subnets. Create an Amazon Route 53 private hosted zone for
- DPlace the EC2 instances in private subnets. Create an Amazon Route 53 private hosted zone for
How the community answered
(50 responses)- A12% (6)
- B8% (4)
- C78% (39)
- D2% (1)
Why each option
To host an internal application in private subnets with private DNS and automatic failover, use an Amazon Route 53 private hosted zone and configure health checks, allowing on-premises users to resolve private domain names via secure connectivity.
Assigning public IP addresses to EC2 instances inherently exposes them to the internet, violating the requirement that the application 'will not expose the application to the internet'.
Creating an Amazon Route 53 public hosted zone makes the application's DNS accessible from the internet, directly conflicting with the requirement that the solution 'will not expose the application to the internet'.
Placing EC2 instances in private subnets ensures the application is not exposed to the internet. An Amazon Route 53 private hosted zone resolves internal domain names only within the VPC and connected networks (via Route 53 Resolver endpoints to on-premises), preventing internet exposure for DNS. Route 53 health checks and associated records provide automatic failover between EC2 instances, meeting all specified requirements efficiently.
While an NLB can provide load balancing and failover, Route 53 can directly perform health checks and failover for EC2 instances' private IPs, making an NLB an additional component that is not strictly necessary for the described failover requirement and increasing complexity. The provided choice D in the question was truncated.
Concept tested: Route 53 Private Hosted Zones for hybrid DNS with failover
Source: https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/hosted-zones-private.html
Community Discussion
No community discussion yet for this question.