CLF-C02 Practice Question 109: Private S3 Access
AWS Certified Cloud Practitioner (CLF-C02) · Test 11 · question 9 of 10
Amazon EC2 instances in a private subnet must read and write objects in an Amazon S3 bucket in the same Region. Security rules say this traffic must not go through an internet gateway or a NAT device, and the company wants to avoid paying extra for the connection itself. What should the company create?
Show answer and explanation
Answer:
A gateway VPC endpoint provides reliable connectivity to Amazon S3 and DynamoDB without requiring an internet gateway or a NAT device. When you create one, a route is added to the selected subnet route tables that sends traffic for the service, identified by an AWS-managed prefix list, to the endpoint. There is no additional charge for gateway endpoints. The route and its prefix list are Region-specific, which fits S3 in the same Region.
Option B would let private instances reach S3, but only by going through the NAT device the rules forbid, and NAT gateways have their own charges. Option C breaks both rules: traffic goes through an internet gateway, and giving the instances public IP addresses effectively makes the subnet public. Option D is a dedicated link between an *on-premises* network and AWS. It does nothing to connect instances inside a VPC to S3.
Reference: Gateway endpoints