nerdexam
Amazon

SAA-C03 · Question #215

A company hosts an Amazon EC2 instance in a private subnet in a new VPC. The VPC also has a public subnet that has the default route set to an internet gateway. The private subnet does not have…

The correct answer is B. Create a NAT gateway in the public subnet. Configure the private subnet route table to use the. Enable outbound internet access for an EC2 instance in a private subnet for security updates while blocking inbound internet-initiated connections.

Submitted by yaw92· Mar 4, 2026Design Secure Architectures

Question

A company hosts an Amazon EC2 instance in a private subnet in a new VPC. The VPC also has a public subnet that has the default route set to an internet gateway. The private subnet does not have outbound internet access. The EC2 instance needs to have the ability to download monthly security updates from an outside vendor. However, the company must block any connections that are initiated from the internet. Which solution will meet these requirements?

Options

  • AConfigure the private subnet route table to use the internet gateway as the default route.
  • BCreate a NAT gateway in the public subnet. Configure the private subnet route table to use the
  • CCreate a NAT instance in the private subnet. Configure the private subnet route table to use the
  • DCreate a NAT instance in the private subnet. Configure the private subnet route table to use the

How the community answered

(40 responses)
  • A
    10% (4)
  • B
    83% (33)
  • C
    5% (2)
  • D
    3% (1)

Why each option

Enable outbound internet access for an EC2 instance in a private subnet for security updates while blocking inbound internet-initiated connections.

AConfigure the private subnet route table to use the internet gateway as the default route.

Configuring the private subnet's route table to use the internet gateway directly would expose the EC2 instance to inbound connections from the internet, violating the security requirement to block such connections.

BCreate a NAT gateway in the public subnet. Configure the private subnet route table to use theCorrect

Creating a NAT Gateway in a public subnet and configuring the private subnet's route table to route outbound internet traffic through it allows the EC2 instance to initiate connections for updates while blocking unsolicited inbound connections from the internet.

CCreate a NAT instance in the private subnet. Configure the private subnet route table to use the

A NAT instance in a private subnet cannot provide outbound internet access without itself having a route to the internet, typically requiring a public subnet, and is less managed and highly available than a NAT Gateway.

DCreate a NAT instance in the private subnet. Configure the private subnet route table to use the

While a NAT instance in a public subnet can provide outbound internet access, it is a less managed and less highly available solution compared to a NAT Gateway, making it not the optimal choice.

Concept tested: NAT Gateway for private subnet outbound access

Source: https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html

Community Discussion

No community discussion yet for this question.

Full SAA-C03 Practice