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.

HardTechnical
89 practiced
Implement in Python a simplified group-sequential early stopping rule using an alpha-spending function (e.g., O'Brien-Fleming approximation). Your function will receive running cumulative successes and totals for control and treatment at each interim and should return stop-for-efficacy, stop-for-futility, or continue while attempting to control overall alpha=0.05. Explain assumptions and limitations in comments.
HardTechnical
58 practiced
In an A/B test some users assigned to treatment do not receive it (noncompliance). Explain intention-to-treat (ITT) vs per-protocol analyses and show how instrumental variables (using assignment as instrument) can estimate the Local Average Treatment Effect (LATE). Include key assumptions and formulas.
MediumTechnical
52 practiced
When is a difference-in-differences (DiD) approach preferable to an A/B test? Describe DiD assumptions (including parallel trends) and explain how you would validate those assumptions in a product experiment context where randomization is impossible.
MediumTechnical
52 practiced
List the instrumentation and data-quality checks (unit tests, integration tests, SQL assertions, real-time monitoring) you would implement before trusting A/B test results. For each check describe why it matters and what alert or remediation you would configure if it fails.
MediumTechnical
94 practiced
For a developer-facing SDK change that reduces API latency but could raise error rates, propose a structured set of primary, secondary, and guardrail metrics. Describe how to instrument these metrics in CI, staging, and production and how to detect regressions early.

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.