Question 190
A service architecture uses secure VPC routing and endpoint DNS. The team confirms that a public subnet has a route to the internet gateway but the NAT gateway is placed in a private subnet. Which choice directly addresses the documented cause?
Explanation
Correct Answer
The scenario identifies this requirement: A public subnet has a route to the internet gateway but the NAT gateway is placed in a private subnet. Select Deploy public NAT gateway in a public subnet with suitable public address and route as the specified technical mechanism. A public NAT gateway requires internet-gateway reachability for internet egress. This response addresses the problem described rather than a different design goal.
Incorrect Answers
The option Replace transitive peering assumptions with supported TGW design addresses a separate condition: a centralized VPC peer is expected to route traffic onward through another peering connection. VPC peering connections cannot provide arbitrary transitive routing. The actual requirement is a public subnet has a route to the internet gateway but the NAT gateway is placed in a private subnet. Recommended corrective action: Deploy public NAT gateway in a public subnet with suitable public address and route. A public NAT gateway requires internet-gateway reachability for internet egress.
Enable supported VPC DNS resolution and hostname settings would help if interface endpoint private DNS fails because VPC DNS settings are disabled. Private endpoint hostnames depend on VPC DNS configuration. That is not the symptom described here: a public subnet has a route to the internet gateway but the NAT gateway is placed in a private subnet. The matching response is Deploy public NAT gateway in a public subnet with suitable public address and route, because a public NAT gateway requires internet-gateway reachability for internet egress.
Associate the subnet route table with the S3 gateway endpoint solves a different operational problem where a private subnet route sends S3 traffic to NAT despite an existing gateway endpoint. Route association is required for the private S3 prefix route. It does not directly address a public subnet has a route to the internet gateway but the NAT gateway is placed in a private subnet. The case calls for Deploy public NAT gateway in a public subnet with suitable public address and route, since a public NAT gateway requires internet-gateway reachability for internet egress.