An application is deployed on Amazon EC2 instances inside a private subnet (CIDR ) of an Amazon VPC. The application must regularly download large datasets from Amazon S3 and invoke a public, third-party payment gateway API over the internet. A public subnet (CIDR ) in the VPC contains a NAT Gateway. A Gateway VPC Endpoint for Amazon S3 has already been created for the VPC. Security policies require strict control over outbound traffic, minimal data processing charges, and the enforcement of the principle of least privilege. Which TWO configurations are required to establish secure, cost-effective connectivity for the application?
- Update the private subnet route table to direct traffic destined for the Amazon S3 prefix list to the S3 Gateway VPC Endpoint.Answer
- Configure the private subnet Network ACL to allow outbound traffic to the payment gateway IP range on port and allow inbound traffic from the payment gateway IP range on ephemeral ports -.Answer
- CAdd an inbound rule to the EC2 instances' Security Group allowing TCP port traffic from the payment gateway IP range to authorize the returning API response payloads.
- DAdd a route to the private subnet route table that directs Amazon S3 traffic to the NAT Gateway to ensure all external data transfers are centrally logged.
- EAssociate the S3 Gateway VPC Endpoint with the EC2 instances' Security Group to control and secure traffic flow between the instances and S3.
Answer
Update the private subnet route table to direct traffic destined for the Amazon S3 prefix list to the S3 Gateway VPC Endpoint, and configure the private subnet Network ACL to allow outbound traffic to the payment gateway IP range on port and allow inbound traffic from the payment gateway IP range on ephemeral ports -.
Updating the private subnet route table to target the S3 prefix list via the S3 Gateway VPC Endpoint ensures S3 traffic is routed privately and cost-effectively. Furthermore, configuring the stateless Network ACL with an outbound rule for port and an inbound rule for ephemeral ports (-) ensures that outbound API calls can be completed and responses can return.
Step-by-Step Solution
Key Concept
VPC Network Security design balancing stateful security groups, stateless Network ACLs, and Gateway VPC Endpoint routing.
Estimated Time:2m 0s