Courseiva
Network ImplementationmediumMultiple ChoiceObjective-mapped

ANS-C01 Network Implementation 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 an S3 bucket. The company wants to minimize data transfer costs and avoid traversing the internet. Which solution should be implemented?

⚠ Common exam trap

The ANS-C01 exam often tests the distinction between Gateway and Interface VPC Endpoints, trapping candidates who assume all endpoints are Interface-based or that NAT Gateway is the only way to access AWS services from private subnets.

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

A Gateway VPC Endpoint for S3 allows EC2 instances in a private subnet to access S3 without traversing the internet, using AWS's internal network. This minimizes data transfer costs because Gateway Endpoints are free and traffic stays within the AWS backbone, avoiding NAT Gateway or internet gateway charges.

Answer analysis

Option-by-option breakdown

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

  • Use an Interface VPC Endpoint for S3

    Why it's wrong here

    Interface endpoints are for services like API Gateway, not S3.

  • Use AWS Direct Connect

    Why it's wrong here

    Direct Connect is for on-premises connectivity, not needed for VPC to S3.

  • Set up a NAT Gateway in the public subnet and route traffic through it

    Why it's wrong here

    NAT Gateway uses internet and incurs data transfer costs.

  • Create a Gateway VPC Endpoint for S3

    Why this is correct

    Gateway endpoint provides private, low-cost access to S3.

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

Same concept, more angles

3 more ways this is tested on ANS-C01

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 an S3 bucket in the same region. The company wants to minimize data transfer costs and avoid traversing the internet. Which solution should the company implement?

medium
  • A.Create a VPC Interface Endpoint for S3 and attach it to the private subnet.
  • B.Configure an S3 bucket policy to allow access from the VPC and use an Internet Gateway.
  • C.Create a VPC Gateway Endpoint for S3 and attach it to the private subnet's route table.
  • D.Create a NAT Gateway in the public subnet and route traffic to the S3 bucket through it.

Why C: A VPC Gateway Endpoint for S3 provides private, cost-free connectivity to S3 from within a VPC without traversing the internet. It uses prefix-based routing via the route table, ensuring traffic to S3 stays within the AWS network, minimizing data transfer costs and avoiding internet egress charges.

Variation 2. 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 ensure that traffic to S3 does not traverse the internet. Which solution should a network engineer implement?

medium
  • A.Create a VPC interface endpoint for S3 and attach it to the private subnet.
  • B.Deploy an S3 VPN endpoint in the VPC.
  • C.Create a VPC gateway endpoint for S3 and add a route to the S3 prefix list via the endpoint.
  • D.Set up a NAT gateway in the public subnet and add a route to the S3 prefix list via the NAT gateway.

Why C: A VPC gateway 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 S3 prefix list via the gateway endpoint, traffic destined for S3 is directed through the endpoint, which uses AWS's private backbone. This solution is cost-effective and does not require a NAT gateway or internet gateway.

Variation 3. A company has a VPC with public and private subnets. An EC2 instance in a private subnet needs to access an S3 bucket in the same Region. Which solution provides the most secure and cost-effective connectivity?

medium
  • A.Create a NAT gateway in a public subnet and add a route in the private subnet's route table pointing to the NAT gateway.
  • B.Create an interface endpoint for S3 in the private subnet.
  • C.Attach an internet gateway to the VPC and add a route to the internet gateway in the private subnet's route table.
  • D.Create a gateway endpoint for S3 in the VPC and add a route in the private subnet's route table pointing to the endpoint.

Why D: A gateway endpoint for S3 uses Amazon's private network to connect the VPC to S3 without traversing the internet, providing the most secure and cost-effective solution. It avoids NAT gateway hourly charges and data processing fees, and it does not require public IPs or internet access for the private subnet EC2 instance.

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.