An analytics workload runs on Amazon EC2 instances in private subnets. The instances download of data monthly from Amazon S3 and write of data monthly to an Amazon DynamoDB table in the same Region. Currently, all outbound traffic from the private subnets routes through NAT Gateways, leading to high data processing charges. Which two actions should a solutions architect recommend to reduce network data transfer costs? (Select TWO.)
- Create a Gateway VPC endpoint for Amazon S3 and associate it with the private subnet route tables.Answer
- Create a Gateway VPC endpoint for Amazon DynamoDB and associate it with the private subnet route tables.Answer
- CDeploy an Interface VPC endpoint for Amazon S3 and configure the private subnets to route traffic through it.
- DDeploy an Interface VPC endpoint for Amazon DynamoDB and configure the private subnets to route traffic through it.
- ECreate a second NAT Gateway in another Availability Zone to distribute the data transfer load and lower processing rates.
Answer
Create a Gateway VPC endpoint for Amazon S3 and a Gateway VPC endpoint for Amazon DynamoDB, and associate both with the private subnet route tables.
Creating Gateway VPC endpoints for both Amazon S3 and Amazon DynamoDB and associating them with the private subnet route tables is the most cost-effective solution. Gateway VPC endpoints do not charge for data transfer or hourly usage, allowing the EC2 instances to bypass the NAT Gateways entirely for S3 and DynamoDB traffic and avoiding data processing charges.
Step-by-Step Solution
Key Concept
Gateway VPC Endpoints for S3 and DynamoDB allow cost-free private routing of traffic, avoiding NAT Gateway data processing charges.