Data Investigation and Root Cause Analysis Questions
Diagnosing why a metric moved. Covers structured drill-down, segmentation to isolate drivers, distinguishing real shifts from noise or data artifacts, and forming and testing explanatory hypotheses. Focuses on the investigative reasoning behind metric-change and anomaly questions.
A marketing campaign or a gradual/canaried feature rollout ran at the same time a metric moved, and simple before/after comparison isn't convincing enough. Design a more rigorous diagnostic test to attribute the change: cohort construction, pre/post comparison, difference-in-differences, or a minimal confirmatory experiment using feature flags, and explain what would rule out the confounders you're most worried about.
An experiment's own analysis and what actually happened in production tell conflicting stories: for example an A/B test shows no significant effect but a large regression appears in production after the same change ships, or an experiment shows a significant result in the metric you logged but a different result in a downstream system, or effect estimates flip sign across regions of the same rollout. Design a diagnostic plan to reconcile the discrepancy: the data checks you'd run, the biases or artifacts that could explain a difference between the experiment's data and reality, and the tests you'd run to pinpoint which is right.
Write a SQL query (or pandas equivalent) that builds a cohort retention table: for each acquisition cohort, compute the percentage of users who return in each subsequent period. Handle users who appear on multiple devices or identifiers, users with missing or ambiguous signup dates, and partial/incomplete recent cohorts, and describe how you'd visualize the resulting retention curve for stakeholders.
A core conversion metric dropped 10% month-over-month. Walk through your triage and investigation plan at a medium level of rigor: initial validation checks, sample SQL queries, cohort and funnel analyses you'd run, instrumentation checks, and how you would structure communication to stakeholders while the investigation is still in progress.
Given an events table, write a SQL query (or clear pseudocode) that computes, per ordered funnel step (for example signup to activation to purchase): the unique-user conversion count and rate between consecutive steps, AND the median and 90th-percentile time (velocity) between two of those steps for a recent cohort window. Identify which step is responsible for the largest share of an observed drop in overall conversion, and separately flag any cohort whose step-to-step velocity has slowed meaningfully versus a prior period. Handle users who skip steps, events that arrive out of order, and missing timestamps.
Unlock Full Question Bank
Get access to all 41 Data Investigation and Root Cause Analysis interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.