Evaluation, Testing & Optimization·Task 4.3·Bloom: analyse·Difficulty 3/5·9 min read·Updated 2026-07-14

Live A/B Testing vs Shadow Testing

Conduct A/B testing and iterative improvements

SUBy Solomon UdohReviewed by Solomon UdohAI-assisted · human-reviewed
In short
Live A/B testing routes real users to the new version and measures real downstream behaviour, but exposes some users to a potential regression. Shadow testing runs the new version in parallel on a copy of live traffic, logs its outputs without ever serving them to a user, and scores them offline. Use live testing when the deployment can absorb bounded exposure and traffic is high enough to reach significance quickly; use shadow testing when a single bad output carries too much risk, traffic is too low for a live split, or the deployment is regulated and cannot expose users to an unvalidated change.

Two ways to test against real traffic

Once you know you need an adequately powered experiment, a second question follows: are you willing to let real users receive the new version while you find out whether it is any good? Sometimes yes, sometimes emphatically no. Live A/B testing and shadow testing are the two answers, and choosing between them is a risk-and-traffic decision, not a preference. The analyse-level skill is matching the method to the deployment's tolerance for a bad output and to how much traffic it has to work with, and understanding what each method buys and gives up.

Live A/B testing vs shadow testing
Live A/B testing routes a fraction of real users to the new version and measures their real downstream behaviour, accepting that some users are exposed to a possible regression. Shadow testing runs the new version in parallel on a copy of live requests, logs its outputs without ever serving them, and scores them offline against a rubric or golden answers, so the deployment decision is made before any user sees the new version. The choice depends on risk tolerance and traffic volume.

Live A/B testing: real signal, real exposure

In a live A/B test, a portion of real users is routed to the new version, and you measure what actually happens downstream, whether they accepted the answer, followed up, resolved their issue. This is the method's great advantage: it captures real user behaviour, including signals that only exist when a real response is served, which an offline score can only approximate.

The price is exposure. Some real users receive the new version before you know it is good, so if the new version is a regression, those users feel it. That is acceptable when the deployment can absorb a small, bounded amount of exposure to a worse version, and when traffic is high enough to reach a statistically meaningful sample in a reasonable window. High traffic plus tolerable downside is the profile where live testing is the right call.

Shadow testing: no exposure, weaker signal

In shadow testing, the new version runs alongside the current one on a copy of live requests, but its outputs are never served, every user still gets the current version's response. The shadow outputs are logged and scored offline afterward, so the deployment decision is made before a single user has seen the new version. Nobody is ever exposed to the untested change.

The cost is the flip side of live testing's advantage: with no user receiving the shadow output, you lose real downstream behaviour as a signal. Scoring falls back on an offline rubric or golden answers, which is a genuine measurement but not the same as watching real users react. So shadow testing trades real-behaviour signal for zero exposure, and that trade is exactly right when a bad output would be too costly to serve even once.

Matching the method to the situation

Choose live A/B testing when two conditions hold: the deployment can tolerate bounded exposure to a worse version, and traffic is high enough to reach significance quickly. The payoff is the richest possible signal.

Choose shadow testing when any of three conditions holds: a single bad output carries too much risk to serve even once; traffic is too low to support a live split before the decision is needed; or the deployment is regulated and exposing users to an unvalidated change is not permissible at all. In medical, financial, and similarly governed contexts, shadow testing is often the only acceptable way to validate a change, because the live option is simply off the table.

Choosing between live and shadow testing
Loading diagram...
Live testing buys the richest signal at the cost of exposure; shadow testing eliminates exposure at the cost of real downstream behaviour.

What the exam trips candidates on

The first trap is choosing a live A/B test for a regulated, high-risk deployment, medical, financial, where any user exposure to a bad output is unacceptable. A scenario will describe such a deployment and offer a live split; the credited reading rejects it and selects shadow testing, because the risk profile forbids serving an unvalidated change even to a few users.

The second trap is assuming shadow testing produces the same quality of signal as a live test. A scenario will treat an offline shadow score as equivalent to a live result; the correct answer notes that shadow testing loses real downstream user-behaviour signal and relies on an offline rubric instead, so its evidence is real but weaker in a specific way. Both traps reward reasoning from risk and signal rather than defaulting to one method.

Worked example

A team wants to validate a prompt change to a system that drafts patient-facing medical guidance. The deployment is regulated, a single unsafe output is unacceptable, and daily volume is modest. They propose a live 50/50 A/B test. Evaluate the choice and recommend an approach.

The live 50/50 split is the wrong method here, and two of its preconditions fail.

First, the risk profile forbids it. In a regulated, patient-facing medical deployment, a single unsafe output served to a real user is unacceptable, and a live A/B test by definition serves the new version to real users before it is validated. Exposing even a small fraction of patients to an unvalidated change to medical guidance is exactly the harm the method cannot avoid. That alone rules out live testing.

Second, the traffic is modest, so even setting aside risk, a live split would take a long time to reach an adequately powered sample given the higher variance of LLM outputs, and the change is presumably needed sooner than that.

The right approach is shadow testing. Run the new prompt in parallel on a copy of live requests, never serve its outputs, log them, and score them offline, using a rubric and golden answers, ideally with human review on this high-stakes content and a calibrated judge for scale. The deployment decision is then made before any patient has seen the new version, which is the only acceptable posture for this context.

The team should also be clear-eyed about the tradeoff they are accepting: shadow testing gives up real downstream signal, whether patients or clinicians actually acted on the guidance, and substitutes an offline judgment of quality. That is a real loss, but in a setting where a single bad served output is unacceptable, it is the correct loss to take.

Common misreadings to avoid

Misconception

A live A/B test is the gold standard, so use it even for regulated, high-risk deployments.

What's actually true

Live testing serves the new version to real users before it is validated. In regulated or high-risk contexts where a single bad output is unacceptable, that exposure is not permissible, and shadow testing, which never serves the untested output, is the correct method.

Misconception

Shadow testing gives the same quality of evidence as a live A/B test.

What's actually true

Shadow testing eliminates user exposure but loses real downstream behaviour as a signal. Because no user receives the shadow output, scoring relies on an offline rubric or golden answers rather than real acceptance or follow-up, which is real evidence but weaker than a live result in that specific respect.

How this shows up on the exam

Domain 4 questions on this knowledge point describe a deployment with a particular risk and traffic profile and ask which testing method fits. The reliable reasoning picks live testing only when bounded exposure is tolerable and traffic is sufficient, picks shadow testing for high-risk, low-traffic, or regulated deployments, and acknowledges that shadow testing trades real downstream signal for zero exposure.

This builds on sample size and statistical power, since traffic volume drives how quickly each method reaches significance, and it completes the design side of the five components of an A/B test. Offline shadow scoring leans on a calibrated LLM judge and golden answers, and the eval-gated caution it embodies mirrors fixing model mismatch, where a change is validated before it is trusted in production.

Check your understanding

A regulated financial-advice system with modest daily traffic needs a prompt change validated. A single bad served output is unacceptable. Which testing approach fits?

People also ask

What is shadow testing?
Running the new version on a copy of live traffic, logging its outputs without serving them, and scoring them offline, so the deploy decision is made before any user sees the new version.
When should you use shadow testing instead of a live A/B test?
When a single bad output is too risky to serve, traffic is too low for a live split, or a regulated deployment cannot expose users to an unvalidated change.
What signal does shadow testing lose compared to live testing?
Real downstream user behaviour like acceptance or follow-up; scoring falls back on an offline rubric or golden answers because no user receives the shadow output.

Watch and learn

Official Anthropic Academy lessons first, then hand-picked walkthroughs. Videos load only when you press play.

No videos curated for this concept yet

We are still curating the best official and community videos for this topic.

Official prep for this domain

Anthropic's own free prep module for this part of the syllabus, on the official prep course. Free with an Anthropic Academy sign-in.

References & primary sources

Adaptive study

Master this concept with Archie

Practice it inside an adaptive study session. Archie, your Socratic AI tutor, tracks your mastery with Bayesian Knowledge Tracing and schedules the perfect next review.

Start studying