Bird
0
0

You have a private subnet with a NAT Gateway route, but instances cannot reach the internet. You notice the NAT Gateway's subnet does not have a route to the Internet Gateway. What should you do?

hard📝 Application Q9 of 15
AWS - VPC Fundamentals
You have a private subnet with a NAT Gateway route, but instances cannot reach the internet. You notice the NAT Gateway's subnet does not have a route to the Internet Gateway. What should you do?
AAdd a route in the NAT Gateway's public subnet route table to the Internet Gateway
BAdd a route in the private subnet to the Internet Gateway
CAssign public IPs to private subnet instances
DDelete the NAT Gateway and use a Virtual Private Gateway
Step-by-Step Solution
Solution:
  1. Step 1: Understand NAT Gateway subnet routing

    NAT Gateway resides in a public subnet that must route outbound traffic to Internet Gateway.
  2. Step 2: Fix missing route

    Adding route 0.0.0.0/0 to Internet Gateway in NAT Gateway's subnet route table enables internet access.
  3. Final Answer:

    Add a route in the NAT Gateway's public subnet route table to the Internet Gateway -> Option A
  4. Quick Check:

    NAT Gateway subnet needs route to Internet Gateway [OK]
Quick Trick: Public subnet with NAT Gateway must route to Internet Gateway [OK]
Common Mistakes:
  • Adding Internet Gateway route to private subnet
  • Assigning public IPs to private instances unnecessarily
  • Replacing NAT Gateway with Virtual Private Gateway

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes