AWS Certified Advanced Networking – Specialty (ANS-C01) — Question 169

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?

Answer options

Correct answer: C

Explanation

The correct answer is C because it places the EC2 instances in private subnets and uses a private hosted zone, ensuring that the application is not exposed to the internet. Option A is incorrect as it assigns public IP addresses, which contradicts the requirement. Option B is wrong because it suggests a public hosted zone, which would expose the application. Option D, while using a private hosted zone, incorrectly suggests setting up health checks on private IPs instead of failing over correctly, which makes it less suitable.