Data analyst interview questions
50 questions, easy to hard. Read one, then answer it out loud: an AI interviewer follows up, hints when you're stuck and grades your answer.
Data analyst interviews test whether you can turn data into decisions: SQL for analytics (funnels, retention, moving averages), defining and diagnosing metrics, designing and reading A/B tests, and the statistics behind them.
SQL for Analytics
Your product manager asks for a chart of daily active users from an events table. Explain how you'd define the metric precisely and describe in words the query you'd write.
What a strong answer covers
- Pinning down exactly what being active means before writing anything.
- Counting people rather than actions.
- Agreeing where a day begins and ends.
- Making the chart complete and checking it against something you trust.
Common mistake: Counting events instead of distinct users, so one very busy user looks like many.
- Pivot Rows into Columns
- medium
- Pro
Finance wants a report with one row per month and a separate revenue column for each sales channel: web, app and phone. Your data has one row per order with a channel field. Explain how you'd produce this shape in SQL.
What a strong answer covers
- How to bucket orders into months.
- A way to build one column per channel within a single grouped query.
- Showing empty months clearly rather than as blanks.
- The maintenance cost of fixed columns, and alternatives.
Common mistake: Running a separate query per channel and stitching them together, which is slower and easy to get out of step.
- Seven-Day Moving Average
- medium
- Pro
Daily order numbers jump around so much that the trend is hard to see, and your manager asks for a seven-day moving average. Explain how you'd calculate it in SQL and the traps to avoid.
What a strong answer covers
- Getting to one row per day before smoothing.
- How a window over neighbouring days produces the average.
- Why gaps in the dates break the calculation, and how to fill them.
- How to treat the start of the series.
Common mistake: Applying the window directly to raw orders or to days with gaps, so the average no longer covers seven days.
- Compare Week on Week
- medium
- Pro
Your manager wants each week's sign-ups shown next to the previous week's, with the percentage change. Explain how you'd build this in SQL and the edge cases to handle.
What a strong answer covers
- Bucketing sign-ups into weeks with an agreed start day.
- Ways for each week to see the one before it.
- Calculating the change safely when the earlier figure is zero.
- Handling the week that hasn't finished yet.
Common mistake: Comparing a half-finished current week with a full one and reporting an alarming drop.
- Build a Conversion Funnel
- medium
- Pro
Product wants to know how many users view a product, add it to the basket, start checkout and pay, and where they drop off. Explain how you'd build this funnel from an events table.
What a strong answer covers
- Counting people at each step and the conversion between steps.
- Making sure steps are counted in the right order.
- Setting a time limit for completing the journey.
- Breaking results down to find where to act.
Common mistake: Counting each step independently, so users who skipped earlier steps make the funnel look better than it is.
- Median and Percentiles
- medium
- Pro
A dashboard reports the average order value, but a few huge corporate orders make it misleading. Explain why the median or percentiles can be better and how you'd calculate them in SQL.
What a strong answer covers
- Why an average can mislead when a few values are extreme.
- What percentiles add about the spread of values.
- How databases calculate them.
- Why percentiles from separate groups can't simply be combined.
Common mistake: Averaging the medians of each region and calling it the overall median.
- Cohort Retention
- hard
- Pro
Leadership asks whether users who signed up recently stick around better than earlier users. Explain how you'd build a monthly cohort retention table from sign-ups and activity events.
What a strong answer covers
- How users are grouped by when they joined.
- Turning activity dates into time since joining.
- Turning counts into rates and laying out the table.
- Reading the table fairly, especially for recent cohorts.
Common mistake: Comparing raw active-user counts across cohorts of different sizes instead of retention rates.
- Group Events into Sessions
- hard
- Pro
Your events table has no session IDs, but analysts want to know how long people spend per visit. Explain how you'd group each user's events into sessions where a gap of over thirty minutes starts a new one.
What a strong answer covers
- Putting each user's events in time order and comparing neighbours.
- Spotting where a new visit begins.
- Turning those starting points into session numbers.
- Summarising each session, including the odd one-event visit.
Common mistake: Grouping events into fixed clock windows, which splits one visit in two or merges separate visits.
Metrics
A music streaming app has just launched a feature that builds a personalised playlist for each user every Monday. How would you measure whether it's a success?
What a strong answer covers
- Why the feature exists, for listeners and for the company.
- A small set of measures from first use through to lasting value.
- One headline number and the reason for choosing it.
- Something to watch so a win in one place isn't a loss in another.
Common mistake: Listing a dozen metrics with no single primary one and no check on side effects elsewhere in the app.
A banking app reports its number of monthly active users to the board. What should count as active, and why does the definition matter?
What a strong answer covers
- Why "active" should reflect real use, not just a login.
- A concrete definition and the reasoning behind it.
- The right time window for how people use a bank.
- What goes wrong with a loose or shifting definition.
Common mistake: Counting anyone who opens the app, including background refreshes, which inflates the number the board sees.
Explain the difference between a leading and a lagging indicator, using a subscription video service as your example. Why would a product team want both?
What a strong answer covers
- What makes a measure a lagging one.
- What makes a measure a leading one.
- Examples of each that fit a video subscription.
- Why a team needs both, and the need to check the early signal really predicts.
Common mistake: Picking an early signal that feels right without checking that it actually predicts the outcome you care about.
- Map the Funnel
- easy
An online grocery shop wants more first orders. Describe the funnel from a visitor landing on the site to completing a first order, and explain how you'd use it to decide where to focus.
What a strong answer covers
- The steps from first visit to a completed first order, in order.
- Measuring how many people make it from one step to the next.
- Deciding where to focus, which isn't always the biggest drop.
- Likely reasons for a drop and how you'd look into them.
Common mistake: Assuming the step with the largest drop-off is automatically the best place to work, without weighing how fixable it is.
The chief executive of a meditation app is celebrating one million downloads. Explain why that number might be misleading, and what you'd look at instead.
What a strong answer covers
- What makes a number flattering but unhelpful.
- What the headline figure hides.
- Measures that reflect real value instead.
- How a better measure would change what the company does.
Common mistake: Simply calling downloads bad without suggesting what to track instead or how it would change decisions.
- Read a Retention Curve
- easy
- Pro
For a photo-editing app, the share of each month's new users still active drops steeply in the first week, then flattens out at about fifteen percent. Explain what this tells you and what you'd do about it.
What a strong answer covers
- What this kind of chart shows.
- What the levelling-off says about the product.
- Where the biggest opportunity lies and how you'd investigate it.
- How you'd learn from the users who stay and track improvement.
Common mistake: Reading the fifteen percent as a failure, missing that a flat curve shows a core of users who keep getting value.
- Pick a North Star Metric
- medium
- Pro
You've joined a food delivery app as its head of product, and the chief executive asks you to pick one north star metric for the whole company. Which would you choose, and how would you defend it?
What a strong answer covers
- Every group the business depends on and what each gets.
- A few candidates and the weakness of each.
- A final pick that ties customer value to the business, with a defence.
- Supporting measures that stop the headline number being gamed.
Common mistake: Choosing revenue as the north star, which measures what the company captures rather than the value it delivers.
- Diagnose a Drop in Sign-ups
- medium
- Pro
You're the product manager for a fitness app, and daily sign-ups fell by twenty percent overnight on Tuesday. Your manager wants to know what happened. How would you investigate?
What a strong answer covers
- Confirming the drop is real before investigating.
- Possible causes both inside the company and outside it.
- Splitting the numbers to see where the fall is concentrated.
- A leading explanation, how to confirm it and next steps.
Common mistake: Launching into theories about competitors or marketing before checking whether a tracking or release change caused the dip.
- Measure Search Quality
- medium
- Pro
You own the search bar of a large online clothes shop. How would you measure whether search is working well for shoppers?
What a strong answer covers
- What good search means for shoppers and the shop.
- Measures that show searches succeeding.
- Behaviours that reveal a search has failed.
- A main measure and a check against it being gamed.
Common mistake: Counting the number of searches as success, when lots of searching can mean people aren't finding what they want.
- Choose Guardrail Metrics
- medium
- Pro
A social app wants to send more push notifications to increase daily visits. What guardrail metrics would you set before allowing it, and why?
What a strong answer covers
- What guardrails are for.
- The specific harms worth watching here.
- Why short-term gains can hide long-term damage.
- Turning guardrails into clear rules for the decision.
Common mistake: Judging only a week of data, before the opt-outs and uninstalls from irritated users have had time to show up.
- When a Target Gets Gamed
- medium
- Pro
A customer support team was given the target of closing more tickets per hour. Closures went up, but customer satisfaction fell. Explain what happened and how you'd set better goals.
What a strong answer covers
- The general principle behind what happened.
- How the target could have been met without helping customers.
- Measures that balance speed with quality.
- Ways to make gaming harder.
Common mistake: Blaming the agents' behaviour rather than recognising that a single speed target invited exactly this result.
- Diagnose Rising Cancellations
- medium
- Pro
A meal kit subscription has seen monthly cancellations rise from five to eight percent over three months. How would you find out why, and what would you do?
What a strong answer covers
- Making sure the rise is real and consistently measured.
- Breaking cancellations down to see who is leaving.
- Possible causes inside and outside the business.
- A hypothesis, how to test it and actions that fit the cause.
Common mistake: Jumping to retention discounts for everyone before finding out which customers are leaving and why.
- Engagement Up, Revenue Down
- hard
- Pro
On a video sharing app, time spent per user has risen by ten percent over the last quarter, but advertising revenue has fallen by five percent. Explain how you'd work out why, and what you'd recommend.
What a strong answer covers
- Breaking revenue into the parts that multiply together.
- Explanations that could make both trends true at once.
- Slicing the data to test those explanations.
- A recommendation that protects the experience as well as revenue.
Common mistake: Recommending more ads straight away, without finding which part of revenue fell or risking the engagement gains.
- Measure a Long-Term Outcome
- hard
- Pro
A health app's mission is to help people become fitter over a year, but the team needs to know within weeks whether new features help. How would you measure success?
What a strong answer covers
- Defining the long-term goal in measurable terms.
- Early signals that should predict it.
- Checking that those signals really do predict it.
- Risks with the early signals, and continuing to track the real goal.
Common mistake: Picking a convenient early number, such as app opens, without ever checking it relates to people getting fitter.
- Measure Trust and Safety
- hard
- Pro
You lead product for the trust and safety team at an online marketplace, which removes scams and fake listings. How would you measure whether your team is doing a good job?
What a strong answer covers
- Why counting the bad things you remove isn't enough.
- Estimating how much harm is still out there.
- Balancing catching bad actors against hurting honest ones.
- Outcomes for users and the business, and one headline measure.
Common mistake: Reporting the number of removals as the success measure, which can rise simply because there's more fraud.
Experimentation
Explain to a new colleague in marketing what an A/B test is and why a product team would run one instead of just launching a change and watching the numbers.
What a strong answer covers
- How people are divided between versions and why that's done by chance.
- Why that lets you credit a difference to the change.
- Why simply launching and watching can mislead.
- A simple example the colleague can picture.
Common mistake: Describing the groups as chosen by hand, or skipping why random assignment is what makes the comparison fair.
Your team wants to show delivery dates on the product pages of an online shop. Write a clear hypothesis for an A/B test of this change and explain what makes it a good one.
What a strong answer covers
- A statement linking the change, the expected effect and the reason.
- A specific metric that will judge it.
- Wording that the results could clearly prove wrong.
- Why it's written down before the test runs.
Common mistake: Writing a vague hope such as "this will improve the experience" that no result could ever disprove.
A travel booking site is testing a bigger, brighter book now button. Which metrics would you choose to judge the test, and why?
What a strong answer covers
- A primary measure tied to what the business actually wants.
- Why a surface-level number can rise without real benefit.
- The things that must not get worse.
- Deciding all this before the test begins.
Common mistake: Judging a button test on clicks on the button alone, so a rise in clicks is mistaken for a rise in bookings.
Your company now wants every change to be A/B tested. Give examples of when an A/B test is a poor choice, and what you'd do instead.
What a strong answer covers
- Situations where there isn't enough traffic for a clear answer.
- Changes where holding some users back would be wrong or risky.
- Changes whose effects are slow or spill between users, or are plainly right.
- Other ways to learn or decide in those cases.
Common mistake: Arguing only that testing is slow, without giving concrete cases or saying what to do instead.
A test shows the new version's conversion rate is two percent higher, and the result is statistically significant. Explain to a non-technical manager what that does and doesn't mean.
What a strong answer covers
- What significance protects you from, in plain words.
- What it doesn't tell you about the exact size of the effect.
- How often chance alone can still produce a significant result.
- The difference between a real effect and a worthwhile one.
Common mistake: Saying significance means there's a 95 percent chance the change works, or that the effect is exactly two percent.
- How Long to Run a Test
- medium
- Pro
Your manager wants to run an A/B test on a checkout change for three days and then decide. How would you work out how long the test should actually run?
What a strong answer covers
- The inputs that set how many users a test needs.
- Turning that sample size into a duration.
- Why the calendar, especially weekly cycles, matters.
- Fixing the length in advance and why.
Common mistake: Picking a duration by gut feel and stopping whenever the dashboard first shows a winner.
- Stop the Test Early?
- medium
- Pro
Four days into a planned two-week test, the new version is ahead and the dashboard says it's significant. A director wants to stop now and ship. What would you say?
What a strong answer covers
- How repeatedly checking inflates the chance of a false win.
- Why early results are unrepresentative.
- When stopping early is legitimate or methodologically planned for.
- Handling the director's request constructively.
Common mistake: Trusting the dashboard's significance label without realising it assumes you only looked once, at the planned end.
- The Test Came Back Flat
- medium
- Pro
Your team spent a month redesigning the search results page, and the A/B test shows no significant difference. The team is disappointed. How would you interpret this and decide what to do?
What a strong answer covers
- Why no detected difference isn't proof of no effect.
- Checking the test itself worked as intended.
- Learning from the data without hunting for a story.
- A clear decision about what happens next.
Common mistake: Slicing the results into many segments until something looks significant, and presenting that as the finding.
- A Win That Faded
- medium
- Pro
A redesigned home page boosted clicks by fifteen percent in the first week of its test, but by week three the lift was nearly gone. Explain what might be going on and how you'd handle it.
What a strong answer covers
- Why novelty can create a temporary lift.
- Other reasons an early effect might shrink.
- Analysis that separates new users from returning ones or looks at exposure over time.
- Which effect should drive the decision.
Common mistake: Shipping on the strength of the first week's lift, as if it would last.
- Winner Overall, Loser in One Country
- medium
- Pro
A test of a new pricing page wins overall, but when the team splits results by country, it loses in France. Someone wants to ship everywhere except France. What would you advise?
What a strong answer covers
- Why splitting results many ways produces chance differences.
- Whether this segment was planned and large enough to trust.
- Looking for a real reason the country might behave differently.
- A sensible decision and follow-up.
Common mistake: Treating an unplanned country split as a proven result and acting on it without a follow-up test.
- Testing in a Marketplace
- hard
- Pro
A ride-hailing company wants to test a feature that matches riders to drivers faster, but riders in both groups share the same pool of drivers. Explain the problem this creates and how you'd design the test.
What a strong answer covers
- How shared supply makes the two groups affect each other.
- Which direction that bias usually pushes the result.
- Test designs that randomise at a level other than the individual rider.
- What those designs cost in precision or comparability.
Common mistake: Running a standard user-level split and reporting the gap between groups as the true effect of the feature.
- Ship It or Not?
- hard
- Pro
A test of a simpler subscription sign-up flow raises sign-ups by eight percent, but cancellations in the first month also rise and revenue per visitor is flat. Should the company ship it?
What a strong answer covers
- Separating the metric that moved from the outcome that matters.
- Explaining why the downstream numbers changed.
- Looking further ahead at long-term value.
- A clear call with the conditions behind it.
Common mistake: Shipping because the primary metric won, ignoring that the extra customers cancel and bring no extra revenue.
Statistics and Data
A friend doesn't believe that a poll of about a thousand people can say anything about what a whole country of millions thinks. Explain what a sample is and what makes one trustworthy.
What a strong answer covers
- The difference between the group you care about and the group you actually measure.
- What makes a small group a fair stand-in for a much larger one.
- Why a poll gives an estimate with some uncertainty, not an exact figure.
- Why the way people are picked matters more than how many are picked.
Common mistake: Assuming a sample must be a large share of the population before it can tell you anything.
A friend reads that people who drink diet fizzy drinks are more likely to be overweight, and concludes that diet drinks make you put on weight. Explain reverse causation and how it could explain this finding.
What a strong answer covers
- What the study's finding does and does not show.
- The possibility that cause and effect run the opposite way to the headline.
- How that alternative fits this example as well as the original reading.
- What kind of evidence would settle which way round it goes.
Common mistake: Swapping in the opposite conclusion as certain, rather than showing the data can't tell the two apart.
A gaming website runs an online poll and finds that most people who answered play video games every day, and a friend says this shows most people in the country are daily gamers. Explain what has gone wrong.
What a strong answer covers
- The kind of bias that arises when a sample isn't chosen fairly.
- Why this website's audience is unlike the country as a whole.
- How letting people choose whether to take part skews things further.
- What a better survey would look like, and why sheer size wouldn't help.
Common mistake: Thinking more responses from the same website would make the result reliable.
Walking past some beautiful old stone houses, a friend says that buildings used to be made much better than they are today. Explain survivorship bias and why the old houses we see might give a misleading picture.
What a strong answer covers
- What survivorship bias is.
- What happened to the old buildings we no longer see.
- Why that makes the comparison with modern buildings unfair.
- Another everyday case of the same trap.
Common mistake: Arguing about building techniques instead of noticing that the poorly built old houses are missing from view.
A friend took a herbal remedy for a cold and felt better within a week, so they're sure it works. Explain why feeling better after a treatment doesn't prove the treatment worked, including what the placebo effect is.
What a strong answer covers
- Why getting better after a treatment proves little for illnesses that clear up anyway.
- What the placebo effect is and the kinds of symptoms it affects most.
- Why the timing of when people seek treatment flatters any remedy.
- How a fair comparison would be set up.
Common mistake: Describing the placebo effect as purely imaginary, when people can genuinely feel better.
- Hidden Third Factors
- easy
- Pro
Some early studies found that heavy coffee drinkers had more heart disease, and a friend concludes that coffee is bad for the heart. Explain what a confounding variable is and how one could explain this result.
What a strong answer covers
- What a confounder is and how it can fake a cause-and-effect link.
- A plausible hidden factor in the coffee example.
- How researchers try to take known confounders into account.
- Why randomised experiments remain the stronger test.
Common mistake: Assuming that adjusting for a few factors rules out every possible confounder.
- Why Randomise?
- medium
- Pro
A school wants to know whether a new reading programme works, and a teacher suggests letting keen families sign up and comparing their children with everyone else. Explain why a randomised controlled trial would give a more trustworthy answer.
What a strong answer covers
- Why volunteers make a poor comparison group.
- How a randomised controlled trial is set up.
- Why letting chance decide balances out differences, including unmeasured ones.
- A practical or ethical limitation worth bearing in mind.
Common mistake: Thinking randomisation is only about fairness to families, rather than about making the groups comparable.
- Single and Double Blinding
- medium
- Pro
A company tests a new painkiller against sugar pills, but the doctors who ask patients how much pain they feel know which pill each patient took. Explain what blinding is, why it matters here, and the difference between single-blind and double-blind trials.
What a strong answer covers
- What blinding is and what it protects against.
- Who is kept unaware in a single-blind trial and what that controls for.
- What a double-blind trial adds, and how researchers can sway results without meaning to.
- Why it matters so much in this trial in particular.
Common mistake: Assuming only the patients' expectations matter, so that blinding the doctors is unnecessary.
- How Big Does a Sample Need to Be?
- medium
- Pro
A poll of about a thousand random voters has a margin of error of roughly three percentage points. Explain what that margin means, what happens if you poll four times as many people, and whether a bigger country needs a much bigger sample.
What a strong answer covers
- What the margin of error describes and the confidence level usually behind it.
- How the margin changes as the sample grows, and why the gains shrink.
- Whether the size of the whole country affects how many people you need.
- Which kinds of error the margin doesn't account for.
Common mistake: Expecting four times the sample to cut the margin to a quarter, or a bigger country to need a proportionally bigger poll.
- Regression to the Mean
- medium
- Pro
A council puts speed cameras at the junctions that had the most crashes last year, and the next year crashes there fall, so it declares the cameras a success. Explain regression to the mean and why it makes this conclusion shaky.
What a strong answer covers
- Why yearly crash counts bounce around partly by chance.
- What regression to the mean is.
- How picking the worst sites builds in an expected fall.
- A fairer way to judge whether the cameras worked.
Common mistake: Concluding the cameras did nothing, when the point is that this evidence can't separate their effect from chance.
- What a P-Value Means
- medium
- Pro
A news story says a new fertiliser made plants grow taller, with a p-value of nought point nought three, and a friend says that means there's only a three in a hundred chance the fertiliser doesn't work. Explain what a p-value really means and why your friend's reading is wrong.
What a strong answer covers
- The starting assumption a p-value is worked out under.
- What a p-value actually measures.
- Why it can't be read as the chance that the fertiliser fails.
- What statistical significance means, and what it says nothing about.
Common mistake: Reading a p-value as the probability that the null hypothesis is true.
- Reading a Confidence Interval
- medium
- Pro
A study reports that a diet helped people lose an average of three kilograms, with a ninety-five per cent confidence interval from one to five kilograms. Explain what that interval tells you and how its width and position should affect how you read the result.
What a strong answer covers
- What the range is telling you about the true average effect.
- What the ninety-five per cent actually refers to.
- What a narrow or a wide interval says about precision.
- What the interval's position tells you about significance and about how big the effect might be.
Common mistake: Saying there is a ninety-five per cent chance the true value lies inside this particular interval, as if the probability were about the value.
A huge study of a hundred thousand people finds that a supplement lowers blood pressure by a statistically significant amount, which turns out to be about half a point. Explain the difference between statistical significance and practical significance using this example.
What a strong answer covers
- What statistical significance does and doesn't tell you.
- How very large samples make tiny effects significant.
- What practical significance means, applied to the blood-pressure figure.
- What to weigh up instead of relying on the significance label alone.
Common mistake: Treating significant as a synonym for important or large.
Researchers test whether jelly beans cause spots, find nothing, then test twenty different colours separately and find that green ones are linked to spots with a p-value under nought point nought five. Explain why this finding is probably a fluke and what p-hacking is.
What a strong answer covers
- How often a single test throws up a false alarm when nothing is going on.
- How the risk of at least one false alarm grows over many tests.
- What p-hacking is and the forms it takes.
- Safeguards that stop chance findings being reported as real.
Common mistake: Multiplying five per cent by twenty to get a hundred per cent, instead of working out the chance of at least one false positive.
- Simpson's Paradox
- hard
- Pro
Hospital A saves a bigger share of its patients overall than Hospital B, yet Hospital B does better for mild cases and does better for severe cases too. Explain how this can happen, and which hospital you would rather be treated at.
What a strong answer covers
- Why combining groups with different survival chances can mislead.
- What is likely to differ between the two hospitals' patients.
- A worked set of numbers showing the reversal.
- Which hospital to choose and why, and the name of the effect.
Common mistake: Picking Hospital A because of its better overall rate, without comparing like with like.
Questions about practising
- How should I prepare for data analyst interview questions?
- Practise answering them out loud, not just reading them. Explaining an answer under follow-up questions is what interviews test. Work through the 50 questions here from easy to hard, and revisit the ones you struggle with.
- Can I practise data analyst interview questions with an AI?
- Yes. Open any question and start a voice session: an AI interviewer asks it, follows up on your answer, gives hints when you're stuck and grades your answer with written feedback when the call ends.
- Are these data analyst interview questions free?
- 16 of the 50 questions are free to practise. Sign in with Google, no card needed. Pro unlocks the rest, plus practice calls to your phone.