An organization runs EC2 instances in a private VPC subnet that must access AWS Secrets Manager. A SysOps Administrator deploys an Interface VPC Endpoint for Secrets Manager inside the subnet to keep the traffic private. However, the EC2 instances are unable to connect to Secrets Manager. Which of the following actions will resolve this connectivity issue?
- AAdd a route to the subnet route table pointing to the Interface VPC Endpoint ID as the target for Secrets Manager traffic.
- Configure the security group attached to the Interface VPC Endpoint to allow inbound HTTPS traffic from the EC2 instances.Answer
- CDeploy a NAT Gateway in a public subnet and add a route in the private subnet route table to direct Secrets Manager traffic through it.
- DAdd a route in the subnet route table pointing to an Internet Gateway to allow direct access to the public Secrets Manager endpoints.
Answer
Configure the security group attached to the Interface VPC Endpoint to allow inbound HTTPS traffic from the EC2 instances.
The correct action is to configure the security group attached to the Interface VPC Endpoint to allow inbound HTTPS traffic from the EC2 instances. Interface VPC Endpoints create Elastic Network Interfaces (ENIs) in the subnet, which are protected by security groups. By default, these security groups may block inbound traffic, so they must be updated to allow traffic on port 443 from the EC2 instances.
Step-by-Step Solution
Key Concept
Interface VPC Endpoints (AWS PrivateLink) require security group configurations to allow inbound traffic from clients, unlike Gateway Endpoints which rely on subnet route table routes.
Estimated Time:1m 0s