Question

Difficulty: EasyVPC Endpoints and PrivateLink Integration

A SysOps Administrator is configuring a Gateway Endpoint for Amazon S3 to allow Amazon EC2 instances in a private subnet to access S3 buckets. Which configuration steps must the administrator complete to ensure that the EC2 instances can communicate with Amazon S3 through the endpoint? (Select TWO.)

  1. Select the Route Table associated with the private subnet when creating the Gateway Endpoint to automatically add the route targeting the endpoint.Answer
  2. Ensure the Security Group associated with the EC2 instances allows outbound HTTPS traffic to the Amazon S3 prefix list.Answer
  3. C
    Manually add a Route Table entry targeting the Elastic Network Interface of the Gateway Endpoint.
  4. D
    Associate a Security Group with the Gateway Endpoint and configure an inbound rule allowing HTTPS traffic from the EC2 instances.

Answer

Selecting the Route Table associated with the private subnet during endpoint creation, and ensuring the Security Group associated with the EC2 instances allows outbound HTTPS traffic to the Amazon S3 prefix list.
Establishing connectivity to Amazon S3 via a Gateway Endpoint requires associating the Endpoint with the private subnet's Route Table. This automatically inserts a route directing traffic for the S3 prefix list to the Gateway Endpoint. Additionally, the EC2 instance's Security Group must allow outbound HTTPS traffic to the S3 prefix list to permit the egress connection.

Step-by-Step Solution

1
Associate the Route Table during Gateway Endpoint creation.
A route targeting the Gateway Endpoint (vpce-xxxxxx) with the destination set to the Amazon S3 prefix list is automatically added to the subnet's Route Table.
This directs traffic destined for Amazon S3 through the Gateway Endpoint instead of routing it over the public internet.
2
Configure the EC2 instance Security Group.
Outbound HTTPS traffic is permitted to the S3 prefix list.
Security Groups are stateful; allowing outbound traffic to the prefix list ensures that the instances can successfully initiate connections to Amazon S3.

Key Concept

Gateway Endpoints use Route Table prefix lists to direct traffic to AWS services and do not support Security Groups, unlike Interface Endpoints which use Elastic Network Interfaces and Security Groups.
Rate this question