S3 Gateway VPC Endpoint vs S3 Interface VPC Endpoint
10-Second Exam Rule:
Private EC2 inside the same VPC talking to S3 or DynamoDB -> Gateway Endpoint ($0/hr, $0/GB). On-premises over Direct Connect/VPN or cross-VPC -> Interface Endpoint (PrivateLink).
Side-by-Side Decision Matrix
| Dimension | Gateway Endpoint | Interface Endpoint (PrivateLink) |
|---|---|---|
| Cost | $0/hr and $0/GB data processing | Hourly per AZ + per-GB data processing |
| Mechanism | Prefix-list route injected in VPC route table | Elastic Network Interface (ENI) with private IP |
| Supported Services | Amazon S3 and DynamoDB only | 100+ AWS services (including S3) |
| On-Premises Access (DX/VPN) | Not supported directly | Supported via PrivateLink private DNS/IP |
| Security Controls | VPC Endpoint Policy + Bucket Policy | Security Groups + Endpoint Policy + Bucket Policy |
Pick S3 Gateway VPC Endpoint when…
- EC2, ECS, or Lambda in private subnets within the same VPC accessing S3 or DynamoDB.
- Prompt emphasizes eliminating NAT Gateway per-GB charges at the lowest cost.
- No requirement to reach S3 privately from on-premises networks.
Pick S3 Interface VPC Endpoint when…
- On-premises servers over Direct Connect or Site-to-Site VPN must access S3 via private IP.
- Workloads in a peered VPC or Transit Gateway spoke need private S3 access.
- You need granular Security Group enforcement on the endpoint ENI.
Primary exam distractor trap
Candidates pick Interface Endpoint whenever they see 'private connectivity to S3', forgetting that Interface Endpoints charge per-AZ hourly + ~$0.01/GB data processing whereas Gateway Endpoints are completely free for same-VPC traffic.
Test if you can spot the rule under pressure
An EC2 fleet in a private subnet uploads 80 TB/month to S3 in the same Region. Traffic must stay off the public internet and minimize cost. Which endpoint should you create?
Practice this exact scenario inside the Pass Workspace
Drill full 4-option CBT scenarios with inline blueprint citations, Distractor X-Ray, and FSRS auto-review.