AWS Certified Solutions Architect – Professional — Question 564

A company is running a workload that consists of thousands of Amazon EC2 instances. The workload is running in a VPC that contains several public subnets and private subnets. The public subnets have a route for 0.0.0.0/0 to an existing internet gateway. The private subnets have a route for 0.0.0.0/0 to an existing NAT gateway.
A solutions architect needs to migrate the entire fleet of EC2 instances to use IPv6. The EC2 instances that are in private subnets must not be accessible from the public internet.
What should the solutions architect do to meet these requirements?

Answer options

Correct answer: C

Explanation

An egress-only internet gateway is specifically designed to allow outbound-only IPv6 communication from private subnets to the internet while blocking any incoming connection attempts from the internet. Traditional NAT gateways do not support IPv6 traffic, as IPv6 uses globally unique addresses and does not require network address translation. Thus, associating an Amazon-provided IPv6 CIDR block and routing the private subnets' ::/0 traffic to an egress-only internet gateway is the correct architectural choice.