Interview Prep/DevOps Fundamentals/Reliability, monitoring & incidents

What is root cause analysis, and what is the "5 Whys" technique?

BeginnerConceptReliability, monitoring & incidents
Answer

In one line: Root cause analysis (RCA) is finding the underlying reasons an incident happened, not just the immediate trigger; the "5 Whys" is a simple technique where you keep asking "why?" until you reach a cause you can fix in the system.

5 Whys example:

  • Problem: the website was down for 40 minutes.
  1. Why? The application servers ran out of disk space.
  2. Why? Log files filled the disk.
  3. Why? Debug logging was left on after a troubleshooting session.
  4. Why? Log level is changed by hand on servers, with no review or reminder to revert it.
  5. Why? There's no log rotation and no centralised logging configuration managed in code.

Actions from this:

  • Add log rotation and ship logs to a central system.
  • Manage log levels through configuration in Git, with a time-limited debug option.
  • Add a disk usage alert at 80%, with a runbook.

Good RCA habits:

  1. Focus on systems and processes, not people — "the engineer forgot" is never a root cause; ask why the system allowed it.
  2. Look for multiple contributing factors — complex incidents rarely have just one cause. Sometimes a diagram of contributing factors (fishbone / Ishikawa) works better than one chain.
  3. Use evidence — logs, metrics, timelines — not guesses.
  4. Turn findings into specific action items with owners and dates.
  5. Check action items get done.

Limits of 5 Whys: it can push you down one single path and miss others. In complex systems, combine it with a full timeline and a list of contributing factors.

Tip for interviews: give a real 5 Whys chain from an incident you know, ending in a system-level fix.

All DevOps Fundamentals questions

More on Reliability, monitoring & incidents