Interview Prep/SRE & Reliability/Capacity & Load Testing

The load test passed in staging, but production fell over at half that load.

AdvancedScenarioCapacity & Load Testing
Answer

Situation read → Staging was not representative: data size, cache warmth, traffic mix, dependencies or infrastructure differ.

What I'd do →

  1. Compare: DB size and indexes, instance types, replica counts, cache hit rate, third-party sandbox vs real.
  2. Compare traffic mix: staging tested one endpoint; production hits expensive search queries.
  3. Use production traffic patterns for the test (replay access logs or weight scenarios by real distribution).
  4. Run controlled tests in production off-peak with tagging and abort criteria.

Why → Load tests are only as good as their realism.

Interview tip → Talk about traffic mix and data volume, not just RPS.

All SRE & Reliability questions Roadmap: SRE & incident response

More on Capacity & Load Testing