A company's application in a private subnet needs to call Amazon S3 and Amazon DynamoDB. Traffic must not traverse the internet, and the company wants to avoid NAT gateway data processing charges. What should the solutions architect configure?
- A.
An internet gateway and public IP addresses on the instances, restricted by security groups.
- B.
Gateway VPC endpoints for Amazon S3 and Amazon DynamoDB, with routes added to the private subnet route table.
- C.
An AWS Site-to-Site VPN connection to the AWS public endpoints.
- D.
A NAT gateway in a public subnet with a route from the private subnet.
Show answer and explanation
Answer: B
Gateway VPC endpoints exist for exactly two services, S3 and DynamoDB. They keep traffic on the AWS network and have no hourly or data processing charge.
- A NAT gateway (D) works but sends traffic toward public endpoints and charges per GB.
- Public IPs (A) expose the instances.
- A VPN (C) is for connecting on-premises networks.