Courseiva
Network Security, Compliance and GovernancemediumMultiple ChoiceObjective-mapped

ANS-C01 Network Security, Compliance and Governance Practice Question

A company has a VPC with a public subnet and a private subnet. An EC2 instance in the private subnet needs to access an S3 bucket. The company wants to avoid using a NAT gateway and ensure that traffic does not traverse the internet. Which solution should be used?

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 VPC endpoint for S3 (Gateway type) and update the route table

The correct solution is to create a VPC endpoint for S3 (Gateway type) and update the route table. This allows the EC2 instance in the private subnet to access S3 privately without traversing the internet or using a NAT gateway. Option A is incorrect because attaching an internet gateway and assigning a public IP would expose the instance to the internet. Option C is incorrect because a VPN connection is not necessary for S3 access and would involve additional complexity. Option D is incorrect because a NAT gateway would route traffic through the internet, which the company wants to avoid.

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 and assign a public IP to the instance

    Why it's wrong here

    This makes the instance public and uses the internet.

  • Create a VPC endpoint for S3 (Gateway type) and update the route table

    Why this is correct

    This provides private connectivity to S3 without internet.

  • Set up a VPN connection to the S3 bucket

    Why it's wrong here

    S3 supports VPC endpoints, not VPN.

  • Deploy a NAT gateway in the public subnet and route traffic through it

    Why it's wrong here

    This uses the internet, which is not desired.

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

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

This ANS-C01 question is part of Courseiva's 1,621-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 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.