InterviewStack.io LogoInterviewStack.io

A and B Test Design Questions

Designing and running A and B tests and split tests to evaluate product and feature changes. Candidates should be able to form clear null and alternative hypotheses, select appropriate primary metrics and guardrail metrics that reflect both product goals and user safety, choose randomization and assignment strategies, and calculate sample size and test duration using power analysis and minimum detectable effect reasoning. They should understand applied statistical analysis concepts including p values confidence intervals one tailed and two tailed tests sequential monitoring and stopping rules and corrections for multiple comparisons. Practical abilities include diagnosing inconclusive or noisy experiments detecting and mitigating common biases such as peeking selection bias novelty effects seasonality instrumentation errors and network interference and deciding when experiments are appropriate versus alternative evaluation methods. Senior candidates should reason about trade offs between speed and statistical rigor plan safe rollouts and ramping define rollback plans and communicate uncertainty and business implications to technical and non technical stakeholders. For developer facing products candidates should also consider constraints such as small populations cross team effects ethical concerns and special instrumentation needs.

EasyTechnical
62 practiced
You're asked to design an experiment to change the checkout flow with the business goal of increasing completed purchases (revenue). As a BI analyst identify and justify an appropriate primary metric, list at least four guardrail metrics (technical and business), and propose concrete threshold values or decision rules for those guardrails that would trigger pausing or rolling back the experiment.
HardTechnical
47 practiced
Compare Bayesian sequential testing and frequentist alpha-spending approaches for A/B tests. Discuss interpretability, the role and choice of priors, pre-specification requirements, stopping rules, computational cost, and how each approach maps to business decision thresholds. Recommend an approach for a high-velocity growth team that runs many small experiments daily, and justify your choice.
MediumTechnical
56 practiced
Write Python pseudocode or a short script that computes a 95% bootstrap confidence interval for median revenue per user given an array of per-user revenues. Use 10,000 bootstrap samples. Explain how you would handle users with zero revenue and heavy-tailed distributions in your implementation.
MediumTechnical
79 practiced
You are running an experiment on a social feed where treatment can affect friends' engagement (network interference). Describe at least three randomization strategies to mitigate interference (e.g., cluster randomization, ego-network randomization, graph-clustering). For each strategy, explain pros/cons and implications for power and sample-size calculation.
HardTechnical
59 practiced
You detect a sample ratio mismatch in a live experiment and suspect instrumentation error. Provide a forensic checklist with concrete SQL queries and log checks: assignment-service logs, hashing-salt changes, duplicate events, time-zone issues, platform rollout discrepancies. Explain remediation strategies: reprocessing events, excluding corrupted data, or re-running experiments.

Unlock Full Question Bank

Get access to hundreds of A and B Test Design interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.