A SysOps Administrator is configuring a private subnet containing Amazon EC2 instances that need to access files in an Amazon S3 bucket within the same AWS Region. To prevent data transfer charges and keep the traffic private, the administrator creates an Amazon S3 Gateway VPC Endpoint. However, when trying to access S3 from the EC2 instances, the connection times out. What configuration step must the administrator perform to resolve this connection issue?
- AConfigure the private subnet route table to send all S3 traffic to a NAT Gateway.
- BAttach a security group to the Gateway VPC Endpoint that allows inbound HTTPS traffic from the EC2 instances.
- Associate the Gateway VPC Endpoint with the route table of the private subnet.Answer
- DAdd a route to the private subnet route table pointing to an Internet Gateway.
Answer
Associate the Gateway VPC Endpoint with the route table of the private subnet.
The correct action is to associate the S3 Gateway VPC Endpoint with the route table of the private subnet. Unlike Interface VPC Endpoints, Gateway VPC Endpoints do not use security groups or private DNS. Instead, they rely on prefix list routes automatically added to associated route tables.
Step-by-Step Solution
Key Concept
Gateway VPC Endpoints (for S3 and DynamoDB) require explicit association with subnet route tables to automatically inject prefix list routes. They do not use security groups.