Private S3 Upload from EC2 Without Public Internet
A company needs to move data from an Amazon EC2 instance to an Amazon S3 bucket. The company must ensure that no API calls and no data are routed through public internet routes. Only the EC2 instance can have access to upload data to the S3 bucket. Which solution will meet these requirements?
Community Insight
The question tests which VPC endpoint type for S3 keeps API calls and data off the public internet while still supporting the required network-level controls — and the trap is picking the gateway endpoint option that misdescribes its placement and its security-group support.
This SAA-C03 scenario asks how an EC2 instance can reach an Amazon S3 bucket entirely over private AWS networking while restricting upload rights to that instance's IAM role. The correct design is an interface VPC endpoint for S3 in the instance's subnet combined with a bucket policy that allows only the EC2 instance's IAM role.
Option B is the most-chosen wrong answer because a gateway endpoint is the 'classic' free S3 path, but it is created at the VPC level (not 'in an Availability Zone') and gateway endpoints cannot have security groups attached — only route-table and endpoint policies apply.
Community Discussion (132 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Why the Answer Is Correct
Option A creates an interface VPC endpoint for Amazon S3 in the subnet where the EC2 instance runs, which uses AWS PrivateLink so both API calls and data traverse AWS's private network rather than public internet routes. Interface endpoints are ENI-based resources that live in a specific subnet and accept security-group attachment, so the described configuration is technically valid. The attached S3 bucket resource policy that allows only the EC2 instance's IAM role satisfies the requirement that only that instance can upload. AWS documents exactly this interface (PrivateLink) endpoint pattern for S3 in the Amazon S3 user guide, as Omok linked.Official Reference
Exam Strategy
Read endpoint options literally — if an option attaches security groups to a gateway endpoint or claims a gateway endpoint is created per Availability Zone, it is wrong regardless of the overall design. When a question demands that traffic never leave the AWS network, confirm the option names an interface (PrivateLink) or gateway endpoint rather than routes to published service IP ranges.
Frequently Asked Questions
Why is a gateway VPC endpoint for S3 not the right pick in this question?
Option B describes a gateway endpoint as being created per Availability Zone and attaching security groups, but gateway endpoints are VPC-level route-table targets and support no security groups. The flawed wording makes B invalid.
Why can't I route to S3 using ip-ranges.json or nslookup addresses?
S3's published service IP ranges are public internet addresses, so routing to them still sends traffic over public internet routes. Private connectivity requires a VPC endpoint instead.
Related Analysis
Practice All SAA-C03 Questions
Access 120 questions with complete answers and detailed explanations.
View Full SAA-C03 Practice Test →