Skip to main content

How do you test API performance under different network conditions?

  • network conditions
  • latency
  • throttling

Answer it first, then compare. Nothing here is saved or scored.

Model answer

Simulate real-world network conditions: (1) Latency injection: add 50-500ms delay to simulate mobile/satellite networks. (2) Bandwidth throttling: limit to 3G/4G speeds. (3) Packet loss: simulate unreliable connections (1-5% loss). (4) Test timeout handling: verify the application gracefully handles slow responses. (5) Test with different geographic regions (via CDN or cloud region testing). Tools: tc (Linux traffic control), Chrome DevTools throttling, k6 with custom scenarios, Toxiproxy for service-level network simulation.

What interviewers listen for

  • Workload modelling
    You design the load shape from product traffic, not from tool defaults.
  • Percentile literacy
    You read p50/p95/p99 separately and explain why each matters.
  • Bottleneck triage
    You correlate metrics across application, database, and infrastructure layers.
  • Capacity instincts
    You can translate a soak test into a sizing or scaling recommendation.

See all 35 performance questions

Written by , Senior QA Automation Engineer, 50+ QA candidate interviews conductedLast updated July 2026