
Ultimate access to all questions.
Deep dive into the quiz with AI chat providers.
We prepare a focused prompt with your quiz and certificate details so each AI can offer a more tailored, in-depth explanation.
A company runs a highly available image-processing application on Amazon EC2 instances in a single VPC. The EC2 instances run inside several subnets across multiple Availability Zones. The EC2 instances do not communicate with each other. However, the EC2 instances download images from Amazon S3 and upload images to Amazon S3 through a single NAT gateway. The company is concerned about data transfer charges. What is the MOST cost-effective way for the company to avoid Regional data transfer charges?
A
Launch the NAT gateway in each Availability Zone.
B
Replace the NAT gateway with a NAT instance.
C
Deploy a gateway VPC endpoint for Amazon S3.
D
Provision an EC2 Dedicated Host to run the EC2 instances.
Explanation:
Correct Answer: C - Deploy a gateway VPC endpoint for Amazon S3.
VPC Endpoints eliminate NAT gateway data transfer costs: When EC2 instances access Amazon S3 through a NAT gateway, all traffic goes through the NAT gateway, incurring data transfer charges for both inbound and outbound traffic. Gateway VPC endpoints for S3 provide a private connection between your VPC and S3 without going through the internet or NAT gateway.
No data transfer charges: With a gateway VPC endpoint, data transferred between EC2 instances and S3 within the same AWS Region does not incur data transfer charges. This is the most cost-effective solution.
Maintains high availability: Gateway VPC endpoints are highly available and automatically scale, providing better reliability than NAT solutions.
A. Launch the NAT gateway in each Availability Zone.
B. Replace the NAT gateway with a NAT instance.
D. Provision an EC2 Dedicated Host to run the EC2 instances.
Always use VPC endpoints for accessing AWS services like S3 and DynamoDB when possible to minimize data transfer costs and improve security by keeping traffic within the AWS network.