A company has Amazon EC2 instances in a private subnet that frequently transfer hundreds of gigabytes of data to and from an Amazon S3 bucket. The private subnet currently routes all traffic to the internet through a NAT Gateway. The company wants to reduce the high data transfer costs associated with S3 access. Which action is the most cost-effective solution to meet these requirements?
- Create a Gateway VPC Endpoint for Amazon S3 and update the route table of the private subnet to direct S3 traffic to the endpoint.Answer
- BCreate an Interface VPC Endpoint (AWS PrivateLink) for Amazon S3 and route all S3 traffic through it.
- CProvision an additional NAT Gateway in a different Availability Zone to distribute the S3 data transfer load.
- DReplace the NAT Gateway with a NAT Instance to handle the traffic at a lower per-gigabyte data transfer rate.
Answer
Create a Gateway VPC Endpoint for Amazon S3 and update the route table of the private subnet to direct S3 traffic to the endpoint.
Creating a Gateway VPC Endpoint for Amazon S3 and updating the route table is the most cost-effective option because Gateway VPC Endpoints are free to deploy and do not incur data processing or transfer charges. This completely removes the S3 traffic from the NAT Gateway, eliminating the associated NAT Gateway processing fees.
Step-by-Step Solution
Key Concept
Gateway VPC Endpoints provide a secure and completely free mechanism to route traffic from a VPC to Amazon S3 and Amazon DynamoDB, bypassing expensive NAT Gateways.
Estimated Time:1m 0s