Courseiva
Infrastructure Security →easyMultiple Choice

SCS-C02 Infrastructure Security Practice Question

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. Which AWS service should be used to allow this without assigning a public IP address to the instance?

⚠ Common exam trap

The trap is assuming a VPC Endpoint provides internet access — candidates conflate private connectivity to AWS services with general internet egress, but only a NAT Gateway (or NAT instance) enables outbound internet for private subnets without public IPs.

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

✓

NAT Gateway

A NAT Gateway is the correct service because it allows instances in a private subnet to initiate outbound connections to the internet (e.g., to download patches) while remaining unreachable from the internet and without needing a public IP. The NAT Gateway resides in a public subnet, has an Elastic IP, and performs source NAT (SNAT) on traffic from the private subnet, translating the private source IP to its own public IP. This satisfies the requirement of outbound-only internet access without exposing the instance.

Answer analysis

Option-by-option breakdown

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

  • ✗

    Internet Gateway

    Why it's wrong here

    An Internet Gateway is a redundant VPC component that provides two-way connectivity between your VPC and the public internet, but it only works for instances that have public IP addresses and that live in subnets with a route pointing to the gateway. In a private subnet, instances typically have no public IP, so an Internet Gateway alone cannot be their default route; the subnet's route table would instead point to a NAT Gateway, which then uses the Internet Gateway to reach the internet. Thus, the Internet Gateway does not supply outbound-only access to private instances without an additional NAT device.

  • ✗

    VPC Endpoint

    Why it's wrong here

    An interface or gateway VPC Endpoint provides private connectivity to a specific AWS service, such as S3, DynamoDB, or Lambda, using the AWS network instead of the public internet. Traffic destined for those services stays within the AWS backbone and does not traverse an Internet Gateway or NAT Gateway. A VPC Endpoint cannot be used as a general-purpose route to the internet, as it only resolves and forwards traffic to the particular service endpoints it is configured for, and it lacks the translation and routing capabilities needed for arbitrary external destinations.

  • ✓

    NAT Gateway

    Why this is correct

    A NAT Gateway is a fully managed AWS service that enables instances in a private subnet to initiate outbound connections to the internet while preventing unsolicited inbound connections. It sits in a public subnet, uses an Elastic IP for source NAT, and forwards traffic through the Internet Gateway. Because it preserves the flow state, return traffic from the internet is translated back to the private instance, but no external host can directly initiate a session into the private subnet.

  • ✗

    VPN Connection

    Why it's wrong here

    A Site-to-Site VPN Connection establishes an encrypted, IPsec tunnel between your VPC and a remote on-premises network, such as a corporate data center or branch office. It is designed for hybrid network extension, where private IP traffic traverses the tunnel to reach internal resources, not for generic outbound internet access. To get internet egress from a private subnet, you would still need a NAT device or a NAT gateway, because a VPN alone does not perform source translation or provide a default route to the public internet.

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

About these practice questions

This SCS-C02 question is part of Courseiva's 1,205-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official Amazon Web Services exam blueprint

This SCS-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 SCS-C02 exam.