AWS Certified Solutions Architect – Professional (SAP-C02) — Question 349

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

To support IPv6 communication while preventing inbound connections from the public internet, you must use an egress-only internet gateway, which is designed specifically to allow stateful outbound-only IPv6 traffic from private subnets. Standard NAT gateways do not support translation or routing for IPv6 traffic, making options B and D incorrect. Additionally, assigning an Amazon-provided IPv6 CIDR block is the standard and recommended way to enable IPv6 within an AWS VPC.