Skip to content
Tech Interview Prep

Data Analyst Interview Prep

Overview

A Data Analyst builds trusted metrics and analyses that convert ambiguous business questions into defensible decisions for product and operational teams.

Curated: · Written: · Reviewed:

Interview Q&A
106
Practice MCQs
102

The role in one line

A Data Analyst owns the metrics and analyses that product and operations teams use to decide, and is accountable for the numbers being right before anyone acts on them.

The interview loop

RoundTypical formatWhat it scores
SQL screenLive query on a given schemaGrain, join cardinality, NULL and date handling, validation habits
Metrics caseAmbiguous business questionPopulation, numerator, denominator, window, segment mix, diagnosis
Experiment or causalInterpret results or design a testPower, peeking, SRM, confounding, decision impact
Stakeholder roundPresent a recommendationFraming, caveats stated once, a clear call

Round names and lengths vary by company. Confirm the format with the recruiter.

Five must-know areas

  • Join grain: why a one-to-many join multiplies measures, and how to aggregate the child table before joining.
  • NULL and set semantics: NOT IN with a NULL in the subquery, LEFT JOIN turned inner by a WHERE filter, COUNT(*) against COUNT(column).
  • Window logic: ties under ROW_NUMBER, RANK and DENSE_RANK, and the default frame of a running total.
  • Metric definition: explicit population, time window and denominator, plus a check that segment mix did not move.
  • Experiment validity: sample size set before launch, SRM checked first, and correction for multiple comparisons.

Numbers and formulas to have ready

  • Two-sided alpha of 0.05 gives z = 1.96. 80% power gives z = 0.84.
  • Approximate sample size per arm for a difference in means: n≈2(z1−α/2+z1−β)2σ2δ2n \approx \frac{2(z_{1-\alpha/2}+z_{1-\beta})^2\sigma^2}{\delta^2} where delta is the minimum detectable effect and sigma is the outcome standard deviation from your own data.
  • SRM: a chi-square test of observed assignment counts against the planned split. Many teams treat p below 0.001 as a stop signal. Confirm the threshold with your team's policy.
  • Month-over-month growth: gm=Rm−Rm−1Rm−1g_m = \frac{R_m - R_{m-1}}{R_{m-1}} with NULLIF on the denominator so a zero prior month returns NULL rather than an error.
  • DAU/MAU: average daily active usersmonthly active users\frac{\text{average daily active users}}{\text{monthly active users}} which reads as the share of monthly users active on a typical day.
  • Sample size, baseline rate and variance depend on your system's data. Say where you would pull them from rather than quoting a number.

Reference architecture

Source systems: orders, items, events Raw ingestion tables Grain-checked fact tables Semantic metric layer Dashboards and ad hoc SQL Reconciliation against finance ledger

The fact tables carry one declared grain each. The reconciliation step is where a few-percent gap against finance gets caught. The metric layer is where the population and window of each measure are fixed once.

Strong vs weak answers

PromptStrong answer sounds likeWeak answer sounds like
Revenue doubled after joinItems fan out orders, so I aggregate items per order before joining, then compare row counts at each step.The data must be duplicated somewhere.
LEFT JOIN returns fewer customersA WHERE condition on the right table drops the NULL-extended rows. I move it into the ON clause.Maybe the join is broken.
Daily revenue off by a few percentI start with timezone and cutoff boundaries, refund timing, and whether finance uses the ledger date.Finance is probably wrong.
Metric drops 5%Did the population change, did segment mix shift, or did the denominator move? I split by segment first.Users must be churning more.
Experiment shows significant liftI check SRM and the planned sample before reading the lift, and I note the peeking history.The p-value is below 0.05, so we ship it.

Interview tips

  1. Frame first. Restate the metric, population and window in one sentence before writing any SQL.
  2. Name the grain of every table you touch, out loud, before each join.
  3. Validate as you go: row counts before and after each join, and a total checked against a number you already trust.
  4. Name the one assumption that would change the answer, and say how you would check it.
  5. End with a recommendation and the result that would change your mind.

Last-week checklist:

  • Re-write three Top 100 answers from memory, timed.
  • Run the join fan-out and NOT IN NULL examples on a scratch table.
  • Practise one full metrics case aloud: frame, assumptions, analysis, validation, recommendation.
  • Work through the A/B testing and hypothesis testing concepts, redoing sample size by hand.
  • Prepare two stories where a number you reported was challenged and how you resolved it.

Feedback on this overview

Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.