A company hosts a data processing application on Amazon EC2 instances in a private subnet. The application downloads of raw data monthly from Amazon S3, processes the data, and writes the metadata to an Amazon DynamoDB table. The EC2 instances must also periodically access the public internet to download software updates. Currently, all outbound traffic from the private subnet routes through a NAT gateway. A solutions architect must optimize the network routing to reduce data transfer and processing costs. Which two actions should the solutions architect take to meet these requirements? (Select TWO.)
- Create a gateway VPC endpoint for Amazon S3 and associate it with the private subnet's route table.Answer
- Create a gateway VPC endpoint for Amazon DynamoDB and associate it with the private subnet's route table.Answer
- CKeep routing the S3 data transfer through the NAT gateway and configure AWS Budgets to alert when monthly costs exceed a set limit.
- DEstablish a single AWS Site-to-Site VPN connection and route the DynamoDB metadata traffic through the VPN tunnel to bypass the NAT gateway.
- EConfigure the application to write the temporary processed datasets to S3 Standard-Infrequent Access (S3 Standard-IA) and delete them after days.
Answer
The solutions architect should create a gateway VPC endpoint for Amazon S3 and a gateway VPC endpoint for Amazon DynamoDB, associating both with the private subnet's route table.
Creating gateway VPC endpoints for both Amazon S3 and Amazon DynamoDB and associating them with the subnet's route table is the most cost-effective solution. Gateway endpoints do not incur hourly or data processing charges, keeping the high-volume data transfers () free. The NAT gateway is kept in place to handle low-volume outbound traffic for external software updates.
Step-by-Step Solution
Key Concept
Gateway VPC Endpoints for S3 and DynamoDB
Estimated Time:2m 0s