Soru

Zorluk: OrtaOptimizing Network Performance and Latency

A financial services company hosts a high-frequency trading analysis platform on Amazon EC2 in VPC A (us-east-1). The platform frequently queries a large transactional database running on EC2 in VPC B (us-east-1), retrieving large datasets. Both VPCs are connected via an AWS Transit Gateway. During peak times, the network latency between VPC A and VPC B increases, and the database query responses are throttled due to the 8500-byte Maximum Transmission Unit (MTU) limit and the extra network hop introduced by the Transit Gateway. The company requires a solution that minimizes network latency and maximizes throughput between these two VPCs. Which of the following actions should the Solutions Architect take to optimize the network performance?

  1. Establish a VPC Peering connection between VPC A and VPC B, update the route tables of both VPCs to route the inter-VPC traffic through the peering connection, and configure the EC2 instances to use jumbo frames with a 9001-byte MTU.Cevap
  2. B
    Deploy an AWS Direct Connect gateway in the region, create a private virtual interface (VIF) for each VPC, and route the database traffic transitively through the Direct Connect gateway to bypass the Transit Gateway.
  3. C
    Deploy an internal Application Load Balancer (ALB) in VPC B in front of the database instances, request ELB pre-warming from AWS Support to accommodate peak traffic spikes, and configure the Transit Gateway to route all traffic to the ALB.
  4. D
    Deploy redundant NAT Gateways across all Availability Zones in VPC B, route the database traffic from VPC A through the Transit Gateway to the NAT Gateways in VPC B, and configure Route 53 Private Hosted Zones to resolve database queries to the NAT Gateway endpoints.

Cevap

Establish a VPC Peering connection between VPC A and VPC B, update the route tables of both VPCs to route the inter-VPC traffic through the peering connection, and configure the EC2 instances to use jumbo frames with a 9001-byte MTU.
The correct solution uses VPC Peering within the same region to establish a direct connection between VPC A and VPC B. Unlike AWS Transit Gateway, which has an MTU limit of 8500 bytes and introduces an additional routing hop, VPC Peering supports jumbo frames with an MTU up to 9001 bytes and routes traffic directly between instances, minimizing latency and maximizing single-stream throughput.

Adım Adım Çözüm

1
Analyze the source of latency and throughput constraints.
The current path using AWS Transit Gateway introduces an extra network hop (adding latency) and caps the MTU at 8500 bytes.
Understanding the limitations of the existing Transit Gateway architecture helps identify the correct optimization strategy.
2
Evaluate VPC Peering as a low-latency alternative.
VPC Peering within the same region provides a direct connection without extra hops, supports jumbo frames (up to 9001-byte MTU), and does not incur Transit Gateway data processing costs.
Replacing Transit Gateway with VPC Peering directly addresses both the latency hop and the MTU constraint.
3
Configure routing and MTU settings.
Create a VPC Peering connection, update VPC route tables to point inter-VPC CIDRs to the peering connection, and set the MTU on the EC2 instances to 9001 bytes.
This establishes the physical path and ensures the instances take advantage of the larger frame size to maximize throughput.

Anahtar Kavram

VPC Peering for latency and throughput optimization
Bu soruyu puanla