Interview Prep/SRE & Reliability/Incident Management & Postmortems

Explain the 5 whys with an example.

BeginnerConceptIncident Management & Postmortems
Answer

Ask "why" repeatedly until you reach a cause you can fix systemically.

  1. Why did checkout fail? The payment service returned 500s.
  2. Why? Its database connection pool was exhausted.
  3. Why? A new query held connections for 30 seconds.
  4. Why? It did a full table scan because an index was missing.
  5. Why was that not caught? Migrations are not tested against production-sized data, and there is no query time alert.

Action items come from the last answers: add the index, add a slow-query check to CI with realistic data, add pool saturation alerts.

All SRE & Reliability questions Roadmap: SRE & incident response

More on Incident Management & Postmortems