An application deployed on Amazon EC2 instances in a private VPC subnet must upload large datasets to Amazon S3. The application must also connect to an external payment gateway API over the internet to process transactions. A solutions architect needs to design a secure and cost-effective network architecture that satisfies these requirements.
Which TWO configurations should the solutions architect implement? (Select TWO.)
- Create a gateway VPC endpoint for Amazon S3 and associate it with the route table of the private subnet.Answer
- Deploy a NAT gateway in a public subnet, and configure the private subnet's route table to route outbound traffic destined for the internet () to the NAT gateway.Answer
- CRoute all outbound traffic from the private subnet, including both Amazon S3 data transfers and the external API calls, through a public NAT gateway.
- DConfigure the Network ACL of the private subnet to allow outbound TCP port traffic, and rely on the stateful tracking of Network ACLs to permit the inbound response traffic.
- EAssociate an AWS WAF web ACL directly with the private subnet to inspect and filter all outbound HTTP and HTTPS requests.
Answer
Create a gateway VPC endpoint for Amazon S3 and associate it with the route table of the private subnet, and deploy a NAT gateway in a public subnet, configuring the private subnet's route table to route outbound internet traffic () to the NAT gateway.
Establishing a gateway VPC endpoint for Amazon S3 provides direct, private connectivity to S3 without traversing the public internet or incurring NAT Gateway data processing charges, making it highly secure and cost-effective. For the external payment gateway API, deploying a NAT gateway in a public subnet allows the private instances to safely route outbound internet traffic without exposing them to inbound connections.
Step-by-Step Solution
Key Concept
Combining S3 Gateway Endpoints for internal AWS traffic and NAT Gateways for external internet egress to optimize VPC security and data transfer costs.
Estimated Time:2m 0s