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.
- Why? The application servers ran out of disk space.
- Why? Log files filled the disk.
- Why? Debug logging was left on after a troubleshooting session.
- Why? Log level is changed by hand on servers, with no review or reminder to revert it.
- 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:
- Focus on systems and processes, not people — "the engineer forgot" is never a root cause; ask why the system allowed it.
- 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.
- Use evidence — logs, metrics, timelines — not guesses.
- Turn findings into specific action items with owners and dates.
- 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.
More on Reliability, monitoring & incidents
What are SLAs, SLOs and SLIs?BeginnerWhat is an error budget, and how is it used?IntermediateWhat are the four golden signals of monitoring?BeginnerWhat is the difference between metrics, logs and traces?BeginnerWhat makes a good alert? How do you avoid alert fatigue?BeginnerWhat is an incident, and what is incident management?Beginner