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

📚 Interview question

How would you test that your fallbacks and degraded modes actually work before a real outage?

Mid-Level Theory Intermediate

🎯 Key points

  • Fallbacks rot because they only run during incidents
  • Polly v8 chaos strategies: AddChaosFault, AddChaosLatency, AddChaosOutcome
  • Azure Chaos Studio for infrastructure-level faults
  • Integration tests with a dependency returning 503 or hanging
  • Run in a production-like staging environment first; in production only behind a flag, small blast radius and an abort switch
  • Watch dashboards and alerts during the test: fallback counters, SLO burn, user-facing errors
  • Regular game days that flip kill switches

⏱ 30-second answer

Fallbacks are code paths that only run during incidents, so they rot unless exercised. I inject faults in a test environment with Polly v8 chaos strategies (AddChaosFault, AddChaosLatency, AddChaosOutcome) or Azure Chaos Studio. Then I assert that the page renders, the right metric increments and the user message appears. I add integration tests that make the dependency return 503 or hang, and run a game day each quarter where on-call flips the kill switches. Success means core flows stay within their SLO while the dependency is down.

🔍 What the interviewer is checking

Checks whether the candidate treats fallbacks as code that needs testing, using fault injection

↩ Usually asked after

More in Reliability Patterns

Last updated 23 Nov 2026.

🌐 Sangam's Webring

⏪ Previous 🏠 Main Next ⏩
💬 Chat with me