Interview Prep/SRE & Reliability/SRE Foundations & SRE vs DevOps

What is "defense in depth" for reliability?

IntermediateConceptSRE Foundations & SRE vs DevOps
Answer

Layering independent safeguards so one failure does not become an outage:

  • Code review and tests catch bugs.
  • Canary analysis catches what tests miss.
  • Feature flags limit exposure and give a kill switch.
  • Timeouts, retries and circuit breakers contain dependency failures.
  • Multi-AZ redundancy and autoscaling absorb infrastructure failures.
  • Burn-rate alerts and runbooks shorten whatever still gets through.
  • Backups and DR protect against the worst cases.

Postmortems often reveal several layers failed at once; the fix is to strengthen more than one.

All SRE & Reliability questions Roadmap: SRE & incident response

More on SRE Foundations & SRE vs DevOps