How would you implement an A/B test for a redesigned dashboard?

Tests experiment rigor: randomize stable user buckets, pick one primary metric and guardrails like latency, pre-calculate sample size and runtime with a minimum detectable effect, and validate via backend logging.
What's really being asked
This question evaluates whether you can design a rigorous randomized experiment rather than simply toggling a feature flag. Interviewers want to see that you understand statistical validity, instrumentation across the full stack, and the difference between product metrics and system health guardrails. Senior candidates are expected to mention stable randomization, pre-registration of hypotheses, and power analysis rather than vague plans to ship the variant with more clicks.
The full answer
First, randomization mechanics: assign users to control or treatment using a stable hash of user ID so the same user always sees the same variant, avoiding cookie-based assignment that refreshes on logout. Second, primary and secondary metrics: pick one north-star engagement metric such as weekly active usage of the dashboard, time to complete a key workflow, or feature adoption rate; instrument this on the backend with immutable event logs rather than frontend pings alone. Third, guardrail metrics: monitor page load time, API error rate, and total support tickets to ensure the redesign does not harm performance or reliability. Fourth, statistical setup: define the minimum detectable effect upfront, calculate required sample size and experiment duration based on baseline traffic, and agree on a success criterion before peeking at results. Fifth, instrumentation details: frontend should log exposure events when the variant renders, while backend should log business outcomes and revenue events tied to the same user ID for clean joinability.
The mistakes people make
A major red flag is proposing to randomize by session or device, which splits users and dilutes the treatment effect. Another is relying solely on frontend analytics without backend validation, creating data loss when users block trackers. Suggesting a one-day test or checking results daily without a fixed stopping rule introduces peeking bias and inflates false-positive rates. Finally, ignoring guardrail metrics can let a performance regression slip through because the engagement metric looked positive.
What usually comes next
The interviewer may ask how you would handle network effects if the dashboard has collaborative features, how to run the test when traffic is too low for standard power, or what you would do if the primary metric is flat but guardrails degrade. They might also probe how you would segment results by user tenure or device type without inflating family-wise error rates.
A concrete example
Suppose the current dashboard has a 20 percent seven-day retention rate and you expect the redesign to lift it to 22 percent. With a baseline of 10,000 daily active users, a significance level of 0.05, and 80 percent power, you need roughly 6,400 users per variant, so you run the test for two weeks. Frontend instruments an exposure event called dashboard_redesign_exposure with variant name and timestamp; backend instruments dashboard_core_action_completed and support_ticket_created. You review the engagement lift alongside a guardrail showing that average API latency stayed under 200 milliseconds. If both criteria pass, you schedule a staged rollout.
Interview question
Which combination of randomization, instrumentation, and planning best ensures a rigorous A/B test for a redesigned dashboard?
- a.Assign variants per device ID to capture all traffic, log exposure and outcomes on the backend, and calculate the required sample size using baseline traffic.
- b.Use cookie-based assignment for consistent UX, track a primary engagement metric and page load time, and run the test for two weeks.
- c.Randomize users with a stable hash of user ID, measure the primary metric via frontend pings, and monitor the experiment daily without a fixed stopping date.
- d.Hash user IDs for stable assignment, log exposure on the frontend and business outcomes on the backend, define an MDE to pre-calculate runtime, and monitor guardrail metrics.Correct
Why? this is the answer
Stable user-level hashing prevents treatment dilution, backend logging ensures reliable measurement, and pre-calculating runtime with guardrails protects against bias. Option C is tempting because it uses the correct randomization method, but relying solely on frontend pings risks data loss and daily peeking without a fixed stopping rule inflates false-positive rates.
Just read this? Test yourself on what you have been reading.
Read the original → en.wikipedia.org
- #ab-testing
- #experiment-design
- #metrics
- #instrumentation
- #product-engineering
You just looked this up. Could you explain it out loud?
That is the part interviews actually test. Tezvyn takes questions like this one and gives you what the interviewer is really checking, the answer that lands, and the mistake that ends the conversation, in the four minutes before your next meeting.
The iPhone app is on the way
We are building it. Until it lands, nothing here is held back from you: every interview card, your saved cards, streaks and the job board all work in Safari, plus hundreds of free practice quizzes of thirty questions each. Sign in and it all carries over to the app the day it arrives.
Want it as an icon? Tap Share at the bottom of Safari, then Add to Home Screen. It opens full screen and the cards you have read stay available offline.
We are hiring for this. Open roles that interview on ab-testing — each one lists the topics its interview covers.
See open roles