Scrivio Interview library
ConceptFoundations6 min read · updated 13 November 2026

Chaos engineering is injecting failures on purpose, such as killing instances, adding latency or cutting network paths, to learn how a system really behaves before an incident shows it. A game day is a planned session where a team runs such experiments together.

What are the steps of a well-run chaos experiment, and how does it differ from ordinary failure tests in a test suite?

A well-run chaos experiment defines steady state with business metrics, states a hypothesis, picks a fault and the smallest blast radius that tests it with numeric abort conditions and an instant stop, runs it while comparing against a baseline, records how systems and people responded, and then fixes what it found and repeats, ideally automatically. Unlike a unit or integration test, which checks a known expected result, a chaos experiment explores the emergent behaviour of the whole running system, including configuration, timeouts, capacity and people.

Why this question is asked

Every system has a design that says what should happen when a server dies or a dependency slows down. Chaos engineering checks whether that is really what happens. Interviewers ask about it because the difference between a reckless outage and a useful experiment lies in the steps, and because many people confuse it with ordinary failure tests. In this answer, we will walk through the steps of an experiment with one concrete example, losing a cache replica during checkout, and then compare chaos experiments with the tests we already have.

1A Quick Recap of What We Are Trying to Learn

Chaos engineering means injecting failures on purpose, such as killing an instance, adding latency or cutting a network path, to learn how a system behaves before a real incident shows us. The word experiment matters: we have a hypothesis about the system and we test it, with the smallest risk that still gives a clear answer.

Our example system is a checkout service that reads product and price data from a Redis cluster with one primary and two replicas. The design says that losing one replica is harmless, because clients will use the other replica or the primary. We want to know if that is true.

2Define Steady State and a Hypothesis

Steady state is what normal looks like, measured with metrics that matter to the business rather than to one machine. For checkout that could be orders per minute, checkout success rate (say 99.6 percent) and p99 latency (say 400 ms). CPU usage is a poor steady-state metric, because it can change without users noticing, and users can suffer while it looks fine.

The hypothesis is a specific prediction in those terms: if we stop one Redis replica, checkout success stays above 99.5 percent and p99 stays under 500 ms. A prediction like this can be proven wrong, which is what makes it useful.

3Choose the Fault, the Blast Radius and the Abort Conditions

Next we choose the fault that tests the hypothesis, here stopping one replica, and the smallest blast radius that still tests it. That might be the replica used by one zone's pods, or one replica serving a small share of traffic. A small blast radius means that if the hypothesis is wrong, few users notice.

Before running anything, we write abort conditions as numbers, for example checkout success below 99 percent for 60 seconds, and we make sure there is a way to stop the fault at once, such as restarting the replica or removing the network rule. Tools like Chaos Mesh, LitmusChaos, AWS Fault Injection Service or Gremlin provide both the fault and the stop button.

4Run, Compare and Observe

We run the experiment and compare the steady-state metrics with a control group, such as pods in zones not affected, or with the baseline from the minutes before. If an abort condition triggers, we stop immediately; that is a result, not a failure of the experiment.

We also record how the people and tools responded. Did an alert fire? Did it reach the right team? Did the dashboard make the cause clear, or did someone need ten minutes to work out what was happening? Often the most valuable findings are not in the code: a missing alert, a confusing dashboard, or a runbook step that no longer works.

Step throughThe loop of a chaos experiment
  1. Define steady stateorders per minute, success rate, p99
  2. State a hypothesislosing one replica changes nothing
  3. Pick fault, blast radius, abort rulesone replica, one zone, success below 99%
  4. Inject the fault and compare to controlrecord alerts, dashboards, people
  5. Abort condition reached?
    YesStop the fault at onceNoFinish and analyse
  6. Fix what we learned and repeatautomate it to catch regressions

6 steps in order. Play them, or step through them one at a time.

5Fix, Repeat and Automate

Suppose the experiment showed that checkout latency jumped to 2 seconds, because the Redis client waited for a long connect timeout before trying another node. We fix the timeout, then run the same experiment again to confirm the fix. Once the experiment passes reliably, we automate it to run regularly, for example weekly, so a later configuration change that brings the long timeout back is caught by the experiment rather than by customers.

6How Chaos Experiments Differ From Failure Tests

A unit or integration test checks a known expected result in a controlled setup: given this mock that throws, the method returns the fallback. It is precise and repeatable, and we should have many of them. But it only tests what we thought to test, with the configuration of the test environment.

A chaos experiment explores the emergent behaviour of the whole running system: the real timeouts and pool sizes in production configuration, the real capacity of the remaining nodes, the interaction between retries in five services, and the alerts and people who respond. Those things exist fully only in production, which is why mature teams run experiments there, carefully, after they have gained confidence in staging.

Failure tests compared with chaos experiments
AspectUnit or integration testChaos experiment
Question askedDoes this code return the expected result?How does the whole system behave?
EnvironmentTest setup, mocks or containersStaging, then production
CoversCode paths we thought ofConfiguration, capacity, timeouts, people
OutcomePass or failEvidence for or against a hypothesis

7Follow-up questions

Why start in staging, and why not stay there?

Staging is where we learn to run the experiment safely: we check that the fault does what we expect, that the stop button works and that our dashboards show the effect, without risking customers. But staging differs from production in traffic, data size, configuration and capacity, so a system that survives a fault in staging may still fail in production. Once the experiment is well understood, we move it to production with a small blast radius and automatic aborts, because that is the only place where the real behaviour exists.

Is chaos engineering just breaking things randomly?

No. Random breakage without a hypothesis, metrics or abort conditions is an outage we caused. An experiment starts with steady state and a hypothesis, limits the blast radius, can be stopped instantly, and ends with recorded findings and fixes.

What is a good first experiment for a team?

One where the team is confident of the answer and the risk is low, such as terminating one stateless application pod in staging and checking that traffic shifts with no errors. It teaches the tools and the process, and builds trust before experiments that test less certain hypotheses.

8Conclusion

In this answer, we went through the steps of a chaos experiment: define steady state with business metrics, state a hypothesis, choose a fault with the smallest blast radius, numeric abort conditions and an instant stop, run it against a control while recording how systems and people respond, and then fix, repeat and automate. We also saw that ordinary tests check known results in controlled setups, while chaos experiments explore how the whole running system behaves, which is why mature teams eventually run them in production.

What to say in the interviewAbout 80 seconds aloud

Open with

A chaos experiment has a clear set of steps. First I define steady state using business metrics, like orders per minute, checkout success rate and p99 latency, not CPU.

Then, if they want more

Then a hypothesis in those terms, for example: if we stop one Redis replica, checkout success stays above 99.5 percent. Next I choose the fault and the smallest blast radius that still tests it, like one replica or one zone, and I write abort conditions as numbers and make sure I can stop the fault instantly.

Then I run it, compare against a control group or the baseline, abort if a condition is hit, and record everything, including which alerts fired, whether dashboards made the cause clear and how people responded. Afterwards we fix what we learned, run it again to confirm, and automate it so it catches regressions.

The difference from a unit or integration test is that those check a known expected result in a controlled setup, which is valuable but only covers what we thought of. A chaos experiment explores the emergent behaviour of the whole running system: real configuration, timeouts, capacity, retries across services and the people on call. That is why teams start in staging but move carefully into production.

About this answer

Last updated
13 November 2026
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the official documentation for the version you use. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer

Copy the line below and send it to the author with what you found. It carries the address of this page.

Issue with "What are the steps of a well-run chaos experiment, and how does it differ from ordinary...": https://scrivio-interview-library.netlify.app/architecture/high-availability/87ca328b6d/