A company hosts a machine learning application on Amazon EC2 instances inside a private subnet of a VPC. The application frequently downloads large training datasets from an Amazon S3 bucket within the same AWS Region. Currently, the EC2 instances access Amazon S3 through a NAT Gateway, which has caused a significant increase in NAT Gateway data processing charges. What is the most cost-effective network routing solution to eliminate these data processing charges?
- Create a gateway VPC endpoint for Amazon S3 and configure the route tables of the private subnet to direct traffic to the endpoint.Cevap
- BCreate an interface VPC endpoint for Amazon S3 and configure the application to route traffic through the endpoint.
- CReplace the NAT Gateway with a NAT Instance running on an Amazon EC2 instance in a public subnet.
- DAssign public IPv4 addresses to the EC2 instances and route the Amazon S3 traffic directly through an Internet Gateway.
Cevap
Create a gateway VPC endpoint for Amazon S3 and configure the route tables of the private subnet to direct traffic to the endpoint.
Creating a gateway VPC endpoint for Amazon S3 is the most cost-effective solution. Gateway endpoints are free to create, do not charge for data processing, and allow instances in a private subnet to connect securely to Amazon S3 within the AWS network without traversing a NAT Gateway or going over the public internet.
Adım Adım Çözüm
Anahtar Kavram
Gateway VPC Endpoints for cost-effective private routing to Amazon S3