Failure Analysis Methodology
1. Executive Summary
Failure analysis methodology is the disciplined process of investigating production incidents to determine what happened, why it was possible, and what will change—without collapsing into single-root-cause mythology or blame assignment. Principal architects lead analyses that treat systems as socio-technical: code, configuration, process, incentives, and organizational constraints all contribute.
Effective analysis produces a verified timeline, contributing factors (not one "root"), corrective actions with owners and dates, and learning that updates architecture standards and runbooks. Methods include timeline reconstruction, five whys (used cautiously), fault tree analysis, change correlation, and distributed trace evidence from Distributed Tracing.
This chapter provides a principal-level framework applicable from SEV3 degradations to SEV1 outages—distinguishing safety (data loss, security) from liveness (availability) failures and separating formal guarantees from operational gaps.
2. Why This Topic Matters
Shallow postmortems repeat incidents:
- "Human error" without fixing automation gaps recurs.
- Single root cause hides systemic contributors.
- Missing timeline prevents verifying hypotheses.
- Action items without owners never ship.
Principal interviews ask candidates to analyze hypothetical or real outages: AWS S3 regional degradation, cache stampede, consensus split-brain. Strong candidates build timelines, identify contributing factors, propose layered mitigations, and connect to Safety and Liveness properties.
3. Problems Being Solved
| Problem | Methodology response |
|---|---|
| Unknown blast radius | Structured timeline + dependency map |
| Competing theories | Evidence hierarchy; reproduce |
| Blame culture | Blameless focus on system gaps |
| Shallow fixes | Contributing factor model |
| Repeat incidents | Action item tracking + fitness functions |
| Alert noise | Distinguish symptom vs cause |
| Incomplete observability | Gap analysis as output |
| Regulatory inquiry | Audit-grade timeline and decisions |
4. Assumptions and System Model
| Assumption | Implication |
|---|---|
| Incidents are multi-causal | Multiple contributing factors |
| People acted rationally given info | Improve signals and guardrails |
| Logs/traces may be incomplete | Note uncertainty explicitly |
| Changes correlate with incidents | Deploy/config audit first |
| Analysis has time box | Depth scales with severity |
| Learning requires follow-through | Track actions to completion |
Severity-driven depth:
| SEV | Analysis depth | Timeline target |
|---|---|---|
| 1 | Full postmortem + exec review | 48h draft |
| 2 | Standard postmortem | 5 business days |
| 3 | Lightweight review | Optional doc |
| 4 | Ticket + trend tracking | No full PM |
5. Essential Terminology
| Term | Definition |
|---|---|
| Incident | Unplanned disruption or degradation |
| SEV | Severity classification |
| MTTD | Mean time to detect |
| MTTR | Mean time to recover |
| Timeline | Ordered events with timestamps (UTC) |
| Contributing factor | Condition that enabled or amplified failure |
| Root cause | Deepest actionable systemic gap (use plural mindset) |
| Proximate cause | Immediate trigger |
| Blast radius | Scope of impact |
| Five whys | Iterative why questioning |
| Fault tree | Logical diagram of failure paths |
| Change event | Deploy, flag, config, capacity change |
| Corrective action | Fix preventing recurrence class |
6. Core Mechanism
6.1 Analysis workflow
Figure 1: Failure analysis workflow—stabilize before deep dive; evidence before conclusions.
6.2 Contributing factors model
Figure 2: Multiple contributing factors—avoid stopping at proximate trigger.
6.3 Evidence hierarchy
Figure 3: Prefer artifacts over memory—interviews supplement, not replace, data.
6.4 Deep dives
Timeline construction rules:
- UTC timestamps with timezone noted once.
- Distinguish detection, escalation, mitigation, recovery milestones.
- Mark uncertainty with
~or confidence level. - Include external dependency events (cloud provider, PSP).
Five whys (caution):
- Stop at actionable systemic layer—not "human tired."
- Multiple branches—not single chain.
- Example: Why cache miss storm? → Why hot key? → Why no coalescing? → Why not in standards? → Why no CI check?
Hypothesis testing:
- State hypothesis explicitly.
- Predict observable in logs/metrics.
- Confirm or refute with data.
- If inconclusive, document gap for observability action.
7. Step-by-Step Walkthrough
7.1 SEV1 database failover gone wrong
- 00:12 UTC — Automated failover promotes replica.
- 00:14 — Apps connect to stale replica; writes appear succeed (split brain).
- 00:18 — Support tickets spike; error rate 40%.
- 00:25 — On-call triggers manual intervention; old primary isolated.
- 00:45 — Recovery complete; data reconciliation begins.
Contributing factors: lack of fencing token; app connection pool held stale connections; failover drill never tested with write load; monitoring detected lag but no page.
Actions: implement fencing tokens (Fencing Tokens); connection pool validation; quarterly failover game day; alert on replication lag > 5s page.
7.2 Partial failure misclassified
- Checkout succeeds; email notification fails silently.
- Analysis reveals async worker OOM—not "email provider down."
- Trace shows retry exhausted without DLQ alert.
- Principal: partial failure is default in distributed systems—see Partial Failure.
7.3 Change-correlated regression
- Deploy at 14:00; latency SLO breach 14:08.
- Rollback 14:20; recovery confirmed.
- Diff implicates new connection timeout—too aggressive for cross-region DB.
- Action: canary deploy + automatic rollback on SLO burn.
7.4 Security incident analysis variant
- Exposed API key in public repo.
- Timeline includes git push, scanner miss, external usage first seen.
- Factors: no secret scanning in CI; key not in vault; no key rotation.
- Cross-link Secrets Management Platform.
7.5 Chaos experiment validates analysis
- Hypothesis from prior PM: failover causes split-brain without fencing.
- Chaos game day injects primary isolation during write load.
- Observe metrics and traces in real time—confirm hypothesis before production repeat.
- Corrective action prioritized based on validated failure mode.
- Principal: analysis methodology pairs with Chaos Engineering—theory tested under controlled blast radius.
7A. Evidence Source Priority
| Priority | Source | Reliability |
|---|---|---|
| 1 | Metrics with raw query link | High |
| 2 | Distributed trace span | High |
| 3 | Structured log line | Medium-high |
| 4 | Deploy/change record | Medium |
| 5 | Participant memory | Low—verify |
8. Invariants and Guarantees
| Property | Mechanism |
|---|---|
| Blameless tone | Facilitator trained; focus on systems |
| Evidence-backed claims | Citations to logs/traces |
| Action ownership | Named owner + date per item |
| Publication for SEV1/2 | Internal transparency default |
| Follow-up tracking | Ticket until closed |
9. Failure Scenarios
| Scenario | Mitigation |
|---|---|
| Analysis during active incident | Separate commander vs scribe roles |
| Missing logs | Note gap; observability action item |
| Executive wants single villain | Educate on contributing factors |
| Action items too vague | SMART format required |
| Repeat incident same class | Escalate to architecture governance |
| Analysis paralysis | Time-box; publish with open questions |
| Postmortem not read | Executive summary + eng review ritual |
| Legal holds on data | Coordinate with counsel early |
10. Performance Characteristics
Analysis process metrics:
- MTTD / MTTR trend by service.
- Repeat incident rate same contributing factor tag.
- Action item closure within 30/60/90 days.
- Postmortem time-to-publish vs SLA.
- Participation diversity (not only on-call team).
11. Scalability Limits
| Limit | Mitigation |
|---|---|
| Principal time on every SEV3 | Tiered depth by severity |
| Large incident participant list | Roles: facilitator, scribe, domain experts |
| Cross-timezone incidents | Follow-the-sun scribe handoff |
| Multi-team blame dynamics | Blameless charter read at start |
| Data volume for timeline | Automated trace/log aggregation tools |
12. Operational Considerations
- Incident commander training separate from postmortem facilitation.
- Templates in
templates/failure-analysis-template.md. - Tag contributing factors taxonomy for trend analysis.
- Monthly SEV review with leadership—patterns not individuals.
- Link closed actions to Architecture Governance standard updates.
13. Security Considerations
- Security incidents need coordinated disclosure timeline.
- Redact customer PII in published postmortems.
- Root cause may include attacker TTP—share with security team.
- Secrets in logs discovered during analysis—rotate immediately.
14. Cost Considerations
Incidents have direct revenue and engineering cost—quantify where possible for prioritization. Investment in tracing and logging ROI proven by faster MTTR. Game days have scheduling cost but reduce SEV1 frequency.
15. Production Implementations
| Organization | Pattern |
|---|---|
| Google SRE | Blameless postmortems |
| Etsy | Early blameless culture advocate |
| AWS | Public service event summaries |
| Netflix | Chaos validates analysis hypotheses |
| Financial services | Regulatory RCA format |
16. Alternatives and Tradeoffs
| Decision | Tradeoff |
|---|---|
| Five whys vs fault tree | Speed vs completeness |
| Public vs internal PM | Transparency vs security |
| Deep vs fast publish | Accuracy vs organizational learning speed |
| Facilitator internal vs external | Neutrality vs domain knowledge |
| Video vs written PM | Engagement vs searchability |
| Automated timeline tools | Speed vs context nuance |
17. Common Misconceptions
| Misconception | Reality |
|---|---|
| "One root cause" | Systems have contributing factor sets |
| "Operator mistake" | Design should make safe action default |
| "Rollback always fixes" | Data state may need repair |
| "Postmortem = punishment" | Learning document |
| "Logs tell full story" | Gaps drive observability work |
| "External vendor = not our problem" | Dependency failure mode is your design |
18. Principal Architect Perspective
- Lead with timeline, not conclusions.
- Separate proximate from systemic contributors.
- Every action item ties to factor, not symptom patch only.
- Update architecture standards when patterns repeat.
- Quantify blast radius for prioritization credibility.
- Teach teams Postmortem Culture rituals.
The highest-value analysis work often happens in the first 72 hours after stabilization when evidence is fresh. Principal architects ensure scribe rotation so on-call engineers are not sole historians—cognitive bias peaks when you fought the incident yourself.
19. Architecture Review Exercise
Scenario: Postmortem concludes "on-call missed alert" with action "train on-call better."
Review: Superficial. Ask: why alert not actionable? Why no SLO burn auto-mitigation? Why missing runbook? Expand contributing factors and systemic actions.
20. Whiteboard Explanation
"When SEV1 hits, incident commander stabilizes first. I assign a scribe building UTC timeline from metrics, traces, and deploy records—not meeting memory. We list hypotheses and kill them with data. Contributing factors include technical design, tooling gaps, and process—never stop at 'human error.' Corrective actions are owned with dates: fencing tokens, CI policy, game day. Postmortem published in five days, reviewed in monthly SEV meeting. Repeat factor tags feed architecture governance updates."
21. Interview Questions
- Analyze cache stampede outage. — Signals: timeline, coalescing, hot key. Red flags: "restart cache."
- Five whys criticism? — Signals: multi-branch, stops at system. Follow-up: example.
- Distinguish detection vs root cause? — Signals: MTTD vs contributing factors.
- Partial failure checkout scenario. — Signals: async path, sagas. Red flags: monolith assumption.
- Split-brain failover analysis? — Signals: fencing, quorum. Follow-up: Fencing Tokens.
- Blameless still accountable? — Signals: system accountability. Red flags: no consequences ever.
- Observability gap found in PM? — Signals: action to tracing/logging.
- Change correlation process? — Signals: deploy audit, feature flags.
- SEV1 vs SEV3 analysis depth? — Signals: tiered process.
- Security incident PM differences? — Signals: disclosure, redaction.
- Prove hypothesis with traces? — Signals: span evidence. Red flags: guess only.
- Prevent repeat incident class? — Signals: fitness function, standard update.
22. Interview Follow-Ups
- Conflicting participant memories. — Trust artifacts; note disagreement.
- Customer data loss uncertain extent. — Conservative comms; reconciliation job.
- Vendor refuses root cause detail. — Document uncertainty; design around ambiguity.
22A. Production Low-Level Design (Interview + Game Day)
Incident Analysis Workbench — timeline reconstruction, hypothesis tracking, evidence linking. Targets Production LLD and Game Day Standard.
Components
| Component | Role |
|---|---|
| Timeline Service | UTC-ordered events from metrics, traces, deploys |
| Hypothesis Board | Testable theories with status (open/confirmed/rejected) |
| Evidence Store | Links to spans, dashboards, deploy SHAs |
| PM Generator | Draft postmortem from confirmed timeline |
API contracts
| Method | Path | Purpose |
|---|---|---|
POST | /v1/incidents/{id}/events | Append timeline event (idempotent on event_id) |
GET | /v1/incidents/{id}/timeline | Merged UTC timeline |
POST | /v1/incidents/{id}/hypotheses | Add hypothesis |
PATCH | /v1/hypotheses/{id} | Update status + evidence links |
Timeline event schema
{
"event_id": "uuid",
"timestamp_utc": "2026-08-30T14:22:01Z",
"source": "deploy|metric|trace|human",
"summary": "Full promote checkout v2.4.1",
"evidence_url": "https://...",
"confidence": "confirmed|likely|speculative"
}
Analysis sequence
Failure paths
| Failure | Mitigation |
|---|---|
| Conflicting memories | Trust artifacts; note disagreement in PM |
| Missing deploy correlation | Mandatory deploy audit in timeline |
| Shallow "human error" | Require ≥3 contributing factors |
| Trace sampling gap | Increase sampling on error paths during incident |
SLO (meta-reliability)
| SLI | Target |
|---|---|
| SEV1 timeline completeness | 100% deploy + alert events within 1h of stabilize |
| PM publish SLA | SEV1 within 5 business days |
DR sentence
Workbench read-only during primary region outage; scribe exports timeline to shared doc; RPO 0 for events, RTO N/A (human process).
22B. Game Day Playbooks
| # | Drill | Inject | Detect | Mitigate | Verify |
|---|---|---|---|---|---|
| GD-1 | Deploy correlation | Spike errors after promote | Timeline shows T+8 spike post T+5 deploy | Rollback; confirm recovery | MTTR <15m; correlation documented |
| GD-2 | Shallow PM | Draft "on-call missed alert" only | Reviewer rejects; requires systemic factors | Expand to SLO burn + runbook gaps | ≥3 contributing factors |
| GD-3 | Trace evidence | Error without linked span | Hypothesis stuck "open" | Pull exemplar trace; confirm timeout | Hypothesis confirmed with evidence |
| GD-4 | Scribe overload | IC also scribe during chaos | Timeline gaps | Rotate scribe role in runbook | Complete timeline in game day |
GD-1 — Deploy spike analysis
23. Strong Answer Example
Q: Walk through analyzing 40% error rate spike after deploy.
PRACTICE script for incident analysis depth.
Student interview script (PRACTICE)
P — Problem framing
"40% error rate spike after full promote. First: does rollback recover? That establishes change correlation. Build UTC timeline from deploy records and metrics—not meeting memory."
R — Requirements
| Type | Requirement |
|---|---|
| Stabilize | Rollback or feature flag off |
| Timeline | Deploy T0, canary OK, full promote T+5, spike T+8 |
| Evidence | Traces, golden signals, dependency latency |
| Factors | ≥3 contributing (not 'bad deploy') |
| Actions | SMART: burn gate, timeout from SLO, load test |
A — Assumptions
- Canary was 5% traffic—too small to catch cross-region timeout
- New timeout 200ms; dependency p99 under load is 800ms
- No integration test at 2× peak
C — Capacity (timeline)
T0 Deploy starts
T+5 Full promote
T+8 Error rate 40% — ALB 5xx + timeout traces to dependency X
T+12 Rollback initiated
T+15 Error rate <1% — correlation confirmed
T — Topology
I — Invariants
"Never stop at human error. Distinguish detection (MTTD) from contributing factors. Hypotheses must be killed with data."
E — Evolution
| Action | Owner | Due |
|---|---|---|
| Auto-rollback on SLO burn | Platform | 2 weeks |
| Timeout from measured p99 doc | Service team | 1 week |
| Load test 2× peak in CI | QA + arch | 4 weeks |
| Game day GD-1 deploy correlation | SRE | Next quarter |
Related: Netflix Cascading Failure, Stripe Payment Idempotency.
Closing line
"Rollback confirms correlation. Timeline from data. Trace shows timeout to dependency X. Contributing factors: canary too small, timeout not from p99, missing scale test. Actions: burn gate, SLO-derived timeout, CI load test—not 'fire the junior engineer.'"
Scoring signals
| Strong | Weak |
|---|---|
| Timeline + trace evidence | "Bad deploy" |
| Systemic contributing factors | Blame individual |
| SMART actions | "More QA" |
24. Weak Answer Example
Weak: "On-call deployed bad code. We fired the junior engineer and added more QA."
Red flags: Blame, single cause, no systemic actions, no timeline, no observability improvements.
25. Hands-On Exercise
- Given fictional incident logs, build 20-event UTC timeline.
- Draw contributing factor diagram with 3+ branches.
- Write 5 SMART corrective actions mapped to factors.
- Identify 2 observability gaps and proposed instrumentation.
- Extension: Facilitate mock blameless review with peer.
- Extension: Map one action to architecture fitness function.
26. Knowledge Check
- MTTD vs MTTR?
- Proximate vs contributing factor?
- Why blameless?
- Evidence hierarchy order?
- When stop five whys?
- Timeline required elements?
- SEV1 publish SLA example?
- Change correlation first step?
- Partial failure relevance?
- Trace role in analysis?
- SMART action format?
- Link PM to governance how?
26A. Extended Knowledge Check
- What is the difference between safety and liveness incident?
- How do span links differ from parent-child in async traces?
- When is participant memory acceptable in timeline?
- What SMART field is most often missing in weak PMs?
- How does chaos engineering validate PM hypotheses?
- Contributing factor tag taxonomy—who maintains it?
The SRE or reliability engineering lead owns the taxonomy with input from principal architects after each monthly SEV review—tags that never get assigned are removed to prevent classification fatigue.
27. Flashcards
| Front | Back |
|---|---|
| MTTD | Mean time to detect |
| MTTR | Mean time to recover |
| Contributing factor | Enabling condition |
| Proximate cause | Immediate trigger |
| Blameless | Focus on systems not people |
| Timeline | UTC ordered events |
| Blast radius | Impact scope |
| Five whys | Iterative why—use carefully |
| Fault tree | Logical failure diagram |
| Hypothesis | Testable explanation |
| SEV | Incident severity level |
| Corrective action | Owned fix with date |
28. Cheat Sheet
FLOW: stabilize → evidence → timeline → hypotheses → factors → actions → publish → track
TIMELINE: UTC, detection/escalation/mitigation/recovery milestones
FACTORS: multiple branches—not single root
EVIDENCE: metrics > traces > logs > changes > memory
AVOID: blame, vague actions, symptom-only fixes
DEPTH: scales with SEV level
OUTPUT: postmortem + owned actions + governance updates
TOOLS: distributed tracing, deploy audit, dashboards
PARTIAL FAILURE: default model in distributed systems
28A. Principal Interview Deep Dive
Timeline quality checklist
Before publishing any postmortem, principal reviewers verify:
- All timestamps UTC with source cited (dashboard, log line, trace span ID).
- Detection time separate from customer report time if different.
- Deploy and feature flag changes in ±2 hour window listed.
- External dependency status page events included.
- Uncertainty explicitly marked (
~14:32if approximate). - No conclusions in timeline section—facts only.
Contributing factor taxonomy (example tags)
| Tag | Example |
|---|---|
design-gap | Missing fencing token |
process-gap | No game day for failover |
tooling-gap | Alert threshold too high |
capacity-gap | Traffic 3× forecast |
change-correlated | Deploy at T-0 |
dependency | Cloud provider regional issue |
observability-gap | No trace across async boundary |
Trend tags quarterly in SEV review—feeds Architecture Governance.
Hypothesis log template
| ID | Hypothesis | Prediction | Result | Evidence |
|---|---|---|---|---|
| H1 | DB connection pool exhausted | DB wait metric spike | Confirmed | Grafana panel X |
| H2 | Bad deploy binary | Rollback fixes | Refuted | Rollback no effect |
Forces disciplined analysis vs jumping to first theory.
Distributed trace as primary evidence
Walk interviewers through: filter traces duration > 2s AND service=checkout → identify fraud service serial call added in release v2.3.1 → correlate with deploy record → contributing factor change-correlated + design-gap (no latency budget for new dependency).
Link Distributed Tracing instrumentation gap if trace breaks at monolith boundary.
Safety vs liveness in incident classification
| Failure type | Example | Priority |
|---|---|---|
| Safety | Double charge, data loss | P0 halt traffic |
| Liveness | Slow checkout, elevated errors | P1/P2 restore service |
| Security safety | Credential leak | P0 rotate + contain |
Analysis must classify correctly—treating safety incident as liveness-only prolongs exposure.
29. Related Concepts
- Partial Failure
- Safety and Liveness
- SLO, SLI, and Error Budgets
- Distributed Tracing
- Observability Fundamentals
- Postmortem Culture
- Chaos Engineering
- Fencing Tokens
19A. Extended Review Scenario
Scenario B: Postmortem blames "on-call fatigue" without systemic actions.
Review: Fatigue is contributing factor, not root. Ask: alert thresholds? Runbook quality? Toil automation backlog? Staffing model? Action items must address paging volume, alert tuning, and sustainable rotation—not "get more sleep." Link to error budget and SLO review.
23A. Additional Strong Answer
Q: How analyze partial failure where payment succeeds but notification fails?
Outline: Timeline: payment commit T0, outbox publish T+50ms, worker crash T+100ms, no notification. Customer charged, no email—support load increases. Contributing factors: missing outbox relay monitoring; no idempotent notification retry; user not shown in-app confirmation as primary channel. Traces show break at async boundary—span link gap. Actions: transactional outbox with relay lag alert; notification DLQ dashboard; UX show payment receipt even if email delayed. Classify as partial failure design per Partial Failure—not "notification team bug" alone.
28B. Extended BOE Walkthrough (Interview Script)
Interviewer: "Walk through analyzing database failover incident."
Strong candidate:
"Stabilize first—isolate old primary, confirm writes to single target.
Timeline UTC from metrics: failover trigger T0, error spike T+2min, manual intervention T+8min, recovery T+35min.
Evidence: replication lag graph showed 30s before failover; traces show apps writing to both primaries T+2 to T+8—split brain.
Hypothesis log: H1 split brain confirmed; H2 network partition refuted by provider status.
Contributing factors: no fencing token; connection pools held stale primary; failover drill never tested under write load; lag alert not paging.
Not 'DBA mistake'—system gaps.
Actions: fencing tokens Fencing Tokens; pool validation on topology change; game day quarterly; page on lag >5s.
Safety incident—data reconciliation job; communicate customer impact conservatively.
Publish PM 5 days; tag factors for governance trend review."
30. References
- Google SRE Book — postmortem culture chapter (operational practice).
- Sidney Dekker, The Field Guide to Understanding Human Error — systems thinking.
- IEEE 1012 — verification and validation (formal standard context).
- Etsy blameless postmortem engineering blog (industry practice).
- NTSB accident investigation methodology — timeline discipline analogy.
Distinction: Investigation rigor standards vary by industry regulation; contributing-factor model is widely accepted in SRE practice but not a formal proof method.
30A. Further reading paths
Practice with Chaos Engineering experiments that validate analysis hypotheses before production incidents. Study one public cloud provider post-incident summary and reconstruct timeline from published facts—compare to your template. Cross-train with Distributed Tracing for evidence collection skills.
Exercise: Given a fictional deploy + latency spike scenario, write contributing factor diagram with at least four branches and map each to a SMART action. Interview drill: 15-minute whiteboard timeline for split-brain failover—include detection, mitigation, recovery, and data reconciliation phases with safety vs liveness classification.
Capstone: Facilitate a mock SEV2 review from a provided trace export and deploy log—produce draft timeline in 30 minutes without interviewing participants. Peer review for evidence citations versus unsupported claims.
When analysis concludes "human error," ask five more whys until you reach a controllable system change—training alone is rarely a sufficient corrective action for principal-level incident reviews.