AWS Certified Solutions Architect Professional SAP-C02 Practice Question
A financial analytics company runs a platform on EC2 instances within private subnets, distributed across multiple Availability Zones in the us-east-1 region. The application frequently downloads terabytes of data from a critical third-party data provider's API, which is hosted outside of AWS. To facilitate this, a NAT Gateway is deployed in each Availability Zone. A cost analysis reveals that the "NAT Gateway - Data Processed" fees are a major operational expense. The company wants to drastically reduce these data transfer costs while preserving the high-availability, multi-AZ posture of the application. The third-party provider has recently announced that they offer an endpoint service powered by AWS PrivateLink in the us-east-1 region.
What is the MOST cost-effective solution to reduce these charges?
Consolidate to a single NAT Gateway in one Availability Zone and update the VPC route tables to direct all outbound traffic through it.
Set up a fleet of caching proxy servers on EC2 instances in public subnets. Direct the application's data requests through this caching layer.
Create a VPC interface endpoint for the third-party's endpoint service within the company's VPC. Reconfigure the application to use the endpoint's DNS name to access the API.
Use AWS Direct Connect to establish a dedicated connection to the us-east-1 region and route the API requests through this connection.
The correct answer is to create a VPC interface endpoint for the third-party's service. By using AWS PrivateLink, traffic from the EC2 instances to the third-party API will be routed through the interface endpoint over the AWS private network, completely bypassing the NAT Gateways. This directly eliminates the "NAT Gateway - Data Processed" charge for this traffic, which is the primary cost driver identified in the scenario. While the VPC endpoint has its own hourly and data processing fees, the data processing fee for an interface endpoint is significantly lower ($0.01 per GB) than that of a NAT Gateway ($0.045 per GB), resulting in substantial savings.
Consolidating to a single NAT Gateway would actually increase costs for a multi-AZ application. Traffic originating from instances in other Availability Zones would first incur an inter-AZ data transfer fee ($0.01/GB) to reach the NAT Gateway, and then the standard NAT Gateway processing fee would still apply on top of that. This approach also introduces a single point of failure, which contradicts the high-availability requirement.
A caching proxy layer only reduces costs for redundant data requests. Any request for new or unique data would still need to be fetched from the internet, incurring data transfer processing fees. Since AWS PrivateLink eliminates the NAT Gateway processing cost for all traffic to the provider, it is a more comprehensive and cost-effective solution.
AWS Direct Connect is a service used to establish a dedicated private network connection from an on-premises data center to AWS. It cannot be used to connect resources within a VPC to a third-party service hosted on the public internet.
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 an AWS VPC interface endpoint?
Open an interactive chat with Bash
How do the costs of NAT Gateway and PrivateLink compare?
Open an interactive chat with Bash
Why is using AWS PrivateLink better than consolidating to a single NAT Gateway for a multi-AZ setup?
Open an interactive chat with Bash
AWS Certified Solutions Architect Professional SAP-C02
Design for New Solutions
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access