SAA-C03 · Question #617
A company runs an application in a private subnet behind an Application Load Balancer (ALB) in a VPC. The VPC has a NAT gateway and an internet gateway. The application calls the Amazon S3 API to stor
The correct answer is B. Configure an S3 gateway endpoint. Update the VPC route table to use the endpoint.. The company needs to access Amazon S3 from a private subnet without traversing the internet, and an S3 Gateway Endpoint is the most cost-effective solution for this requirement.
Question
A company runs an application in a private subnet behind an Application Load Balancer (ALB) in a VPC. The VPC has a NAT gateway and an internet gateway. The application calls the Amazon S3 API to store objects. According to the company's security policy, traffic from the application must not travel across the internet. Which solution will meet these requirements MOST cost- effectively?
Options
- AConfigure an S3 interface endpoint. Create a security group that allows outbound traffic to
- BConfigure an S3 gateway endpoint. Update the VPC route table to use the endpoint.
- CConfigure an S3 bucket policy to allow traffic from the Elastic IP address that is assigned to the
- DCreate a second NAT gateway in the same subnet where the legacy application is deployed.
How the community answered
(35 responses)- A6% (2)
- B80% (28)
- C3% (1)
- D11% (4)
Why each option
The company needs to access Amazon S3 from a private subnet without traversing the internet, and an S3 Gateway Endpoint is the most cost-effective solution for this requirement.
An S3 interface endpoint (powered by AWS PrivateLink) provides private connectivity to S3 via ENIs, but it is generally more expensive than a gateway endpoint, making it not the MOST cost-effective option for S3.
An S3 Gateway Endpoint provides reliable and private connectivity to S3 from instances within a VPC without requiring an internet gateway or NAT gateway. By configuring an S3 Gateway Endpoint and updating the VPC route table, traffic destined for S3 will be routed directly within the AWS network, fulfilling the security requirement to avoid the internet and being the most cost-effective solution for this specific service.
Configuring an S3 bucket policy to allow traffic from a NAT Gateway's Elastic IP address would still involve traffic traversing the internet via the NAT gateway and internet gateway, violating the security policy.
Creating a second NAT gateway would not change the fact that S3 traffic would still traverse the internet, and it would incur additional costs without solving the core security requirement.
Concept tested: VPC Gateway Endpoints for S3
Source: https://docs.aws.amazon.com/vpc/latest/userguide/vpce-gateway.html
Community Discussion
No community discussion yet for this question.