A company is designing a secure network architecture for a high-throughput processing application hosted on Amazon EC2 instances in a private subnet. The application must securely transfer large volumes of data to Amazon S3 and access secrets stored in AWS Secrets Manager. The network architecture must prevent any data from traversing the public internet, minimize data transfer charges, and enforce strict network boundaries. 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 tables of the private subnet.Answer
- Create an interface VPC endpoint for AWS Secrets Manager in the private subnet, and associate a security group with the endpoint that allows inbound HTTPS (port 443) traffic from the application security group.Answer
- CDeploy a NAT gateway in a public subnet, configure the private subnet's route table to point all outbound traffic to the NAT gateway, and access both services via their public endpoints.
- DConfigure a stateless Network ACL on the private subnet to permit outbound HTTPS traffic to Secrets Manager public IP addresses, as security groups cannot filter traffic directed to interface endpoints.
- EDeploy AWS Shield Advanced at the subnet boundary to inspect traffic and protect the Secrets Manager endpoint from Layer 7 application exploits.
Answer
Create a gateway VPC endpoint for Amazon S3 associated with the private subnet's route tables, and create an interface VPC endpoint for AWS Secrets Manager with a security group allowing inbound HTTPS traffic from the application security group.
The correct architecture uses a Gateway VPC Endpoint for Amazon S3 and an Interface VPC Endpoint for AWS Secrets Manager. S3 Gateway Endpoints are free and route traffic via VPC route tables. Interface Endpoints use Elastic Network Interfaces (ENIs) inside the VPC and are secured using stateful security groups that limit inbound HTTPS traffic to the application's security group.
Step-by-Step Solution
Key Concept
VPC endpoints (Gateway vs Interface) allow private connectivity to AWS services without internet traversal, utilizing route tables and security groups to manage security and optimize costs.