A solutions architect is designing a VPC with public and private subnets. The VPC and subnets use IPv4 CIDR blocks. There is one public subnet and one private subnet in each of three Availability Zones (AZs) for high availability. An internet gateway provides internet access for the public subnets. The private subnets require internet access so Amazon EC2 instances can download software updates. What should the solutions architect do to enable internet access for the private subnets?
Choose an answer
Tap an option to check your answer.
Correct answer: Create three NAT gateways, one for each public subnet in each AZ. Create a private route table for each AZ that forwards non-VPC traffic to the NAT gateway in its AZ..
Why this is the answer
The correct solution is to create three NAT gateways, one in each public subnet, and configure private route tables to direct traffic to the NAT gateway in the same Availability Zone. This ensures high availability and fault tolerance, as instances in a private subnet will use the NAT Gateway in their AZ, preventing a single point of failure. NAT gateways are a managed service, offering better scalability and less operational overhead than NAT instances. Incorrect options: NAT instances require manual management, patching, and scaling, making them less ideal than NAT gateways for production environments. An internet gateway cannot be directly attached to a private subnet, nor can a VPC have multiple internet gateways. Internet gateways are for public subnets to allow inbound and outbound internet traffic. Egress-only internet gateways are specifically for IPv6 traffic to allow outbound-only internet access from private subnets and are not applicable to IPv4 CIDR blocks.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed