AWS Certified Solutions Architect – Associate (SAA-C03) — Question 658

A solutions architect creates a VPC that includes two public subnets and two private subnets. A corporate security mandate requires the solutions architect to launch all Amazon EC2 instances in a private subnet. However, when the solutions architect launches an EC2 instance that runs a web server on ports 80 and 443 in a private subnet, no external internet traffic can connect to the server.

What should the solutions architect do to resolve this issue?

Answer options

Correct answer: B

Explanation

Deploying an internet-facing Application Load Balancer (ALB) in the public subnets allows it to receive external internet traffic and route it to the EC2 instances in the private subnets. A NAT gateway only supports outbound-initiated connections and cannot accept incoming web requests from the internet. Additionally, EC2 instances in private subnets do not have public IP addresses, making direct DNS resolution to the instance impossible.