AWS Certified Solutions Architect Professional SAP-C02 Practice Question
A global enterprise is architecting a multi-account AWS environment. A central 'Shared Services' VPC hosts centralized tools. Numerous 'Application' VPCs, each in a separate AWS account, host business applications. The EC2 instances in these Application VPCs require frequent access to Amazon S3 and Amazon DynamoDB. The networking team has raised concerns about IP address exhaustion in the Application VPCs. Security requirements mandate that all traffic to S3 and DynamoDB must remain within the AWS network and be restricted to a specific list of approved resources. Which network design should a solutions architect recommend to meet these requirements in the most scalable and resource-efficient manner?
In each Application VPC, create VPC Interface Endpoints for both Amazon S3 and Amazon DynamoDB. Attach an endpoint policy to each endpoint to restrict access to the approved resources.
In each Application VPC, create VPC Gateway Endpoints for both Amazon S3 and Amazon DynamoDB. Attach an endpoint policy to each endpoint that explicitly allows access only to the approved S3 buckets and DynamoDB tables.
Create VPC Interface Endpoints for S3 and DynamoDB in the central Shared Services VPC. Use AWS Transit Gateway to connect all Application VPCs to the Shared Services VPC and route all AWS service traffic through the centralized endpoints.
In each Application VPC, configure a NAT Gateway in a public subnet and update the route tables for the private subnets to direct S3 and DynamoDB traffic through the NAT Gateway.
The correct answer is to create VPC Gateway Endpoints in each Application VPC. Gateway Endpoints are the ideal solution for connecting to Amazon S3 and DynamoDB privately from within a VPC. They provide several key benefits that directly address the requirements. First, they do not consume any IP addresses from your VPC's CIDR block, which is a critical advantage given the concern about IP address exhaustion. Second, they ensure traffic does not traverse the public internet by creating a private route between the VPC and the AWS services. Finally, you can attach an endpoint policy to a Gateway Endpoint to enforce fine-grained access control, restricting access to only the specified S3 buckets and DynamoDB tables, which satisfies the security mandate.
Incorrect options explained:
Creating Interface Endpoints in each Application VPC is incorrect because Interface Endpoints, which use Elastic Network Interfaces (ENIs), consume private IP addresses from the subnets they are placed in. This would worsen the IP address exhaustion problem, making this solution less resource-efficient than using Gateway Endpoints.
Centralizing Interface Endpoints in a Shared Services VPC is incorrect for two main reasons. While Interface Endpoints can be accessed over a Transit Gateway, Gateway Endpoints cannot; this architecture forces the use of the more expensive and IP-consuming Interface Endpoints. This design also introduces unnecessary complexity and potential data transfer costs associated with routing traffic through the Transit Gateway and the central VPC.
Using a NAT Gateway is incorrect because it is designed to allow instances in private subnets to connect to the internet. Traffic routed through a NAT Gateway to access AWS services would traverse the public internet to reach the public service endpoints, which explicitly violates the security requirement that traffic must remain within the AWS network.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a VPC Gateway Endpoint?
Open an interactive chat with Bash
Why are VPC Gateway Endpoints preferred over NAT Gateways for private resource access?
Open an interactive chat with Bash
What is the difference between VPC Gateway Endpoints and Interface Endpoints?
Open an interactive chat with Bash
AWS Certified Solutions Architect Professional SAP-C02
Design Solutions for Organizational Complexity
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access