Courseiva
Infrastructure SecurityhardMultiple ChoiceObjective-mapped

SCS-C02 Infrastructure Security Practice Question

A company is designing a VPC with public and private subnets. The application servers in the private subnets need to download patches from the internet. Which architecture provides the highest security while allowing internet access?

⚠ Common exam trap

Many candidates confuse a bastion host (for administrative access) with a NAT device (for outbound internet routing), or incorrectly assume that a VPC endpoint can provide general internet access instead of just private connectivity to specific AWS services.

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

Place a NAT Gateway in the public subnet and configure the private subnet route table to send 0.0.0.0/0 traffic to the NAT Gateway

A NAT Gateway in a public subnet allows instances in private subnets to initiate outbound traffic to the internet (e.g., for patch downloads) while preventing any unsolicited inbound traffic from the internet. The private subnet route table sends 0.0.0.0/0 traffic to the NAT Gateway, which then forwards it through the Internet Gateway (IGW) attached to the VPC. This provides the highest security because the private instances remain unreachable from the internet, unlike using an IGW directly or a bastion host for routing.

Answer analysis

Option-by-option breakdown

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

  • Place a NAT Gateway in the public subnet and configure the private subnet route table to send 0.0.0.0/0 traffic to the NAT Gateway

    Why this is correct

    The NAT Gateway is deployed in a public subnet with an Elastic IP and performs source network address translation for instances in private subnets. Outbound packets are sent to the NAT Gateway via the 0.0.0.0/0 route, and return traffic is delivered back through the same stateful translation. Because private instances lack public IPs and the route table points to the NAT Gateway rather than an internet gateway, unsolicited inbound connections cannot reach them, making this the standard design for outbound-only internet access.

  • Create a VPC endpoint for Amazon S3 and route traffic through it

    Why it's wrong here

    A VPC endpoint for Amazon S3 is a Gateway or Interface endpoint that provides private connectivity to the S3 service only, bypassing the internet entirely. It does not handle general internet traffic, and routing 0.0.0.0/0 to such an endpoint is invalid because the endpoint is tied to a specific service prefix. Even if an S3 endpoint existed, instances would still need a separate path (via NAT or internet gateway) for any other internet-bound traffic, so this option is incomplete and incorrect for the stated requirement.

  • Attach an internet gateway to the private subnet and configure the route table to send 0.0.0.0/0 traffic to the internet gateway

    Why it's wrong here

    Attaching an internet gateway to a subnet and adding a 0.0.0.0/0 route to the internet gateway makes that subnet effectively public, because the internet gateway enables bidirectional communication between the VPC and the internet for any instance with a public IP. A private subnet is defined precisely by the absence of an internet gateway route; adding one would allow unsolicited inbound traffic and defeat the subnet's isolation, so this is the opposite of the intended design.

  • Place a bastion host in the public subnet and configure the private instances to route internet traffic through it

    Why it's wrong here

    A bastion host is designed as a managed jump host for inbound administrative sessions (such as SSH or RDP) from the internet to instances in private subnets, not for outbound internet traffic. To use it as a NAT device, you would need to enable IP forwarding and configure iptables or a similar software NAT, creating a single point of failure and a security risk. The AWS-recommended managed alternative is a NAT Gateway, which is highly available, scales automatically, and does not require instance maintenance.

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

Courseiva writes every SCS-C02 question from scratch — 376 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

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.