An enterprise runs a data processing application on Amazon EC2 instances located in private subnets. The application downloads and processes of raw files daily from an Amazon S3 bucket located in the same AWS Region. Currently, all traffic to Amazon S3 is routed through a NAT Gateway, which has led to high monthly NAT Gateway data processing charges. A solutions architect must optimize the network architecture to minimize data transfer costs without compromising security. Which modification will achieve the highest cost savings?
- ADeploy an Interface VPC Endpoint (AWS PrivateLink) for Amazon S3 in each private subnet and update the application endpoint configuration.
- Create a Gateway VPC Endpoint for Amazon S3 and associate it with the route tables of the private subnets.Answer
- CSet up an AWS Transit Gateway to route the S3 traffic to a centralized VPC containing a shared NAT Gateway.
- DConfigure the EC2 instances with public IP addresses and route S3 traffic directly through an Internet Gateway.
Answer
Create a Gateway VPC Endpoint for Amazon S3 and associate it with the route tables of the private subnets.
Creating a Gateway VPC Endpoint for Amazon S3 is the most cost-effective and secure solution. Gateway VPC Endpoints are offered at no cost, with no hourly charges or data processing fees. By associating the endpoint with the private subnet route tables, S3 traffic bypasses the NAT Gateway entirely, eliminating the high data processing fees while keeping the EC2 instances secure in their private subnets.
Step-by-Step Solution
Key Concept
Gateway VPC Endpoints provide a free, secure pathway for VPC resources to access Amazon S3 and DynamoDB without traversing a NAT Gateway or utilizing public IP addresses.
Estimated Time:1m 30s