As asked
Explain how DNS resolution works for an EC2 instance inside a VPC. Where does the resolver sit, what happens when the instance looks up an RDS endpoint, and how does Route 53 Resolver fit in?
Sample answer outline
Candidate should describe the VPC resolver at the base of the VPC CIDR plus 2 (169.254.169.253), how it resolves both public DNS and Route 53 private hosted zones attached to the VPC, and that RDS endpoints resolve to private IPs within the VPC. Route 53 Resolver Endpoints extend this to resolve on-premises DNS from the VPC and vice versa via forwarding rules.
Expect these follow-ups
- What is the difference between enableDnsSupport and enableDnsHostnames on a VPC?
- How would you resolve an on-premises hostname from a Lambda function in a VPC?