Soru

Zorluk: OrtaCost-Effective Network Routing and Data Transfer Optimization

A company hosts a data ingestion service on Amazon EC2 instances in a private subnet. The service writes 20 TB20\text{ TB} of data monthly to Amazon DynamoDB and sends 50 GB50\text{ GB} of message payloads monthly to Amazon Simple Queue Service (Amazon SQS). Currently, all outbound traffic from the private subnet is routed through a NAT Gateway. A solutions architect must design a routing solution to minimize the data transfer and processing costs associated with these services. Which architecture meets these requirements most cost-effectively?

  1. A
    Create Gateway VPC endpoints for both Amazon DynamoDB and Amazon SQS. Configure the route table for the private subnet to route all traffic to both services through the gateway endpoints.
  2. Create a Gateway VPC endpoint for Amazon DynamoDB and an Interface VPC endpoint (AWS PrivateLink) for Amazon SQS. Configure the route table for the private subnet to route DynamoDB traffic through the gateway endpoint.Cevap
  3. C
    Create Interface VPC endpoints (AWS PrivateLink) for both Amazon DynamoDB and Amazon SQS. Configure the route table for the private subnet to route all traffic to both services through the interface endpoints.
  4. D
    Keep routing all traffic through the NAT Gateway, but purchase a Compute Savings Plan to offset the NAT Gateway data processing charges.

Cevap

Creating a Gateway VPC endpoint for Amazon DynamoDB and an Interface VPC endpoint (AWS PrivateLink) for Amazon SQS, and routing DynamoDB traffic through the gateway endpoint.
The architecture utilizing a Gateway VPC endpoint for Amazon DynamoDB and an Interface VPC endpoint for Amazon SQS is the most cost-effective. Gateway VPC endpoints are free of charge, making them ideal for high-volume data transfers (20 TB20\text{ TB}/month). Amazon SQS does not support Gateway VPC endpoints, so an Interface VPC endpoint (AWS PrivateLink) must be used. Although Interface VPC endpoints incur hourly and per-gigabyte processing fees, using one for the low-volume SQS traffic (50 GB50\text{ GB}/month) avoids the higher NAT Gateway processing fee (0.045 USD/GB0.045\text{ USD/GB}) and keeps the traffic private.

Adım Adım Çözüm

1
Analyze service compatibility with VPC Endpoint types.
Amazon DynamoDB supports both Gateway and Interface VPC endpoints. Amazon SQS only supports Interface VPC endpoints (AWS PrivateLink).
Gateway endpoints are only available for Amazon S3 and Amazon DynamoDB, while other services require Interface endpoints.
2
Calculate and compare cost implications for high-volume DynamoDB traffic.
A Gateway endpoint for DynamoDB costs 0 USD0\text{ USD} in data processing. An Interface endpoint for DynamoDB would charge 0.01 USD/GB0.01\text{ USD/GB} (totaling 200 USD200\text{ USD}/month for 20 TB20\text{ TB}). A NAT Gateway charges 0.045 USD/GB0.045\text{ USD/GB} (totaling 900 USD900\text{ USD}/month).
Choosing Gateway VPC endpoints for supported high-volume services eliminates data processing fees.
3
Determine the optimal routing for low-volume SQS traffic.
Deploy an Interface VPC endpoint for SQS. For 50 GB50\text{ GB} of data, the data processing fee is negligible (0.50 USD0.50\text{ USD}/month), which is more cost-effective than routing through a NAT Gateway or setting up alternative architectures.
Using Interface endpoints for low-volume traffic keeps the traffic private with minimal costs.

Anahtar Kavram

VPC Endpoint cost optimization and compatibility
Bu soruyu puanla