An enterprise is migrating a legacy reporting system to AWS. The backend processing servers run on Amazon EC2 instances in a private subnet. These instances must securely fetch configuration files from a private Amazon S3 bucket and connect to a third-party payment gateway API on the public internet. The solutions architect needs to design the network security controls to satisfy these requirements with minimum exposure and without incurring NAT Gateway data transfer costs for Amazon S3 traffic. Which combination of actions should the solutions architect take to meet these requirements? (Select TWO.)
- Create a Gateway VPC Endpoint for Amazon S3 and associate it with the route table of the private subnet.Cevap
- Deploy a NAT Gateway in a public subnet, update the private subnet's route table to route traffic to the NAT Gateway, and use a stateful security group on the EC2 instances to restrict outbound traffic to the payment gateway.Cevap
- CConfigure the private subnet's route table to route all outbound traffic through a NAT Gateway to access both Amazon S3 and the payment gateway.
- DConfigure a stateless Network ACL on the private subnet that permits outbound HTTPS traffic to the payment gateway, without adding any inbound rules for ephemeral ports because Network ACLs automatically track connection states.
- EDeploy a regional AWS WAF Web ACL and associate it directly with the private subnet to inspect and filter all outbound database and HTTPS traffic.
Cevap
The correct combination of actions is to create a Gateway VPC Endpoint for Amazon S3 and associate it with the private subnet's route table, and to deploy a NAT Gateway in a public subnet, update the private subnet's route table to route outbound traffic to the NAT Gateway, and restrict outbound traffic using a stateful security group on the EC2 instances.
The correct solution combines a Gateway VPC Endpoint for Amazon S3 and a NAT Gateway with a stateful security group. A Gateway VPC Endpoint routes S3 traffic privately within AWS without using a NAT Gateway, avoiding data processing costs. A NAT Gateway is deployed in a public subnet to allow private subnet EC2 instances to reach the external payment gateway, and a stateful security group on the instances restricts outbound traffic to the target API. Because security groups are stateful, return traffic is automatically permitted.
Adım Adım Çözüm
Anahtar Kavram
VPC Network Security controls, specifically combining stateful security groups, stateless network ACLs, NAT Gateways for internet egress, and Gateway VPC Endpoints for secure, cost-effective S3 access.