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?
- 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
- BDeploy 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.
- CDeploy 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.
- DDeploy 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
Anahtar Kavram
VPC Peering for latency and throughput optimization