A company runs a logistics tracking application on Amazon EC2 instances in private subnets across multiple Availability Zones in the us-east-1 Region. An analysis of the monthly billing details reveals high data transfer and processing charges associated with NAT Gateways. The network traffic patterns show the following:
* Outbound uploads of telemetry files (30 TB per month) to Amazon S3.
* Inbound and outbound database operations (10 TB per month) with Amazon DynamoDB.
* Mapping updates (15 TB per month) downloaded from a partner company's API hosted in another AWS account in the same Region.
Which combination of actions will most cost-effectively reduce the NAT Gateway charges? (Select TWO.)
- Configure Gateway VPC Endpoints for Amazon S3 and Amazon DynamoDB in the VPC, and associate them with the route tables of the private subnets.Answer
- Work with the partner company to expose their API via an AWS PrivateLink VPC Endpoint Service, and create an Interface VPC Endpoint in the application's VPC.Answer
- CProvision Interface VPC Endpoints for Amazon S3 and Amazon DynamoDB in the VPC, and configure the application to use these endpoints.
- DCreate a VPC Peering connection with the partner's VPC, and route S3 and DynamoDB traffic through the peered connection.
- EReplace the NAT Gateways with NAT Instances configured in an Auto Scaling group to handle all external traffic to S3, DynamoDB, and the partner API.
Answer
Configure Gateway VPC Endpoints for Amazon S3 and Amazon DynamoDB in the VPC, and associate them with the route tables of the private subnets. Work with the partner company to expose their API via an AWS PrivateLink VPC Endpoint Service, and create an Interface VPC Endpoint in the application's VPC.
Configuring Gateway VPC Endpoints for Amazon S3 and Amazon DynamoDB is the most cost-effective way to route S3 and DynamoDB traffic because Gateway Endpoints are free. Using AWS PrivateLink to connect to the partner API via an Interface VPC Endpoint decreases the data processing fee from the NAT Gateway rate of 0.01 per GB, yielding significant savings for the 15 TB of partner API traffic.
Step-by-Step Solution
Key Concept
Bypassing NAT Gateways using S3/DynamoDB Gateway Endpoints and AWS PrivateLink Interface Endpoints to optimize data transfer and processing costs.