Cross-AZ calls show random latency spikes; `mtr` shows 2% packet loss between two subnets.

AdvancedTroubleshootingLatency
Answer

Likely causes → Packet loss forces TCP retransmissions (initial RTO is around 200 ms–1 s), which shows up as long-tail latency. Causes include an instance hitting its network allowance (PPS or bandwidth), a degraded host, conntrack drops, or a provider network issue.

Diagnose →

mtr -rwzc 200 10.0.2.15
nstat -az | grep -i retrans
ethtool -S eth0 | grep -E 'allowance_exceeded'   # ENA: bw_in/bw_out/pps/conntrack

Fix → If *_allowance_exceeded counters grow, move to a larger or network-optimized instance type. If one host is bad, replace the instance. Otherwise open a provider case with the mtr output.

Prevent → Export ENA allowance counters and TCP retransmit rate as metrics, and keep chatty services AZ-local.

All Real-World Interview questions Roadmap: Interview readiness

More on Latency