Enable private DNS on the VPC so interface endpoint hostnames resolve to private addresses
A company requires that all internal application connectivity use private IP addresses. To facilitate this policy, a solutions architect has created interface endpoints to connect to AWS Public services. Upon testing, the solutions architect notices that the service names are resolving to public IP addresses, and that internal services cannot connect to the interface endpoints. Which step should the solutions architect take to resolve this issue?
Community Votes
100% of anonymous learners picked answer B. Votes are pick records left by other test-takers — they are not the verified answer.
Community Insight
Interface endpoints only receive private DNS names when the enableDnsSupport and enableDnsHostnames properties are turned on for the VPC and the private DNS option is enabled for the specific endpoint, which is a VPC attributes setting rather than a routing setting.
A policy requires all internal application connectivity to use private IP addresses, so interface endpoints were created for AWS public services. Testing shows the service names still resolve to public IP addresses and internal services cannot reach the endpoints.
Adding a route to the interface endpoint or editing its security group. Those settings matter for reachability once name resolution is correct, but here the names are resolving to public addresses, so the failure is at the DNS layer and the security group would be evaluated only after traffic is aimed at the endpoint's private addresses.
Community Discussion (8 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Why the Answer Is Correct
When private DNS is enabled for a VPC and for the interface endpoint, the standard AWS service hostname resolves to the endpoint's private IP addresses through Amazon-provided private hosted zones. Enabling the private DNS option in the VPC attributes is therefore the step that makes the service names resolve to private addresses instead of their public endpoints, and it is what allows the internal services to connect to the interface endpoints at all.Why the Other Options Are Wrong
A: A route in the subnet route table directs traffic destined for the endpoint's private addresses, but the clients are not sending traffic to those addresses because name resolution returns public ones, so the route never matches. C: The security group on the endpoint governs which traffic is accepted once it arrives, which also requires correct name resolution first. D: A Route 53 private hosted zone with a conditional forwarder is a mechanism for resolving internal names to on-premises locations, not for steering AWS service names to interface endpoints.Community Comment Notes
The community voted 92 to 1 for B. The key clarification came from a commenter who noted that option C would be relevant if the names were already resolving to private addresses, but since the observed symptom is resolution to public addresses, the DNS setting is the correct fix.Official Reference
Related Analysis
Practice All SAP-C02 Questions
Access 85 questions with complete answers and detailed explanations.
View Full SAP-C02 Practice Test →