A company has two VPCs in different AWS regions (us-east-1 and eu-west-1) that are peered. Applications in both VPCs need to communicate using private IP addresses. The ping tests are successful, but the latency is significantly higher than expected. Which change is most likely to improve the latency between the VPCs?
Trap 1: Use a Transit Gateway instead of VPC Peering for cross-region…
A Transit Gateway provides a scalable hub-and-spoke architecture for many VPCs, but it does not inherently reduce latency for a single cross-region VPC pair; traffic still traverses the same AWS global network backbone, and the Transit Gateway adds an extra network hop for traffic from one VPC to the other. Replacing VPC Peering with Transit Gateway would not change the DNS resolution behavior that is causing the latency; the problem lies in how instances resolve and route traffic, not in the interconnection type.
Trap 2: Increase the MTU on the instances' network interfaces to 9001.
Increasing the MTU to 9001 enables jumbo frames, which reduces the number of packets needed for large data transfers and lowers per-packet overhead; this can improve throughput for bulk workloads but does not reduce the per-packet propagation delay that dominates latency on cross-region links. The observed latency issue is likely caused by DNS misconfiguration sending traffic over the public internet, not by packet size, so jumbo frames will not address the root cause.
Trap 3: Configure ECMP (Equal-Cost Multi-Path) routing on the VPC peering…
ECMP (Equal-Cost Multi-Path) routing allows traffic to be spread across multiple equal-cost paths to increase bandwidth and redundancy, but a VPC Peering connection is a single, point-to-point relationship between exactly two VPCs and does not support multiple parallel paths. Since there is only one peering pathway, ECMP cannot be configured on it; even if it were possible, ECMP only affects load balancing and aggregated throughput, not the serial latency of a single TCP flow, so it would not improve the delay.
- A
Enable DNS resolution for the VPC peering connection.
When a VPC peering connection has DNS resolution enabled in both VPCs, instances can resolve private DNS hostnames of the peer VPC through the Amazon-provided DNS resolver, which returns private IP addresses instead of public ones. This keeps all cross-VPC traffic on the AWS backbone, avoiding the extra latency of routing over the public internet. Without this setting, private DNS names may fail to resolve or map to public endpoints, forcing traffic outside the VPC and adding avoidable round-trip delay.
- B
Use a Transit Gateway instead of VPC Peering for cross-region connectivity.
Why wrong: A Transit Gateway provides a scalable hub-and-spoke architecture for many VPCs, but it does not inherently reduce latency for a single cross-region VPC pair; traffic still traverses the same AWS global network backbone, and the Transit Gateway adds an extra network hop for traffic from one VPC to the other. Replacing VPC Peering with Transit Gateway would not change the DNS resolution behavior that is causing the latency; the problem lies in how instances resolve and route traffic, not in the interconnection type.
- C
Increase the MTU on the instances' network interfaces to 9001.
Why wrong: Increasing the MTU to 9001 enables jumbo frames, which reduces the number of packets needed for large data transfers and lowers per-packet overhead; this can improve throughput for bulk workloads but does not reduce the per-packet propagation delay that dominates latency on cross-region links. The observed latency issue is likely caused by DNS misconfiguration sending traffic over the public internet, not by packet size, so jumbo frames will not address the root cause.
- D
Configure ECMP (Equal-Cost Multi-Path) routing on the VPC peering connection.
Why wrong: ECMP (Equal-Cost Multi-Path) routing allows traffic to be spread across multiple equal-cost paths to increase bandwidth and redundancy, but a VPC Peering connection is a single, point-to-point relationship between exactly two VPCs and does not support multiple parallel paths. Since there is only one peering pathway, ECMP cannot be configured on it; even if it were possible, ECMP only affects load balancing and aggregated throughput, not the serial latency of a single TCP flow, so it would not improve the delay.