Skip to main content

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​

ProblemMethodology response
Unknown blast radiusStructured timeline + dependency map
Competing theoriesEvidence hierarchy; reproduce
Blame cultureBlameless focus on system gaps
Shallow fixesContributing factor model
Repeat incidentsAction item tracking + fitness functions
Alert noiseDistinguish symptom vs cause
Incomplete observabilityGap analysis as output
Regulatory inquiryAudit-grade timeline and decisions

4. Assumptions and System Model​

AssumptionImplication
Incidents are multi-causalMultiple contributing factors
People acted rationally given infoImprove signals and guardrails
Logs/traces may be incompleteNote uncertainty explicitly
Changes correlate with incidentsDeploy/config audit first
Analysis has time boxDepth scales with severity
Learning requires follow-throughTrack actions to completion

Severity-driven depth:

SEVAnalysis depthTimeline target
1Full postmortem + exec review48h draft
2Standard postmortem5 business days
3Lightweight reviewOptional doc
4Ticket + trend trackingNo full PM

5. Essential Terminology​

TermDefinition
IncidentUnplanned disruption or degradation
SEVSeverity classification
MTTDMean time to detect
MTTRMean time to recover
TimelineOrdered events with timestamps (UTC)
Contributing factorCondition that enabled or amplified failure
Root causeDeepest actionable systemic gap (use plural mindset)
Proximate causeImmediate trigger
Blast radiusScope of impact
Five whysIterative why questioning
Fault treeLogical diagram of failure paths
Change eventDeploy, flag, config, capacity change
Corrective actionFix 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:

  1. State hypothesis explicitly.
  2. Predict observable in logs/metrics.
  3. Confirm or refute with data.
  4. If inconclusive, document gap for observability action.

7. Step-by-Step Walkthrough​

7.1 SEV1 database failover gone wrong​

  1. 00:12 UTC — Automated failover promotes replica.
  2. 00:14 — Apps connect to stale replica; writes appear succeed (split brain).
  3. 00:18 — Support tickets spike; error rate 40%.
  4. 00:25 — On-call triggers manual intervention; old primary isolated.
  5. 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​

  1. Checkout succeeds; email notification fails silently.
  2. Analysis reveals async worker OOM—not "email provider down."
  3. Trace shows retry exhausted without DLQ alert.
  4. Principal: partial failure is default in distributed systems—see Partial Failure.

7.3 Change-correlated regression​

  1. Deploy at 14:00; latency SLO breach 14:08.
  2. Rollback 14:20; recovery confirmed.
  3. Diff implicates new connection timeout—too aggressive for cross-region DB.
  4. Action: canary deploy + automatic rollback on SLO burn.

7.4 Security incident analysis variant​

  1. Exposed API key in public repo.
  2. Timeline includes git push, scanner miss, external usage first seen.
  3. Factors: no secret scanning in CI; key not in vault; no key rotation.
  4. Cross-link Secrets Management Platform.

7.5 Chaos experiment validates analysis​

  1. Hypothesis from prior PM: failover causes split-brain without fencing.
  2. Chaos game day injects primary isolation during write load.
  3. Observe metrics and traces in real time—confirm hypothesis before production repeat.
  4. Corrective action prioritized based on validated failure mode.
  5. Principal: analysis methodology pairs with Chaos Engineering—theory tested under controlled blast radius.

7A. Evidence Source Priority​

PrioritySourceReliability
1Metrics with raw query linkHigh
2Distributed trace spanHigh
3Structured log lineMedium-high
4Deploy/change recordMedium
5Participant memoryLow—verify

8. Invariants and Guarantees​

PropertyMechanism
Blameless toneFacilitator trained; focus on systems
Evidence-backed claimsCitations to logs/traces
Action ownershipNamed owner + date per item
Publication for SEV1/2Internal transparency default
Follow-up trackingTicket until closed

9. Failure Scenarios​

ScenarioMitigation
Analysis during active incidentSeparate commander vs scribe roles
Missing logsNote gap; observability action item
Executive wants single villainEducate on contributing factors
Action items too vagueSMART format required
Repeat incident same classEscalate to architecture governance
Analysis paralysisTime-box; publish with open questions
Postmortem not readExecutive summary + eng review ritual
Legal holds on dataCoordinate 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​

LimitMitigation
Principal time on every SEV3Tiered depth by severity
Large incident participant listRoles: facilitator, scribe, domain experts
Cross-timezone incidentsFollow-the-sun scribe handoff
Multi-team blame dynamicsBlameless charter read at start
Data volume for timelineAutomated 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​

OrganizationPattern
Google SREBlameless postmortems
EtsyEarly blameless culture advocate
AWSPublic service event summaries
NetflixChaos validates analysis hypotheses
Financial servicesRegulatory RCA format

16. Alternatives and Tradeoffs​

DecisionTradeoff
Five whys vs fault treeSpeed vs completeness
Public vs internal PMTransparency vs security
Deep vs fast publishAccuracy vs organizational learning speed
Facilitator internal vs externalNeutrality vs domain knowledge
Video vs written PMEngagement vs searchability
Automated timeline toolsSpeed vs context nuance

17. Common Misconceptions​

MisconceptionReality
"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​

  1. Analyze cache stampede outage. — Signals: timeline, coalescing, hot key. Red flags: "restart cache."
  2. Five whys criticism? — Signals: multi-branch, stops at system. Follow-up: example.
  3. Distinguish detection vs root cause? — Signals: MTTD vs contributing factors.
  4. Partial failure checkout scenario. — Signals: async path, sagas. Red flags: monolith assumption.
  5. Split-brain failover analysis? — Signals: fencing, quorum. Follow-up: Fencing Tokens.
  6. Blameless still accountable? — Signals: system accountability. Red flags: no consequences ever.
  7. Observability gap found in PM? — Signals: action to tracing/logging.
  8. Change correlation process? — Signals: deploy audit, feature flags.
  9. SEV1 vs SEV3 analysis depth? — Signals: tiered process.
  10. Security incident PM differences? — Signals: disclosure, redaction.
  11. Prove hypothesis with traces? — Signals: span evidence. Red flags: guess only.
  12. Prevent repeat incident class? — Signals: fitness function, standard update.

22. Interview Follow-Ups​

  1. Conflicting participant memories. — Trust artifacts; note disagreement.
  2. Customer data loss uncertain extent. — Conservative comms; reconciliation job.
  3. 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​

ComponentRole
Timeline ServiceUTC-ordered events from metrics, traces, deploys
Hypothesis BoardTestable theories with status (open/confirmed/rejected)
Evidence StoreLinks to spans, dashboards, deploy SHAs
PM GeneratorDraft postmortem from confirmed timeline

API contracts​

MethodPathPurpose
POST/v1/incidents/{id}/eventsAppend timeline event (idempotent on event_id)
GET/v1/incidents/{id}/timelineMerged UTC timeline
POST/v1/incidents/{id}/hypothesesAdd 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​

FailureMitigation
Conflicting memoriesTrust artifacts; note disagreement in PM
Missing deploy correlationMandatory deploy audit in timeline
Shallow "human error"Require ≥3 contributing factors
Trace sampling gapIncrease sampling on error paths during incident

SLO (meta-reliability)​

SLITarget
SEV1 timeline completeness100% deploy + alert events within 1h of stabilize
PM publish SLASEV1 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​

#DrillInjectDetectMitigateVerify
GD-1Deploy correlationSpike errors after promoteTimeline shows T+8 spike post T+5 deployRollback; confirm recoveryMTTR <15m; correlation documented
GD-2Shallow PMDraft "on-call missed alert" onlyReviewer rejects; requires systemic factorsExpand to SLO burn + runbook gaps≥3 contributing factors
GD-3Trace evidenceError without linked spanHypothesis stuck "open"Pull exemplar trace; confirm timeoutHypothesis confirmed with evidence
GD-4Scribe overloadIC also scribe during chaosTimeline gapsRotate scribe role in runbookComplete 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​

TypeRequirement
StabilizeRollback or feature flag off
TimelineDeploy T0, canary OK, full promote T+5, spike T+8
EvidenceTraces, golden signals, dependency latency
Factors≥3 contributing (not 'bad deploy')
ActionsSMART: 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​

ActionOwnerDue
Auto-rollback on SLO burnPlatform2 weeks
Timeout from measured p99 docService team1 week
Load test 2× peak in CIQA + arch4 weeks
Game day GD-1 deploy correlationSRENext 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​

StrongWeak
Timeline + trace evidence"Bad deploy"
Systemic contributing factorsBlame 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​

  1. Given fictional incident logs, build 20-event UTC timeline.
  2. Draw contributing factor diagram with 3+ branches.
  3. Write 5 SMART corrective actions mapped to factors.
  4. Identify 2 observability gaps and proposed instrumentation.
  5. Extension: Facilitate mock blameless review with peer.
  6. Extension: Map one action to architecture fitness function.

26. Knowledge Check​

  1. MTTD vs MTTR?
  2. Proximate vs contributing factor?
  3. Why blameless?
  4. Evidence hierarchy order?
  5. When stop five whys?
  6. Timeline required elements?
  7. SEV1 publish SLA example?
  8. Change correlation first step?
  9. Partial failure relevance?
  10. Trace role in analysis?
  11. SMART action format?
  12. Link PM to governance how?

26A. Extended Knowledge Check​

  1. What is the difference between safety and liveness incident?
  2. How do span links differ from parent-child in async traces?
  3. When is participant memory acceptable in timeline?
  4. What SMART field is most often missing in weak PMs?
  5. How does chaos engineering validate PM hypotheses?
  6. 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​

FrontBack
MTTDMean time to detect
MTTRMean time to recover
Contributing factorEnabling condition
Proximate causeImmediate trigger
BlamelessFocus on systems not people
TimelineUTC ordered events
Blast radiusImpact scope
Five whysIterative why—use carefully
Fault treeLogical failure diagram
HypothesisTestable explanation
SEVIncident severity level
Corrective actionOwned 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:32 if approximate).
  • No conclusions in timeline section—facts only.

Contributing factor taxonomy (example tags)​

TagExample
design-gapMissing fencing token
process-gapNo game day for failover
tooling-gapAlert threshold too high
capacity-gapTraffic 3× forecast
change-correlatedDeploy at T-0
dependencyCloud provider regional issue
observability-gapNo trace across async boundary

Trend tags quarterly in SEV review—feeds Architecture Governance.

Hypothesis log template​

IDHypothesisPredictionResultEvidence
H1DB connection pool exhaustedDB wait metric spikeConfirmedGrafana panel X
H2Bad deploy binaryRollback fixesRefutedRollback 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 typeExamplePriority
SafetyDouble charge, data lossP0 halt traffic
LivenessSlow checkout, elevated errorsP1/P2 restore service
Security safetyCredential leakP0 rotate + contain

Analysis must classify correctly—treating safety incident as liveness-only prolongs exposure.

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.