Question 1,173 of 1,546
Networking and Content DeliveryhardMultiple SelectObjective-mapped

Internet Access for Private Subnets Using NAT Gateway — Explained

This SOA-C02 practice question tests your understanding of networking and content delivery. The scenario asks you to isolate a root cause — eliminate options that address a different problem before choosing. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

Which THREE configurations are required to enable an EC2 instance in a private subnet to access the internet for software updates while preventing inbound internet traffic?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Attach an Internet Gateway to the VPC.

An Internet Gateway (IGW) is required for any VPC to enable internet connectivity. Without an IGW, traffic cannot leave or enter the VPC from the internet. For a private subnet EC2 instance to reach the internet for software updates, the VPC must have an IGW attached, and the NAT Gateway (placed in a public subnet) uses the IGW to forward outbound traffic while blocking inbound connections.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Attach an Internet Gateway to the VPC.

    Why this is correct

    The internet gateway is required for the NAT gateway to access the internet.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Assign an Elastic IP address to the EC2 instance.

    Why it's wrong here

    Associating an Elastic IP would make the instance public, allowing inbound traffic.

  • Add a route to the private subnet's route table with destination 0.0.0.0/0 pointing to the NAT Gateway.

    Why this is correct

    This routes outbound traffic from private instances to the NAT gateway.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Deploy a bastion host in the private subnet.

    Why it's wrong here

    A bastion host is for inbound SSH/RDP access, not for outbound internet.

  • Place a NAT Gateway in a public subnet.

    Why this is correct

    The NAT gateway enables outbound traffic from private subnets.

    Related concept

    Read the scenario before looking for a memorised answer.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates often think a NAT Gateway alone is sufficient, forgetting that an Internet Gateway must be attached to the VPC for the NAT Gateway to route traffic to the internet, or they mistakenly believe an Elastic IP on the instance itself is needed for outbound access.

Detailed technical explanation

How to think about this question

Under the hood, a NAT Gateway in a public subnet uses the IGW to translate private IP addresses to the NAT Gateway's Elastic IP for outbound traffic (source NAT). The private subnet's route table must have a default route (0.0.0.0/0) pointing to the NAT Gateway's private IP; the NAT Gateway then forwards traffic to the IGW. In real-world scenarios, this setup is critical for instances that need to download patches or access external APIs without exposing a public IP, as the NAT Gateway drops unsolicited inbound traffic at the network layer.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A company's IT admin needs to give a contractor read-only access to production logs without sharing account credentials. Using role-based access control (RBAC) and temporary scoped permissions — not a permanent shared password — is the correct pattern. Questions like this test whether you can apply least-privilege access across cloud identity services.

Visual reference

Inside (Private) PC-A 10.0.0.1 PC-B 10.0.0.2 NAT Router Outside (Public) 203.0.113.1 Inside Global Server PAT: many private IPs share one public IP via unique port numbers

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related SOA-C02 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free SOA-C02 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this SOA-C02 question test?

Networking and Content Delivery — This question tests Networking and Content Delivery — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Attach an Internet Gateway to the VPC. — An Internet Gateway (IGW) is required for any VPC to enable internet connectivity. Without an IGW, traffic cannot leave or enter the VPC from the internet. For a private subnet EC2 instance to reach the internet for software updates, the VPC must have an IGW attached, and the NAT Gateway (placed in a public subnet) uses the IGW to forward outbound traffic while blocking inbound connections.

What should I do if I get this SOA-C02 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

3 more ways this is tested on SOA-C02

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. A company has a VPC with a public subnet and a private subnet. An EC2 instance in the private subnet needs to download patches from the internet. The company has a NAT gateway in the public subnet. Which of the following route table configurations is required for the private subnet to enable internet access through the NAT gateway?

hard
  • A.Add a route to 0.0.0.0/0 pointing to the internet gateway in the private subnet route table
  • B.Add a route to 0.0.0.0/0 pointing to the NAT gateway in the private subnet route table
  • C.Add a route to 0.0.0.0/0 pointing to the NAT gateway in the public subnet route table
  • D.Add a route to the NAT gateway's private IP in the private subnet route table

Why B: Option B is correct because a private subnet route table must have a default route (0.0.0.0/0) pointing to the NAT gateway's elastic network interface (ENI) to forward outbound internet traffic from private instances through the NAT gateway. The NAT gateway, residing in the public subnet, then uses its own route table with a route to the internet gateway (IGW) to reach the internet. Without this route, traffic from the private subnet would have no path to the internet.

Variation 2. A company has a VPC with public and private subnets. An EC2 instance in a private subnet needs to download software patches from the internet. Which component should be used to provide internet access to the instance?

medium
  • A.NAT Gateway in a public subnet
  • B.AWS Site-to-Site VPN
  • C.Internet Gateway attached to the VPC
  • D.VPC Endpoint for Amazon S3

Why A: A NAT Gateway in a public subnet allows EC2 instances in private subnets to initiate outbound traffic to the internet (e.g., to download patches) while preventing unsolicited inbound connections. The NAT Gateway uses an Elastic IP and routes traffic from the private subnet through the internet gateway attached to the VPC, translating the private IP to the public IP of the NAT Gateway.

Variation 3. A company has a VPC with a public subnet and a private subnet. The private subnet contains an EC2 instance that must access the internet for software updates. Which TWO actions are required to enable this? (Choose TWO.)

medium
  • A.Add an Internet Gateway to the private subnet's route table.
  • B.Deploy a NAT Gateway in a public subnet.
  • C.Assign a public IP address to the EC2 instance.
  • D.Attach an Internet Gateway to the NAT Gateway.
  • E.Add a route in the private subnet's route table pointing to the NAT Gateway for 0.0.0.0/0.

Why B: A NAT Gateway in a public subnet provides outbound internet access for private instances while preventing inbound connections. The private subnet's route table must include a default route (0.0.0.0/0) pointing to the NAT Gateway, enabling traffic to be forwarded to the internet via the Internet Gateway attached to the VPC.

Keep practising

More SOA-C02 practice questions

Last reviewed: Jul 4, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This SOA-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SOA-C02 exam.