Soru

Zorluk: ZorOptimizing Network Performance and Latency

An enterprise financial platform operates its core transaction processing engine in private subnets across 33 Availability Zones in the `us-east-1` Region. The workloads must satisfy three networking requirements:

1. Establish high-throughput, low-latency communication with a database cluster located in a separate VPC within the same Region.
2. Query external credit-scoring APIs via the internet with a target latency of less than 50 ms50\text{ ms} and high availability.
3. Resolve private DNS hostnames for utility resources hosted in a shared services VPC.

Currently, all private subnets route internet-bound traffic through a single NAT Gateway located in Availability Zone `us-east-1a`, a Transit Gateway is used for VPC-to-VPC routing, and the Route 53 Private Hosted Zones (PHZs) are associated only with the shared services VPC. During high-volume trading hours, users experience query timeouts, increased latency, and host resolution failures.

Which combination of actions will resolve the bottlenecks and optimize network performance?

  1. A
    Deploy a NAT Gateway in each of the 33 Availability Zones. Create a Route 53 Resolver outbound endpoint in the transaction processing VPC to forward internal queries to public DNS servers, relying on Route 53 latency-based routing to resolve the private hostnames of the shared services VPC.
  2. B
    Associate the Route 53 PHZ with the transaction processing VPC. To optimize inter-VPC database traffic, replace the Transit Gateway attachments with a Direct Connect Gateway directly attached to both VPCs, and configure BGP routing on the on-premises router to route traffic transitively between them.
  3. Associate the Route 53 PHZ of the shared services VPC with the transaction processing VPC. Deploy a NAT Gateway in each of the 33 Availability Zones, and update the private subnet route tables to direct internet traffic (0.0.0.0/00.0.0.0/0) to the local NAT Gateway in each respective Availability Zone.Cevap
  4. D
    Associate the Route 53 PHZ with the transaction processing VPC. To handle the external API traffic, configure an Auto Scaling group to horizontally scale the single NAT Gateway in `us-east-1a` based on network throughput metrics, and update the route tables of all subnets to point to the scaling group.

Cevap

Associate the Route 53 Private Hosted Zone of the shared services VPC with the transaction processing VPC. Deploy a NAT Gateway in each of the 3 Availability Zones, and update the private subnet route tables to direct internet traffic to the local NAT Gateway in each respective Availability Zone.
Associating the Route 53 Private Hosted Zone with the transaction processing VPC allows local resources to resolve the private hostnames. Deploying a NAT Gateway in each of the three Availability Zones ensures that egress traffic to external APIs does not cross Availability Zone boundaries, which minimizes latency, eliminates cross-AZ charges, and removes a single point of failure.

Adım Adım Çözüm

1
Analyze the DNS resolution failure for private hostnames.
Identify that the Route 53 Private Hosted Zone (PHZ) is only associated with the shared services VPC.
For resources in the transaction processing VPC to resolve private hostnames in the shared services VPC, the PHZ must be explicitly associated with the transaction processing VPC.
2
Analyze the NAT Gateway architecture for egress API traffic.
Identify that a single NAT Gateway in one Availability Zone is used by resources across all 3 zones.
Routing traffic across Availability Zones to a single NAT Gateway introduces latency, cross-AZ data transfer charges, and a single point of failure. Deploying a NAT Gateway in each Availability Zone optimizes routing paths and avoids cross-AZ overhead.
3
Verify inter-VPC routing options for database traffic.
Retain Transit Gateway attachments for multi-VPC routing.
Transit Gateway supports transitive routing and high throughput within the same Region, whereas alternative options like Direct Connect Gateway do not support transitive VPC-to-VPC routing.

Anahtar Kavram

Multi-AZ NAT Gateway redundancy and Route 53 Private Hosted Zone cross-VPC association for network latency and reliability optimization
Tahmini Süre:2m 30s
Bu soruyu puanla