Interview Prep/AWS/VPC and Networking

Design a multi-AZ NAT strategy and justify cost versus resilience.

AdvancedScenarioVPC and Networking
Answer

Situation read → One NAT gateway per AZ avoids cross-AZ charges and an AZ-failure blast radius.

What I'd do →

  1. Deploy a NAT gateway in each public subnet
  2. Per-AZ private route tables point to the NAT in the same AZ
  3. For dev, use one NAT to save about $32 per month per gateway
  4. Alarm on ErrorPortAllocation and PacketsDropCount
  5. Use IPv6 or endpoints to reduce the load

Why → An AZ outage with a single NAT takes all private-subnet egress with it.

Interview tip → Prod: one per AZ. Non-prod: one shared.

aws All AWS questions Roadmap: AWS core services

More on VPC and Networking