PrepGenAICerts

Shadow Testing vs. Live A/B Testing

Core

Run A/B tests and apply iterative improvement to drive design decisions · Difficulty 3/5

0%
shadow-testingab-testingrollout-strategyrisk-management

Explanation

Once a change is ready to test against real traffic (not just the offline held-out set), there are two fundamentally different ways to expose it to that traffic, and they answer different questions.

The Two Modes

SHADOW TESTING runs a new version in parallel on real production traffic, logging its outputs, but NEVER serving them to users. Zero user-facing risk -- if the shadow version crashes, hallucinates wildly, or triples in latency, no user ever sees it. The tradeoff is exactly that safety: because users never see the shadow output, you don't get real behavioral or business-metric feedback (click-through, satisfaction, conversion) -- shadow testing tells you about latency, cost, and error rate under real production load, and lets you catch crashes or malformed output before any user exposure, but it cannot tell you whether users actually prefer the new behavior.

LIVE A/B TESTING is a real user-facing split test -- a defined fraction of real users actually receive the treatment variant. This gets you real engagement and quality signal, because real users are actually experiencing and reacting to the new behavior. The tradeoff is real risk to that fraction of users: if the treatment is subtly worse, some real users had a worse real experience before you found out.

Decision Criteria

QuestionShadow testLive A/B
Is this a risky change (new model version, major prompt rewrite, new retrieval architecture)?Test here FIRSTOnly after shadow testing is stable
Do you need latency/cost/error-rate data under real production load?Yes -- this is exactly what shadow testing measuresNot the primary purpose
Do you need real user engagement or business-metric signal?No -- shadow output is never seen by usersYes -- this is what live A/B is for
Is the change low-risk and well-understood (a minor prompt wording tweak)?Often unnecessary overheadCan go straight to a live A/B

The Sequencing Pattern

For a genuinely risky change, the correct sequence is shadow-test FIRST, to catch infrastructure-level problems cheaply and with zero user exposure, THEN promote to a live A/B once shadow testing shows the new version is stable -- to measure the actual quality and business impact that only real user exposure can reveal. Skipping straight to a live A/B on a risky, unproven change means the first time you discover a crash-inducing edge case or a latency regression is in front of real users in the treatment group, rather than in a shadow log nobody but you ever sees.

Common exam traps

  • Treating shadow testing as a substitute for a live A/B, or vice versa. Shadow testing cannot answer "do users prefer this," and a live A/B on an unproven, risky change exposes real users to a failure mode a shadow test would have caught for free. The correct answer names the sequence -- shadow first for risky changes, live A/B second to measure real impact -- not one mode standing in for the other.
  • Assuming shadow testing is always required. For a low-risk, well-understood change, going straight to a live A/B (or even skipping straight to full rollout with monitoring) can be the right call; shadow testing exists to de-risk changes where the downside of a live failure is meaningfully worse than the cost of the extra step.

Key Takeaways

  • Shadow testing runs a new version on real traffic and logs its output, but never serves it to users -- zero user-facing risk, no real behavioral/business signal
  • Live A/B testing serves the treatment to a real fraction of users -- real engagement/quality signal, real risk to that fraction
  • Shadow testing is for latency, cost, and error-rate comparison and catching crashes before any user exposure
  • The correct sequence for a risky change is shadow-test first, then promote to a live A/B once shadow testing shows stability
  • Shadow testing cannot tell you whether users actually prefer the new behavior -- only a live A/B answers that

Glossary Terms

Related Concepts

PrepGenAICerts.com is an independent third-party exam-prep platform for the Claude Certified Architect (CCA-F) certification. We are not affiliated with, endorsed by, or acting on behalf of Anthropic PBC.

Note: New premium upgrades are temporarily paused while we resolve an issue with our payment provider. Existing premium members retain full access.