Experimentation Platforms and Infrastructure Questions
Infrastructure for A/B testing and experimentation: assignment/bucketing, metric pipelines for experiments, guardrail and variance-reduction plumbing, and experiment result storage. Covers building the platform that powers trustworthy online experiments at scale. Distinct from the statistics of experiment analysis.
Beyond purchase conversion, what less obvious guardrail metrics should you monitor for a mobile commerce checkout funnel experiment? For each one, explain how you would instrument it, why it matters, and what unintended consequence of the experiment it could reveal.
Sample Answer
Direct answer
Beyond purchase conversion, a mobile commerce checkout funnel experiment should watch things like cart abandonment rate at each specific step, payment-retry rate, app crash or ANR rate during checkout, support-ticket rate tagged to checkout, and average order value, because a change that improves the headline conversion number can still be quietly making the experience worse in a way that shows up first in one of these.
Structured elaboration
- Step-level abandonment rate: instrument each funnel step (cart, shipping, payment, confirmation) separately, not just the funnel's overall conversion, because a redesign can improve overall conversion while making one specific step meaningfully worse, and that detail is invisible in an aggregate number.
- Payment-retry rate: a rise here often precedes a drop in completion and can reveal friction (a confusing new payment UI) before it fully shows up as lost conversions, since some users will retry successfully and never register as a failure even though their experience got worse.
- App stability during checkout: a crash or ANR (app-not-responding) rate spike specifically during the checkout flow is a guardrail that a pure conversion metric would never catch, since a crashed session simply looks like an abandoned one with no distinguishing signal unless stability is instrumented separately.
- Support-ticket rate: a genuinely confusing but not-quite-broken flow shows up here days before it would show up as a conversion dip, since some fraction of confused users will complete the purchase anyway but complain about the experience.
- Average order value: completion rate can rise while order value quietly falls (users are completing purchases faster but buying less), netting out to no real revenue gain even though the primary metric looks like a clear win.
Worked example
A checkout redesign shows a genuine +2% lift in completion rate. Average order value simultaneously drops 3%, which the completion-rate metric alone would never surface. Net revenue per session is roughly flat, meaning the redesign didn't actually create value, it just changed the shape of the funnel, which is exactly the kind of result a team celebrating the headline conversion number would misread as an unambiguous win.
Trade-offs and pitfalls
Instrumenting every possible guardrail sounds safe but creates its own cost: too many guardrails on one experiment both burdens the multiple-testing correction and can produce a false alarm on some metric almost by chance, simply because there are so many being watched. The practical approach is a short, curated list agreed on once for the checkout surface specifically (not reinvented per experiment), reserving genuinely novel guardrails for experiments that have a specific reason to expect a novel failure mode.
Design an experiment metadata schema (relational or document) that supports lineage, multiple versions of the same experiment, owners, compliance tags, and status transitions. Show the core fields and explain how an analyst or an auditor would use each one to reconstruct a past experiment.
Sample Answer
Direct answer
Design the metadata schema around lineage, versioning, ownership, compliance, and status, with each experiment record capable of pointing back to prior versions of itself (a re-launch, a configuration change) rather than treating every change as an entirely new, disconnected record; an analyst uses these fields to find what ran and when, and an auditor uses them to reconstruct exactly what changed, who approved it, and why.
Structured elaboration
Core fields: experiment_id (stable across the experiment's life), version (increments on any material configuration change), parent_experiment_id (for a follow-up or re-launch that's conceptually the "same" test), owner, compliance_tags (which regulatory or policy category this touches, if any), dataset_links (which underlying tables/event streams feed its metrics), and status with a full transition history rather than just a current value. Rounding out the fields a reproducible re-analysis actually needs: assignment_seed (the exact value used to hash users into buckets, without which a past random assignment can never be recomputed), sample_allocation (the percentage split that was actually live, which the version field's change_history should preserve alongside every prior value, not just the current one), and code_version (which build of the experiment's code was running), so a backfill job recomputing historical metrics after a bug fix can reconstruct precisely what a user would have experienced at any past point in time.
Lookup patterns: an analyst investigating "what experiments touched this metric last quarter" queries by dataset_links and date range; an auditor reconstructing a specific decision queries the status transition history for exactly when an approval happened and who granted it; someone tracing a re-launched experiment's full history follows the parent_experiment_id chain back through every prior version rather than treating each relaunch as an unrelated, disconnected record.
Worked example
A pricing experiment launches, gets paused after two days due to a guardrail breach, is fixed, and relaunches as a new version two weeks later. Without a parent_experiment_id linking the relaunch to the original, an analyst querying "what happened with this pricing test" only finds the successful second attempt and has no record of the first attempt's guardrail breach, which is exactly the kind of institutional memory loss a lineage-aware schema is meant to prevent.
Trade-offs and pitfalls
Making every configuration change spawn an entirely new, disconnected experiment_id is simpler to implement but destroys the lineage an auditor or analyst actually needs; carrying full version history for every field on every change is more complete but adds real storage and query complexity. Most platforms land on versioning only the fields that materially affect interpretation (allocation, targeting, metrics) while treating cosmetic changes (a description edit) as non-versioned metadata updates.
Design an automated reporting pipeline that computes statistical significance and uncertainty for hundreds of experiments daily and produces a concise 'experiment card' for executives. How do you apply multiple-testing correction before it reaches the card, how do you present uncertainty honestly on a one-page summary, and how do you trade off freshness against compute cost? Include a manual review gate before anything reaches an executive inbox.
Sample Answer
Direct answer
Design the reporting pipeline to compute significance and uncertainty for every experiment daily, apply a multiple-testing correction before anything reaches an executive-facing card, present uncertainty honestly (a range, not a bare point estimate), balance freshness against compute cost by tiering how often different tiers of experiments recompute, and gate anything reaching an executive inbox behind a manual review step, since an unreviewed automated report reaching leadership is a much more costly mistake than the same error reaching an internal analyst dashboard.
Structured elaboration
- Architecture: raw metric computation feeds a scheduled aggregation job that, once a day, applies the org's chosen multiple-testing correction across that day's batch of tests, then a templating layer renders a short, standardized "experiment card" (headline result, confidence range, guardrail status) per experiment.
- Handling multiple-testing correction: since this pipeline is specifically the one aggregating results across many experiments for executive consumption, it's a natural place to enforce the correction consistently, rather than leaving each team's individual dashboard to (inconsistently) decide whether to correct or not.
- Presenting uncertainty honestly: a card shows a range ("we estimate a 2 to 5 percent improvement") rather than a single point number, and explicitly flags when a result is not yet statistically reliable, rather than omitting uncertainty to look cleaner.
- Freshness versus compute cost: recomputing every card in real time for every experiment is expensive at scale; a practical tiering computes high-visibility or high-stakes experiments' cards more frequently (say, hourly) while lower-priority ones refresh once daily, since a stakeholder waiting on a major launch decision has a different freshness need than someone casually checking a long-tail experiment.
- Manual review gate: before a card reaches an executive's inbox (as opposed to sitting in an internal dashboard anyone can browse), a human reviews it, specifically to catch an automated-but-wrong summary (a card that technically computed correctly but tells a misleading story, like showing a "win" the guardrail metrics would contradict) before it reaches an audience less equipped to independently verify.
- Minimizing alert fatigue: the same pipeline, run against hundreds of metrics daily rather than just per-experiment cards, needs its own noise control (scoring how surprising a flagged change is against that metric's own historical variance, not a flat threshold) or the volume of flagged changes trains recipients to skim past all of them, including the real ones.
- A lower-stakes channel for routine updates: not every update needs the weight of an executive card; a lighter-touch automated weekly email to metric owners, summarizing key numbers, significance, and a suggested next step, serves the routine-monitoring need without invoking the full manual-review machinery reserved for genuinely executive-facing summaries.
Worked example
An automated card for a checkout experiment reports "+4% conversion, statistically significant" the same day a guardrail metric (payment failure rate) quietly crossed its own threshold. Without a manual review gate, that card reaches executives showing an unambiguous win while the platform's own guardrail system is flagging a real problem elsewhere; the review step is what catches the mismatch and either holds the card or adds the guardrail context before it ships to that audience.
Trade-offs and pitfalls
A manual review gate on every card doesn't scale if the org runs hundreds of experiments a day; the practical answer is scoping the gate to cards that are actually executive-facing (a small, curated subset) rather than every internal report, and building automated pre-checks (does the guardrail status contradict the primary-metric headline) that flag a card for mandatory review rather than requiring a human to read every single one regardless of risk.
What metadata should every experiment record to make its results reproducible and auditable later? List the core fields (owner, hypothesis, start/end dates, assignment seed, code/config version, variant definitions) and explain what each one is used for.
Sample Answer
Direct answer
Store an owner, hypothesis, start/end dates (planned and actual), the assignment seed and variant allocations, the variant definitions (what each variant literally configures, not just its traffic share), the code or configuration version being tested, and a status field tracking the experiment's lifecycle. Each field exists to answer a specific question later: "who do I ask", "what did we expect", "when was this live", "can I reproduce the exact assignment", "what did each arm actually change", and "what code was actually running".
Structured elaboration
A useful way to group the fields is by the question they answer:
| Purpose | Fields | Why it matters |
|---|---|---|
| Ownership and accountability | owner, team, approver | Someone must be reachable when the platform's own guardrail alerts fire six months later. |
| Reproducibility | assignment_seed, variant_allocations, variant_definitions, code_version, config_version | Without the exact seed and the exact code that ran, you cannot re-derive who was in which bucket, which makes any later re-analysis a guess. variant_allocations (the percentage split) and variant_definitions (the literal config, copy, or feature-flag values that make each arm different) are separate fields answering separate questions: allocations tell you HOW MANY users saw each arm, definitions tell you WHAT each arm actually was. A percentage split with no record of what "treatment" concretely configured is unreproducible even if the split itself is perfectly logged. |
| Timing | planned_start, planned_end, actual_start, actual_end, ramp_schedule | Actual dates almost always diverge from planned ones (a ramp gets paused, a launch slips); both need to be recorded, not just one. |
| Intent | hypothesis, primary_metric, guardrail_metrics | A pre-committed hypothesis and metric list is what lets you tell a genuine finding from a post-hoc story fitted to whatever moved. |
| Governance | status (draft, running, paused, concluded, rolled back), compliance_tags | Status transitions are themselves an audit trail: an auditor should be able to see that an experiment was paused on a specific date and why. |
Worked example
Six months after an experiment ships, a data scientist is asked "did we really test this against a 50/50 split, or was it 90/10 during the ramp?" Without stored assignment_allocations per time window, the honest answer is "we don't know." With a metadata table that logs allocation changes and their timestamps, the scientist can reconstruct exactly which users saw the true 50/50 config used in the final analysis versus the earlier 90/10 ramp period, and exclude the ramp period from the reported result if it was not part of the intent-to-treat population. A second, equally common question is "what did treatment actually DO differently from control?" If only variant_allocations was stored (50/50) and variant_definitions was never captured, nobody can answer that without archaeology through old deploys or config diffs; a stored variant_definitions field (for example, a JSON blob recording "control: default checkout order; treatment: payment-method-first order") answers it directly from the metadata table itself.
Trade-offs and pitfalls
Storing too little metadata (just an experiment name and two dates) makes every later question a guess. Storing too much freeform metadata without a fixed schema makes it unqueryable at scale, because nobody agrees on field names across teams. The practical middle ground most platforms converge on is a small fixed core schema (the fields above) plus an open key-value extension field for team-specific context, so cross-team queries and dashboards can rely on the fixed fields while individual teams still get flexibility.
What core instrumentation best practices should be enforced for the events and metrics an experimentation platform depends on? Cover naming conventions, schema versioning, idempotency, event enrichment, and backward compatibility.
Sample Answer
Direct answer
The core instrumentation practices are: consistent naming conventions across teams, explicit schema versioning, idempotent event delivery, event enrichment at ingestion rather than at query time, and backward compatibility whenever a schema changes, because a violation of any one of these quietly corrupts every metric computed downstream without producing an obvious error.
Structured elaboration
- Naming conventions: a shared taxonomy (verb_object style, like purchase_completed rather than one team's buy_done and another's checkout_success for the same underlying action) so a metric defined once can be reused across teams instead of every team redefining "purchase" slightly differently.
- Schema versioning: every event schema carries a version field, and a schema change is additive (new optional fields) rather than repurposing an existing field's meaning, so historical events remain readable by current code.
- Idempotency: events carry a unique event id so a retry (from a flaky network on the client, or a replay after a pipeline failure) can be deduplicated rather than double-counted, which matters enormously for count and sum metrics specifically.
- Event enrichment: joining an event to its experiment exposure, user segment, or session context should happen once, at ingestion, and be stored on the enriched record, rather than re-joined by every downstream query, both for performance and so every team computing a metric from the same enriched table agrees on what "exposed" meant at that moment.
- Backward compatibility: a schema change should never break a metric-computation job that hasn't yet been updated to read the new field, which in practice means never removing or repurposing a field, only adding.
Worked example
A team renames a field from user (an integer id) to user_id (a string id) in place, without a version bump, to "clean things up." Every metric job still filtering on the old field silently sees no matches for new events and reports a metric that quietly stops updating, which looks exactly like "the experiment has no effect" rather than "the pipeline broke," and can go unnoticed for days because nothing errors.
Trade-offs and pitfalls
Enforcing all of this centrally (a single shared schema registry every team must go through) adds process overhead that slows down individual teams shipping new events. The pragmatic middle ground most platforms land on is: a small number of core, centrally-governed event types (exposure, generic conversion) that everyone must use as-is, plus a flexible custom-properties field for team-specific context that doesn't require central review, so the fields that feed universal validity checks (like SRM) stay standardized while teams retain flexibility for their own custom analysis.
Unlock Full Question Bank
Get access to all Experimentation Platforms and Infrastructure interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.