QuestionQ12

VerifiedDesign Secure Architectures

A solutions architect is designing a VPC with public and private subnets. The VPC and the 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 need internet access so that Amazon EC2 instances can download software updates.

What should the solutions architect do to enable internet access for the private subnets?

Explanation

For IPv4 private subnets, outbound internet access is provided by a NAT device, and AWS recommends using NAT gateways. In a multi-AZ design, AWS guidance is to create a NAT gateway in each Availability Zone and configure each private subnet's route table to send non-VPC traffic to the NAT gateway in the same AZ, which preserves resiliency if one AZ fails. An egress-only internet gateway applies only to IPv6, and an internet gateway does not provide the required private-subnet outbound pattern for IPv4.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!