You are defining DNS behavior for an existing VPC that uses CIDR 10.24.34.0/24 and Route 53 Resolver. New requirements state that DNS resolution inside the VPC must use private hosted zones only, while instances that receive public IP addresses must also be assigned corresponding public hostnames. Which configuration ensures correct name resolution within the VPC?
Choose an answer
Tap an option to check your answer.
Correct answer: Create a private hosted zone and associate it with the VPC. Enable the VPC attributes enableDnsSupport and enableDnsHostnames. Create a new VPC DHCP options set that configures domain-name-servers=AmazonProvidedDNS, and associate that DHCP options set with the VPC..
Why this is the answer
The correct option enables private DNS resolution and public hostnames. Creating a private hosted zone and associating it with the VPC allows instances to resolve names within the VPC using the private zone. Enabling enableDnsSupport allows the VPC to use the Amazon DNS server, and enableDnsHostnames ensures that instances with public IP addresses also receive public hostnames. Setting domain-name-servers=AmazonProvidedDNS (the .2 address of the VPC CIDR) directs all DNS queries to the Amazon-provided DNS resolver. The first incorrect option specifies domain-name-servers=10.24.34.2, which is the AmazonProvidedDNS, but it doesn't explicitly state creating and associating a new DHCP options set, which is best practice. The third option incorrectly disables enableDnsSupport, which is necessary for AmazonProvidedDNS to function. The fourth option incorrectly disables enableDnsHostnames, which is required for instances to receive public hostnames.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed