Volume 8 · Chapter 6 — High Availability, Disaster Recovery and Safe Change

Testing Resilience and Chaos Engineering

Goutham Mayaluri 8 min read AWSCloudHigh AvailabilityDisaster RecoveryResilience

6.1 Introduction

You can design for high availability and disaster recovery, but until you’ve actually tested that the system survives failures, you only have theory. Resilience testing - deliberately injecting failures to verify the system handles them, an approach known as chaos engineering - is how you turn “we think it’s resilient” into “we know it is.” This chapter covers why testing resilience matters, how game days and chaos experiments work, and why this practice is increasingly expected of mature engineering organizations - a topic that signals real operational maturity in interviews.

6.2 Why Test Resilience

The recurring theme of this volume is that untested assumptions fail when it matters: untested DR plans don’t work, untested backups won’t restore, and untested failover mechanisms have gaps. The same applies to resilience as a whole - you may believe multi-AZ failover works, that a circuit breaker trips correctly, or that the system degrades gracefully, but until you actually cause the failure and observe the response, you don’t know. And the worst time to discover a resilience gap is during a real incident. So you test resilience proactively by deliberately causing failures in a controlled way and verifying the system responds as designed - which finds the gaps while you’re watching and can fix them calmly, rather than during an outage.

6.3 Chaos Engineering

Chaos engineering is the practice of deliberately injecting failures into a system to test its resilience - terminating instances, cutting off a dependency, adding latency, failing an Availability Zone - and observing whether the system handles them as expected. The idea, popularized by tools that randomly kill production instances, is that if you regularly and deliberately cause the failures you claim to be resilient to, you’ll discover the cases where you actually aren’t, and you build genuine confidence in the ones where you are. It’s done carefully - starting small, with a hypothesis about what should happen, often in non-production first and then in production with safeguards - but the core principle is that the only way to truly know a system is resilient to a failure is to cause that failure and watch it survive.

flowchart LR
  H[Form hypothesis:\n'losing an AZ should not cause outage'] --> Inject[Inject the failure\nterminate instances / fail AZ]
  Inject --> Observe[Observe: did it self-heal\nwithin expectations?]
  Observe -->|Yes| Confidence[Confidence confirmed]
  Observe -->|No| Gap[Found a gap - fix it calmly\nbefore a real incident]
  Gap -.improves.-> H

6.4 Game Days

A game day is a planned exercise where the team simulates a failure or disaster and practises responding to it - failing over a Region, taking down a dependency, or walking through an incident scenario. Game days serve two purposes: they test that the system’s resilience and recovery mechanisms actually work (finding technical gaps), and they exercise the team’s incident-response process, runbooks, and coordination (finding process gaps and building the muscle memory to respond calmly). Because the exercise is planned and controlled, the team learns in a low-stakes setting rather than during a real crisis. Regular game days are how mature organizations keep both their systems and their people ready - so that when a real disaster strikes, both the technology and the response have been rehearsed.

6.5 Building a Culture of Resilience Testing

Resilience testing works best as an ongoing practice, not a one-off. Systems change constantly - new dependencies, new services, new deployments - so resilience that held last quarter may have regressed, which is why you test continually rather than assuming past results hold. This connects to the operational-excellence themes from the observability volume: game days feed blameless postmortems and action items, chaos experiments validate that resilience patterns and automatic recovery work, and the whole practice embodies “learn from failure” - except you cause the failure deliberately and safely instead of waiting for it. The cultural shift is from fearing failure to routinely rehearsing it, which is what produces systems and teams that are genuinely, provably resilient rather than hopefully so.

6.6 Banking Production Scenario

A bank runs regular game days and chaos experiments to prove its resilience. In controlled exercises it terminates instances to confirm Auto Scaling replaces them, fails over the database to verify multi-AZ recovery, and simulates a Region loss to rehearse the full DR failover - verifying each recovers within its objectives and fixing any gap found while calmly watching, not during an outage. Game days also exercise the on-call team’s runbooks and coordination, building the muscle memory to respond to a real incident. Findings feed blameless postmortems and concrete improvements. Because the bank regularly causes the failures it claims to withstand, its high-availability and disaster-recovery designs are validated in practice rather than assumed - so when real failures occur, both the systems and the people respond as rehearsed.

6.7 Troubleshooting: Untested Resilience

The failure mode here is resilience that only exists on paper. A multi-AZ or failover mechanism that doesn’t actually work when a real failure hits means it was never tested - run chaos experiments and game days to verify it. An incident response that’s chaotic despite having runbooks means the team never practised - hold game days to build the muscle memory. Resilience that worked before but has silently regressed means testing isn’t ongoing - test continually as the system changes. A team that fears causing any failure will never validate resilience - build a culture of controlled, safe failure injection. The remedy throughout is to stop assuming and start proving: deliberately and safely inject the failures you claim to survive, verify the response, and fix the gaps before real incidents expose them.

Interview Question

What is chaos engineering, and why do mature teams deliberately inject failures?

Chaos engineering is the practice of deliberately injecting failures into a system - terminating instances, cutting off a dependency, adding latency, failing an Availability Zone - and observing whether the system handles them as expected, in order to test and build confidence in its resilience. Mature teams do this because of a hard-won lesson that runs through all of high availability and disaster recovery: untested assumptions fail when it matters. You may have designed multi-AZ failover, circuit breakers, automatic instance replacement, and graceful degradation, and you may believe they work - but until you actually cause the failure and watch the system respond, you only have theory, and the worst possible time to discover that a resilience mechanism has a gap is during a real incident. Untested DR plans don’t work, untested backups don’t restore, and untested failover has gaps, so the only way to truly know a system survives a given failure is to cause that failure and see it survive. Chaos engineering operationalizes this: you form a hypothesis about what should happen - “losing an Availability Zone should not cause an outage” - then deliberately inject that failure in a controlled way and observe whether the system self-heals as designed; if it does, you’ve confirmed real confidence, and if it doesn’t, you’ve found a gap you can fix calmly while watching, rather than during an outage. It’s done carefully - starting small, often in non-production first and then in production with safeguards - but the core principle is that regularly causing the failures you claim to be resilient to reveals where you actually aren’t. Related to this, mature teams run game days - planned exercises simulating a failure or disaster where the team practises responding - which test both that the technical resilience and recovery mechanisms work and that the team’s incident-response process, runbooks, and coordination work, building the muscle memory to respond calmly to a real crisis. And they do it continually rather than once, because systems constantly change and resilience that held last quarter may have silently regressed. The reason mature teams embrace deliberately breaking their own systems is that it’s the only way to move from “we hope it’s resilient” to “we know it is”: it validates the high-availability and DR designs in practice, exercises the people as well as the technology, feeds blameless postmortems and improvements, and finds gaps in a controlled, low-stakes setting instead of during a real incident. The cultural shift is from fearing failure to routinely rehearsing it, which is exactly what produces systems and teams that are genuinely, provably resilient - and being able to speak to this signals real operational maturity.

Chapter Revision Notes

  • Resilience is only theory until tested - untested DR, backups, and failover routinely fail when needed.
  • Chaos engineering deliberately injects failures (kill instances, fail an AZ, add latency) to verify the system responds as designed.
  • Do it with a hypothesis, start small, use safeguards - finding gaps calmly beforehand instead of during a real incident.
  • Game days rehearse both the technical recovery and the team’s incident-response process, building muscle memory.
  • Test continually (systems change and resilience regresses); it embodies “learn from failure” by causing it safely and deliberately.