Question

Difficulty: EasyNetworking and Connectivity Design

A startup is deploying a payment processing application in a VPC across three Availability Zones. The application instances reside in private subnets and must connect to external payment APIs over the internet. The architecture must protect these instances from inbound internet traffic and survive the failure of any single Availability Zone. Which of the following networking designs should the solutions architect select?

  1. A
    Deploy a single NAT Gateway in a public subnet in one Availability Zone, and configure the route tables of all private subnets across all zones to direct outbound internet traffic to this single NAT Gateway.
  2. Deploy one NAT Gateway in a public subnet within each Availability Zone, and configure the route tables of the private subnets to direct outbound internet traffic to the NAT Gateway in the same zone.Answer
  3. C
    Deploy a Direct Connect Gateway to establish transitive routing between the VPC private subnets and a shared services VPC containing a single NAT Gateway, directing all outbound traffic through the Direct Connect Gateway.
  4. D
    Deploy a NAT Gateway in a shared services VPC and create a Route 53 Private Hosted Zone for the external API endpoints, without associating the hosted zone with the application VPC.

Answer

Deploy one NAT Gateway in a public subnet within each Availability Zone, and configure the route tables of the private subnets to direct outbound internet traffic to the NAT Gateway in the same zone.
Deploying a NAT Gateway in each Availability Zone ensures that if one zone experiences an outage, instances in the remaining zones can still access the internet through their local NAT Gateways. This provides high availability and resilience.

Step-by-Step Solution

1
Analyze the high-availability requirement for outbound internet access across three Availability Zones.
Outbound connectivity must survive the failure of any single Availability Zone.
This requires redundancy at the zone level so that no single zone outage disrupts traffic in other zones.
2
Evaluate the options for NAT Gateway placement.
A single NAT Gateway creates a single point of failure, whereas one NAT Gateway per Availability Zone provides independent path redundancy.
Directing traffic from each private subnet to its local NAT Gateway prevents cross-AZ dependencies.

Key Concept

NAT Gateway redundancy across multiple Availability Zones to ensure high availability and prevent single points of failure.
Estimated Time:1m 0s
Rate this question