An enterprise is securing a payment processing application running on Amazon EC2 instances in a private subnet (CIDR ). The application must securely access Amazon S3 to read transaction logs and connect to an external credit bureau API via HTTPS over the internet. Currently, all outbound traffic from the private subnet is routed through a NAT Gateway located in a public subnet. To optimize cost and security, the solution architect deploys a Gateway VPC Endpoint for Amazon S3. The architect now wants to restrict network access at both the subnet and instance levels to allow only these two destinations, adhering to the principle of least privilege. Which of the following configurations must the architect implement to achieve this? (Select TWO.)
- Add a route to the private subnet's route table that targets the S3 Gateway VPC Endpoint for the destination Amazon S3 prefix list, while keeping the default route () targeting the NAT Gateway.Cevap
- Configure the security group associated with the EC2 instances to allow outbound traffic to the Amazon S3 prefix list on port , and outbound traffic to the credit bureau's public IP range on port .Cevap
- CAdd an outbound rule to the private subnet's Network ACL that references the Amazon S3 prefix list (pl-xxxxxxxx) to restrict outbound subnet traffic to S3.
- DAdd an inbound rule to the private subnet's Network ACL that references the S3 Gateway VPC Endpoint ID (vpce-xxxxxxxx) to allow stateless return traffic.
- EReplace the default route in the private subnet's route table with a route targeting the S3 Gateway VPC Endpoint for , using the endpoint policy to filter and redirect non-S3 traffic to the NAT Gateway.