An e-commerce company runs an order processing application on Amazon EC2 instances in private subnets. The instances must download software updates from an external repository on the internet and securely access an Amazon DynamoDB table in the same AWS Region. The company's security policy requires that DynamoDB traffic must not traverse the public internet, and the EC2 instances must not be directly reachable from the public internet. Which TWO configurations should a solutions architect implement to meet these requirements securely and cost-effectively? (Select TWO.)
- Create a Gateway VPC Endpoint for Amazon DynamoDB and associate it with the route table of the private subnets.Answer
- Deploy a NAT Gateway in a public subnet, and configure the route table of the private subnets to route internet-bound traffic () to the NAT Gateway.Answer
- CCreate an Interface VPC Endpoint for Amazon DynamoDB and configure it to handle all DynamoDB traffic from the private subnets.
- DConfigure the Network ACL for the private subnets to allow inbound traffic only on TCP ports and to receive response packets from the update repository.
- EDeploy a NAT Instance inside the private subnets to route outbound software update traffic directly to the internet.
Answer
To secure DynamoDB traffic cost-effectively without public internet routing, associate a Gateway VPC Endpoint for DynamoDB with the private subnets' route table. To enable secure outbound internet access for updates, deploy a NAT Gateway in a public subnet and update the private subnets' route table to direct all traffic through the NAT Gateway.
The correct answer combines a Gateway VPC Endpoint for Amazon DynamoDB and a NAT Gateway in a public subnet. The Gateway VPC Endpoint routes DynamoDB traffic privately over the AWS backbone network without traversing the public internet, doing so without any hourly or data processing charges. The NAT Gateway provides secure, one-way outbound connectivity to the internet for downloading updates, ensuring the instances remain unreachable from inbound internet traffic.
Step-by-Step Solution
Key Concept
VPC Network Security and Egress Routing Control