A company hosts a reporting application on Amazon EC2 instances within private subnets. The application is required to query Amazon DynamoDB to fetch user profiles and must also securely call an external SaaS provider's HTTPS endpoint to retrieve currency exchange rates. Company security policies dictate that all traffic to DynamoDB must remain within the AWS network and must not traverse the public internet, while keeping data transfer costs minimized. Additionally, the EC2 instances must be able to securely connect to the external SaaS provider's endpoint.
Which combination of actions should a solutions architect take to meet these requirements? (Select TWO.)
- Create a Gateway VPC Endpoint for Amazon DynamoDB, and add a route directing DynamoDB traffic to the endpoint in the private subnet route tables.Cevap
- Deploy a NAT Gateway in a public subnet, and configure a route in the private subnet route tables directing internet-bound traffic () to the NAT Gateway.Cevap
- CCreate an Interface VPC Endpoint (AWS PrivateLink) for Amazon DynamoDB, and configure the security groups to route all database traffic through it.
- DConfigure a route in the private subnet route tables directing outbound traffic () directly to the Internet Gateway.
- EModify the security groups associated with the EC2 instances to allow outbound HTTPS traffic to the SaaS endpoint, and add inbound rules to allow return traffic on ephemeral ports.
Cevap
To secure and cost-effectively route the traffic, create a Gateway VPC Endpoint for Amazon DynamoDB and associate it with the private subnet route tables. In addition, deploy a NAT Gateway in a public subnet and add a route in the private subnet route tables directing all internet-bound traffic to the NAT Gateway.
Creating a Gateway VPC Endpoint for Amazon DynamoDB ensures that database traffic remains within the AWS network without traversing the public internet. Because Gateway VPC Endpoints are free of charge, they satisfy the requirement to minimize data transfer costs. Additionally, deploying a NAT Gateway in a public subnet allows EC2 instances in private subnets to securely initiate outbound HTTPS requests to the external SaaS provider's endpoint.
Adım Adım Çözüm
Anahtar Kavram
VPC Network Security and Egress Routing