How Can EC2 Reach Amazon S3 Without Using the Public Internet?
Short answer
A Create a gateway VPC endpoint for Amazon S3 and add a route table entry so EC2 traffic to S3 stays off the public internet.
Question
Key Takeaways
The test is private connectivity to S3 from inside a VPC, and the trap is reaching for load balancers or Direct Connect instead of the purpose-built gateway VPC endpoint.
A gateway VPC endpoint for Amazon S3, plus a route-table entry pointing S3 traffic to that endpoint, lets EC2 instances in a VPC read and write objects entirely over the AWS private network. This page confirms why option A satisfies the 'no public internet' requirement while the other options describe unsupported or unrelated designs.
Common mistake: Many candidates pick Direct Connect (D) because it sounds private, but Direct Connect links on-premises networks to AWS, not a VPC to an S3 regional endpoint, so it does not solve EC2-to-S3 traffic within AWS.
Expert Analysis
Why the Answer Is Correct
A gateway VPC endpoint for Amazon S3 attaches S3 to the VPC through the AWS private network, and the route-table entry for the S3 prefix list sends all S3-bound traffic to that endpoint instead of an internet gateway or NAT device. Because EC2 instances and S3 then communicate over private addressing, sensitive data never traverses the public internet, which is the exact requirement stated in the scenario. The endpoint also supports an endpoint policy, so access to the target bucket can be scoped to the VPC or to specific IAM principals, adding a security control on top of the private path. No public IPs, internet gateway, or NAT gateway are needed, and the solution costs nothing beyond normal S3 request charges. This is the canonical AWS pattern for private S3 access from a VPC.
Why the Other Options Are Wrong
Option B proposes an internal Network Load Balancer with the S3 bucket as a target, but Amazon S3 cannot be registered as an NLB target group; an NLB operates at Layer 4 for TCP/UDP endpoints such as EC2 instances, IP addresses, or Lambda, so this design is not technically possible. Option C claims an S3 bucket can be deployed inside a VPC, but S3 is a regional AWS service that exists outside customer VPCs and cannot be placed in a subnet or reached by a route to a bucket. Option D uses AWS Direct Connect, which is a dedicated private connection between an on-premises data center and AWS, not a mechanism for VPC-to-S3 traffic within the same Region, and it would also require additional infrastructure that the question does not mention.
Community Comment Notes
Every recorded voter selected option A, and the reasoning is consistent with the AWS documentation. As sandordini summarized, there is "no internet, S3 > gateway VPC endpoint", pointing directly at the private-path requirement. Mikado211 made the same link by quoting the question's own phrase, writing that "data cannot be sent over the public internet." == VPC Endpoint, and mk168898 repeated that a gateway VPC endpoint is the answer when internet access is disallowed. Scheldon and Awsbeginner87 simply logged A without further commentary, so no voter raised a credible objection to the gateway endpoint design.
Exam Strategy
When a question states that traffic must not traverse the public internet and the target is Amazon S3 (or DynamoDB), think 'gateway VPC endpoint plus route-table entry' before considering any appliance, load balancer, or hybrid-connectivity option. Eliminate answers that place an AWS managed service such as S3 inside a VPC or that target S3 from a load balancer, because those violate how the services actually work. Reserve Direct Connect and Site-to-Site VPN for scenarios that connect on-premises networks to AWS, not VPC-to-service traffic.
Official Reference
- https://docs.aws.amazon.com/vpc/latest/privatelink/vpc-endpoints-s3.html
- https://docs.aws.amazon.com/vpc/latest/privatelink/gateway-endpoints.html
These links open the official vendor documentation in a new tab.
Exam Strategy
Treat any 'must not use the public internet' requirement for S3 access as an instant cue for a gateway VPC endpoint plus the S3 prefix-list route. Rule out options that put S3 inside a VPC or use a load balancer as an S3 target, since neither is a supported AWS construct. Keep Direct Connect and VPN in mind only for on-premises-to-AWS connectivity questions.
Frequently Asked Questions
Why is an internal Network Load Balancer the wrong way to reach Amazon S3 from EC2?
Does a gateway VPC endpoint really keep S3 traffic off the public internet?
Community Votes
100% of anonymous learners picked answer A. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 6 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 6
-
sandordini 👍 3 Answered Ano internet, S3 > gateway VPC endpoint
-
mk168898 👍 2not allowed to access internet, and need to access S3 => gateway VPC endpoint
-
Mikado211 👍 2 Answered A"data cannot be sent over the public internet." == VPC Endpoint
-
Tanidanindo 👍 2 Answered AVPC endpoint
-
Awsbeginner87 👍 2 Answered AOption A
Show 1 more comment
-
Scheldon 👍 2 Answered AAnswerA
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
Related Analysis
Practice All SAA-C03 Questions
Access 120 questions with complete answers and detailed explanations.
View Full SAA-C03 Practice Test →