Courseiva
Network Security, Compliance and GovernancemediumMultiple ChoiceObjective-mapped

ANS-C01 Network Security, Compliance and Governance Practice Question

A company has a VPC with public and private subnets. An application running in a private subnet needs to access an S3 bucket to read and write data. The security team wants to ensure that traffic to S3 does not traverse the internet. Which solution should the team implement?

⚠ Common exam trap

AWS often tests the misconception that a NAT gateway is required for private subnet outbound traffic, but for AWS services like S3, a gateway VPC endpoint provides private connectivity without internet egress.

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

Create a gateway VPC endpoint for S3 and add a route to the endpoint in the private subnet route table.

A gateway VPC endpoint for S3 allows instances in a private subnet to access S3 privately using AWS's internal network, without traversing the internet. By adding a route to the endpoint's prefix list in the private subnet route table, traffic destined for S3 is directed through the endpoint, which uses AWS PrivateLink to provide highly available, redundant connectivity.

Answer analysis

Option-by-option breakdown

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

  • Establish a VPN connection to AWS and route S3 traffic through the VPN.

    Why it's wrong here

    Establishing a VPN connection to AWS is designed for securing traffic between an on-premises network or remote users and a VPC, not for private access from an instance *within* a VPC's private subnet to AWS S3. Routing S3 traffic through a VPN from within the VPC would still traverse the internet or be misconfigured. This option is tempting because VPNs do provide secure, private network extensions, but they are typically used to connect external networks *into* a VPC, not to provide private access *from* a VPC to AWS service endpoints like S3.

  • Configure a NAT gateway in the public subnet and update the private subnet route table with a default route pointing to the NAT gateway.

    Why it's wrong here

    This routes traffic through the internet, not private.

  • Create a gateway VPC endpoint for S3 and add a route to the endpoint in the private subnet route table.

    Why this is correct

    Gateway endpoints provide private access to S3 without traversing the internet.

  • Attach an internet gateway to the VPC and add a route to the S3 prefix list in the private subnet route table.

    Why it's wrong here

    This would route traffic through the internet gateway, which is not private.

Visual reference

192.168.1.0 /24 256 addresses (254 usable) 192.168.1.0 /25 Subnet A 128 addr (126 usable) 192.168.1.128 /25 Subnet B 128 addr (126 usable) Borrowing 1 bit from host portion creates 2 subnets (/25)

Quick reference

AWS S3 Storage Class Comparison

Storage ClassMin DurationRetrievalUse Case
S3 StandardNoneImmediateFrequently accessed data
S3 Standard-IA30 daysImmediateInfrequent access, rapid retrieval
S3 One Zone-IA30 daysImmediateNon-critical infrequent data
S3 Intelligent-TieringNoneImmediate–hoursUnknown or changing access patterns
S3 Glacier Instant90 daysMillisecondsArchive with instant retrieval
S3 Glacier Flexible90 daysMinutes–hoursArchive, flexible retrieval
S3 Glacier Deep Archive180 daysHoursLong-term compliance archive

About these practice questions

Courseiva writes every ANS-C01 question from scratch — 1,621 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 ANS-C01 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 ANS-C01 exam.