An organization is deploying an auditing application on Amazon ECS tasks running on AWS Fargate. The Fargate tasks are located in private subnets with a CIDR block of within a VPC. The tasks must access an Amazon Aurora PostgreSQL database in a dedicated database subnet with a CIDR block of , download compliance data securely from Amazon S3, and occasionally connect to an external auditing API hosted on the public internet.
To align with security policies:
1. Data transfers to Amazon S3 must remain within the AWS network and must not incur data processing charges.
2. Direct outbound internet access is prohibited; instead, internet traffic must go through NAT Gateways located in public subnets.
3. Network Access Control Lists (Network ACLs) on the Fargate private subnets must implement a least-privilege configuration.
Which combination of configurations will meet these requirements? (Select TWO.)
- Create an Amazon S3 Gateway VPC Endpoint and associate it with the Fargate private subnet route tables. Add a route for pointing to the NAT Gateways in the public subnets.Cevap
- In the Fargate subnet Network ACL, configure an outbound rule allowing traffic to on TCP port , and an inbound rule allowing traffic from on TCP ports .Cevap
- CCreate an Amazon S3 Interface VPC Endpoint in the Fargate subnets, and configure the Fargate subnet route table to target the endpoint's elastic network interfaces for all S3 traffic.
- DIn the Fargate subnet Network ACL, configure an outbound rule allowing TCP port with a destination of the Amazon S3 prefix list.
- EIn the Fargate Security Group, configure an inbound rule allowing TCP port from the NAT Gateway public IP addresses to permit return traffic from the external compliance API.