📁 Sangam Dhakal - Portfolio v2.0 - Netscape Navigator 4.0
_
□
×

📚 Interview question

In an RCA, what is the difference between the root cause and contributing factors? How do you use the five whys, what are its limits, what do you use when an incident has several interacting causes, and how do you keep the analysis focused on the system rather than on the person who made the change?

Root cause versus contributing factors, the five whys and its limits, alternatives for multi-cause incidents (fishbone, causal factor trees), and keeping RCA blameless by asking why the system allowed the failure.

Mid-Level Theory Intermediate blameless-culture contributing-factors five-whys postmortem production rca

🎯 Key points

  • Root cause: the condition whose removal prevents recurrence; contributing factors made it possible, worse or slower to fix
  • Complex incidents rarely have a single root cause; record several causal chains
  • Five whys: quick, but follows one linear chain and stops where the asker's knowledge stops
  • Use a causal factor tree or fishbone (change, code, tests, monitoring, process, people) for multi-cause incidents
  • Every 'why' must be backed by evidence from the timeline
  • 'Human error' is a symptom of system weaknesses; stop at something the team can change
  • Blameless culture builds the trust that gets honest facts into the next RCA
  • Each factor maps to an action with an owner, tracked to closure (feedback loop)

⏱ 30-second answer

The root cause is the condition that, if removed, stops this class of incident recurring; contributing factors are what made it possible, bigger, or slower to detect and fix: missing tests, a noisy alert, no rollback path. Real incidents usually have several causal chains, so I'm wary of a single root cause. The five whys is a good start, quick and concrete, but it follows one linear chain, depends on what the people in the room know, and often stops at "human error". For multi-cause incidents I use a causal factor tree or a fishbone across change, code, tests, monitoring and process, with each step backed by the timeline. To stay blameless I ask "why did the system let a reasonable action cause harm?" The trade-off is depth versus time: go deep on Sev 1s, keep Sev 3s light.

🗣 Full answer (senior)

How I would answer this in an interview

"I separate three things. The trigger is what set it off, say a deployment with a bad config value. The root cause is the underlying condition that let that trigger cause an outage, for example the service reading a config value with no validation and failing every request rather than failing at startup. Contributing factors are everything that made it worse or slower: the health check didn't exercise config, so the deployment went green; the alert was on CPU not errors, so detection took twenty minutes; rollback needed someone with production access who was asleep. Fixing only the trigger fixes nothing; fixing the root cause stops recurrence; fixing contributing factors shrinks the next incident, whatever its cause.

I use the five whys because it's fast and keeps people concrete. But I'm aware of its limits. It follows one chain, so you end up with one root cause when there were really two interacting problems. The answers depend on who's in the room. And it tends to stop at a person: 'why did the bad value get in? Because Sam typed it.' That's where you need to ask a better question: why could a typo reach production without a check? For anything with several interacting causes I draw a causal factor tree from the outcome backwards, or a fishbone with branches for change, code, tests, monitoring, process and people, and I require every branch to point at evidence on the timeline.

The mistake I see is ending the analysis at 'human error' or 'operator should have been more careful'. People make the same mistakes under the same conditions, so the fix has to change the conditions: validation, guard rails, safer defaults, better signals. A good RCA ends with things the team can change, not a name."


Terms

Term Meaning Example
Trigger The event that started it Config change sets Payments:TimeoutSeconds to 0
Root cause The condition whose removal prevents recurrence Options read at request time with no validation
Contributing factor Made it possible, worse or slower to fix Health check didn't touch config; alert on CPU, not 5xx
Mitigation What stopped the impact Rollback to previous release

Five whys: when it works and when it doesn't

Works well Breaks down
Single, linear failure Several interacting causes
Facts are clear from the timeline Facilitator lacks domain knowledge
Small incidents, quick reviews Tends to stop at a person
Teaching juniors to dig past the trigger Produces one 'root cause' for a complex system

Tools for complex incidents

Technique Shape Use when
Five whys One chain Simple failures, quick reviews
Fishbone (Ishikawa) Categories feeding one outcome Brainstorming factors across areas
Causal factor tree Outcome at top, AND/OR branches down Several conditions had to coincide
Timeline-driven review Decisions at each point Response and detection problems

Production example

A payments service rejected 100% of card payments for 18 minutes after a config change. The five whys stopped at "engineer set the wrong value". A causal tree found three conditions that all had to be true: no options validation at startup (root cause), a readiness probe that didn't exercise configuration, and an error-rate alert that was missing on that service. Adding ValidateOnStart() and fixing the probe meant the same bad value later failed the deployment in staging with zero customer impact.

🔍 What the interviewer is checking

Checks whether the candidate can reason about causation in complex systems and runs RCAs that produce systemic fixes rather than blame.

Green flags

  • Distinguishes trigger, root cause and contributing factors with an example
  • Knows the five whys' limits and an alternative for multi-cause incidents
  • Requires evidence for each causal step
  • Rewrites 'human error' as a system condition

Red flags

  • "The root cause was the developer who pushed the change"
  • Treats five whys as always sufficient
  • Ignores detection and response as causes of impact

📚 Learn in depth

1. Why 'the root cause' is a simplification

Modern systems fail when several conditions line up: the classic Swiss cheese model. Each layer (code review, tests, deployment checks, monitoring, rollback) has holes; an incident happens when the holes align.

change -> [review] -> [tests] -> [deploy gate] -> [monitoring] -> [rollback] -> customer
             hole        hole        hole             hole           slow

Calling one hole "the root cause" is useful shorthand for prioritising, but the action list should address every layer that let it through.

2. Five whys done properly

Outcome: card payments failed for 18 minutes
Why? Every payment call timed out immediately            (evidence: dependency telemetry)
Why? HttpClient timeout was 0 seconds                     (evidence: config diff)
Why? A release set Payments:TimeoutSeconds = 0            (evidence: release 412 diff)
Why did the app accept 0? No validation on the options     (evidence: code)
Why did the deployment go green? Readiness probe didn't touch payments config

Rules that make it work: each answer must cite evidence; branch whenever there is more than one answer; and when an answer names a person, rephrase it to the condition ("a value could be set without validation").

3. Causal factor tree

                 Payments failed 18 min (customer impact)
                               |
          +--------------------+--------------------+
          | AND                |                    |
   Bad value reached prod   Deploy went green    Detection took 12 min
          |                    |                    |
   No options validation   Probe skips config   No 5xx alert on service
   Config not reviewed      as code              Dashboard showed CPU only

The AND node says all three were needed for an 18-minute outage. Removing any one makes it smaller; removing the first prevents this class entirely.

4. Documenting several interacting causes

In the write-up, keep causes and factors as a table rather than prose, so each one can be traced to evidence and to an action:

| # | Factor                          | Type          | Evidence            | Action (owner, date)            |
|---|---------------------------------|---------------|---------------------|---------------------------------|
| 1 | Options not validated           | Root cause    | code, config diff   | ValidateOnStart (A, 14 Mar)     |
| 2 | Probe ignores config            | Contributing  | probe source        | Probe resolves client (B, 21 Mar)|
| 3 | No 5xx alert on payments        | Contributing  | alert rules export  | SLI alert (C, 14 Mar)           |
| 4 | Factors 1+2 together let bad config take traffic | Interaction | timeline 22:51-22:58 | covered by 1 and 2 |

Add the causal tree as a picture, tag each factor with a category (change, code, tests, monitoring, process, people), and keep the tags consistent so you can count recurring categories across RCAs later.

5. Blameless does not mean accountability-free

Blameless analysis assumes people acted reasonably given what they knew, the tools and the time pressure. It asks why did this action make sense at the time? That produces fixes (validation, guard rails, clearer signals). Accountability is preserved: the team owns the actions and their completion. Naming individuals in the write-up makes people hide information in the next review, so the culture is what keeps the evidence honest.

6. Where to stop

Stop when the next 'why' leaves the team's control or influence ("the cloud provider had an outage") or when you reach a condition you can change. Then ask the resilience question instead: given that the provider can fail, why did our system fail with it?

Try it yourself

  1. Take a past incident write-up and redo its five whys, citing evidence for each step; note where you have to branch.
  2. Draw a causal factor tree for the same incident and count how many independent conditions had to coincide.
  3. Find any "human error" or "should have been careful" phrase in old write-ups and rewrite it as a system condition.
  4. Add ValidateOnStart() to an options class in a sample API and confirm a bad value fails at startup instead of on the first request.
  5. Tag the factors in your last five RCAs by category and see which category repeats.

💻 Code

The payments example: the root cause fix is making a bad config value impossible to run with, so the deployment fails rather than customers. Before and after:

// Before: value read at request time, never validated. A 0 slips through to production.
namespace Payments;

public sealed class PaymentsOptions
{
    public int TimeoutSeconds { get; set; }
    public Uri? BaseAddress { get; set; }
}

// builder.Services.Configure<PaymentsOptions>(builder.Configuration.GetSection("Payments"));
// After: validated with data annotations and checked at startup, so a bad release
// crashes on start, fails its readiness probe and never takes traffic.
using System.ComponentModel.DataAnnotations;

namespace Payments;

public sealed class PaymentsOptions
{
    [Range(1, 60)]
    public int TimeoutSeconds { get; set; } = 10;

    [Required]
    public Uri? BaseAddress { get; set; }
}

public static class PaymentsRegistration
{
    public static IServiceCollection AddPayments(this IServiceCollection services, IConfiguration config)
    {
        services.AddOptions<PaymentsOptions>()
            .Bind(config.GetSection("Payments"))
            .ValidateDataAnnotations()
            .ValidateOnStart(); // contributing factor fixed: fail at deploy, not at request time

        services.AddHttpClient("payments", (sp, client) =>
        {
            var o = sp.GetRequiredService<Microsoft.Extensions.Options.IOptions<PaymentsOptions>>().Value;
            client.BaseAddress = o.BaseAddress;
            client.Timeout = TimeSpan.FromSeconds(o.TimeoutSeconds);
        });
        return services;
    }
}

⚠ Common mistakes

  • Mistake: Stopping at "human error". Why it is wrong: Human error is a symptom, not a cause: it hides the systemic weaknesses (no validation, confusing tooling, missing guard rails, time pressure) that let a normal slip become an outage, and people will make the same slip again under the same conditions. Instead: Treat the human action as the start of the next 'why' and fix the condition that let it cause harm.
  • Mistake: Confusing the trigger with the root cause. Why it is wrong: Reverting the bad change fixes today, not the next bad change. Instead: Ask what let any such change cause an outage.
  • Mistake: Insisting on exactly one root cause. Why it is wrong: Complex incidents need several conditions at once; one cause hides the rest. Instead: Record several causal chains or a causal tree and act on each layer.
  • Mistake: Five whys without evidence. Why it is wrong: Each 'why' becomes a guess and the chain drifts to the loudest theory. Instead: Tie every step to the timeline.
  • Mistake: Not branching. Why it is wrong: A single chain ignores detection and response factors. Instead: Branch whenever a 'why' has more than one true answer.
  • Mistake: Treating contributing factors as minor. Why it is wrong: Detection, rollback and alerting factors shrink every future incident. Instead: Give them actions and owners too.
  • Mistake: Naming people in the write-up. Why it is wrong: Engineers stop sharing what they did, so future RCAs get worse. Instead: Describe roles and conditions, not individuals.
  • Mistake: Writing the analysis and never checking the actions. Why it is wrong: Without a feedback loop the same factors reappear in the next incident. Instead: Track actions in the backlog and look for repeated factors across RCAs.

🏛 Senior insight: trade-offs

A senior uses "root cause" as a prioritisation tool, not a hunt for one truth. The question I push the group towards is "which conditions, if they had been different, would have prevented this or made it small?" Usually the answers include one prevention fix and two or three detection and recovery fixes; the latter often pay off more because they help with incidents we haven't imagined yet.

The facilitator matters as much as the technique. Five whys run by someone who doesn't know the system stops early; run by the engineer who made the change, it becomes defensive. I prefer a neutral facilitator with a domain expert in the room.

Technique When it fits Cost When not to
Five whys Simple, linear failures; quick Sev 3 reviews Minutes Multi-cause or response-heavy incidents
Fishbone Brainstorming across areas An hour workshop When you already have strong evidence of the chain
Causal factor tree Several coinciding conditions Half a day for a Sev 1 Trivial incidents

🔗 Follow-ups the interviewer may ask

  1. When: Candidate mentions blameless reviews Why: Checks they can facilitate the meeting and get actions done, not just know the theory.
    How to answer

    A blameless postmortem starts from the assumption that everyone acted reasonably with what they knew at the time, so the question is "how did our system make this easy to get wrong?", not "who broke it?". That's what makes people tell the truth, and without the truth you fix the wrong thing.

    I build the timeline from evidence — alerts, deployment history, Azure Activity Log, KQL queries, the incident channel — then look for contributing factors across the trigger, detection, response and recovery, not a single root cause. The output is a short list of specific, owned, dated corrective actions that change the system (a test, a guard rail, an alert), tracked in the backlog and reviewed until done. The trade-off: thoroughness versus speed — a good-enough review within a week beats a perfect one in a month.

  2. When: Candidate says to stop where the team loses control Why: Checks they turn an external cause into a resilience question about their own design.
    How to answer

    It is a valid trigger, but not a useful root cause, because nothing in it is ours to change. The next question is why our system failed along with the provider: a single region or zone, no timeout or circuit breaker, no bulkhead isolating the dependency, a hard dependency on the critical path, no degraded mode. Those become the actions: zone redundancy or a paired region where the business case justifies it, timeouts, circuit breakers and fallbacks, caching, an explicit SLO we design to given the provider's published SLA, and alerts on the dependency's health plus Azure Service Health notifications. The postmortem then tracks whether those resilience changes actually reduce impact next time, for example in a game day that simulates the outage.

  3. When: Candidate mentions an incident they analysed Why: Checks they can apply the method to a real story.
    How to answer

    Pick a real incident where you played a clear role, and tell it in STAR order in about two minutes. Situation: the system, scale and impact in numbers (users, minutes, error rate). Task: your role — responder, incident commander, or the person who found the cause. Action: how it was detected, how you triaged and set severity, how you mitigated first (rollback, flag, failover), how you investigated with named tools (Application Insights and KQL, distributed traces, dotnet-counters, Query Store), and how you communicated. Result: time to mitigate, what the contributing factors were and which system changes came out of the postmortem, with a number that shows it worked.

    The trade-off interviewers listen for: you restored service before chasing the root cause, and you fixed the system rather than blaming a person.

🛠 Real-world problems: how you handle them

Five whys stopped at a typo; causal tree found three missing guard rails
Situation
A payments service for [company] on AKS rejected every card payment for 18 minutes on a Friday afternoon, around [N] transactions and [$X] in lost sales. The first draft RCA said 'root cause: engineer entered wrong timeout value'.
Signals
Payment failure rate 100%; dependency telemetry showing every outbound call failing in under 1 ms; an alert only on CPU, which stayed flat; the merchant support line lighting up.
Investigation
Rebuilt the timeline from the release history and Application Insights dependency telemetry; diffed the config between releases; checked the readiness probe implementation and alert rules; ran a causal factor tree session with a neutral facilitator and the payments engineers.
Resolution
Immediate: rollback had already restored service. Long term: options validation with `ValidateOnStart()` so invalid config crashes on start; readiness probe that resolves the payments client; a 5xx-rate alert on the payments endpoints; the write-up reworded to remove the individual's name.
Prevention
Options validation added to the service template so every new service gets it; config changes reviewed like code; alert coverage checked in the production readiness review; RCA template now asks 'why did the system allow this?' after any human action.

How to tell it (STAR)

**S:** At [company] our payments service failed every card payment for 18 minutes after a config release, and the draft RCA blamed the engineer who typed a zero. **T:** I was asked to review the RCA, and I didn't think 'be more careful' would stop the next one. **A:** I ran a causal factor tree session with a neutral facilitator and found three conditions that all had to be true: no options validation, a readiness probe that didn't touch config, and no error-rate alert. We added `ValidateOnStart`, fixed the probe and added the alert, and rewrote the RCA without names. **R:** Two months later a similar bad value failed the deployment in staging with zero customer impact, and [the template change rolled out to N services].

↩ Usually asked after

More in RCA

Last updated 23 Nov 2026.

🌐 Sangam's Webring

⏪ Previous 🏠 Main Next ⏩
💬 Chat with me