By Ajitesh

Data Science Mock Interview: 5 Rounds Worth Practicing With AI

Data Science Mock Interview: 5 Rounds Worth Practicing With AI

A data science mock interview is only worth the time if the interviewer does something a question list cannot do. A list cannot hold back the one fact that explains a metric drop until you ask for it, read the query you typed and ask what it returns for row four, or take a phrase from your project story and ask what assumption it rests on. Those moments decide real rounds, and you only meet them by talking.

This post takes five mock interviews from our Data Science Interview Prep course and goes through each one: the question as asked, where the interviewer pushes, a weak answer next to a strong one, and what the written report scores. The interviewer in all five is Daniel, an AI interviewer who does not teach, hint or praise during the call. The weak and strong answers are examples I wrote to show the difference, not transcripts of real candidates. The overview of rounds and a study plan live in the data science interview prep guide. This post stays inside five rooms.

Which data science mock interview to run first

If you have never done a mock, start with the past project round. You already know the material, so all of your attention goes to the format: five minutes of talking, then questions you did not write. If your loop is a week away, run the A/B testing round first, because experimentation is the round where a correct design can still end in a wrong decision. If your SQL is fine on easy problems and you are not sure about hard ones, the SQL round will tell you in 25 minutes.

Pick by situation
Never done a mockPast projectYour own material, so you only learn the format.
Loop in a weekA/B test readoutDesign, sizing and a results table in one round.
Unsure about hard SQLSQL, hard levelTwo multi-step problems, typed and defended.
Product analytics roleOrders fell 12%The data stays hidden until you ask for a cut.
Modelling roleKNN from scratchNumPy on a notepad, tested by hand.
After any of themRerun the weakestRead the report, then take the same round again.
Start where you will learn the format fastest, then move to the round your loop weights most.

1. A/B testing interview question: should we ship the Daily Mix row?

Daniel opens with a product decision: “You’re a data scientist at a music streaming app. The team wants to add a personalised ‘Daily Mix’ row at the top of the home screen. How would you decide whether to ship it?” The experimentation mock runs 20 to 25 minutes, with about fifteen on this case. If you ask, he tells you there are about ten million daily active users, 38% of them start a play from the home screen each day, and the new row pushes “Recently played” down one slot.

Many A/B testing interview questions stop at design. This one also makes you size the test and read a results table that has a problem in it.

The follow-ups come in a fixed order: metrics and guardrails, the randomization unit, then sample size. With a 38% baseline, a one point lift, alpha 0.05 and 80% power, the quick rule is 16 times the variance over the lift squared: 16 × 0.38 × 0.62 ÷ 0.01², about 38,000 users per group. Ten million daily users cover that within hours, and if you say so, he asks, “Why not run it for one day, then?” One day misses the weekday and weekend cycle and catches the novelty spike, so you run whole weeks anyway. Next comes novelty: home plays up 6% in week one and 2% in week two. Then a twist: the Daily Mix now shows what your friends are playing. Does your design still hold, when treated users can influence control users?

Then a results table lands on the notepad. Home play rate went from 38.0% to 39.1%, up 1.1 points, with p below 0.001. Listening minutes are up 1.3% at p 0.04. “Recently played” plays are down 8%. Skip rate is up slightly, and ad revenue and day-7 retention show no significant change. The first row says 1,000,000 users were assigned to control and 1,021,000 to treatment, on a planned 50/50 split, so treatment has 21,000 more. A footnote says 24 metrics were tracked. If your readout never mentions the user counts, Daniel asks once, “Anything about the setup in this table that concerns you?”

Two readouts of the same table (examples)
Weak readout
Candidate“Home play rate is up 1.1 points and very significant. Listening minutes are up too, and retention is flat. I’d ship it.”
Ships on a split that is broken.
Strong readout
Candidate“Before any metric: we planned 50/50 and treatment has 21,000 more users. That is far beyond chance, so something biased who landed where.”
Candidate“I would not ship on this run. Find the cause, rerun, and make total listening the primary.”
Checks the split, then decides.
The primary metric is significant in both readings. Only one of them noticed that the experiment cannot be trusted.

The arithmetic behind the strong answer is short. A 50/50 split of 2,021,000 users should put 1,010,500 in each group. Each group is off by 10,500, which gives a chi-square statistic of about 218 against a cutoff of 3.84 at the 5% level. That is a sample ratio mismatch, and until you know what caused it, no row in the table can be trusted. A strong candidate still reads the rest: home plays rose while “Recently played” fell, which looks like cannibalisation, and a p of 0.04 on one of 24 metrics is weak evidence.

The report scores five lines: problem framing and hypotheses (20%), metrics and guardrails (20%), design and statistics (25%), pitfalls and alternatives (20%), and readout and recommendation (15%). Missing the mismatch entirely caps the readout score at 5 out of 10, and the report says whether you spotted it unprompted, when asked, or not at all. Our A/B testing case on ads revenue covers the product side.

2. SQL mock interview, hard level: invalid gift card redemptions

The hard SQL mock runs about 25 minutes. Daniel puts a problem on the notepad with its tables and sample rows, you type the query underneath, and he reads it when you say done. You get two problems from a bank of six: gaps and islands on ticket statuses, first-touch attribution, month-over-month growth, a reporting chain that needs a recursive query, a leaderboard with ties, and the one I want to walk through. Daniel assigns the pair, so you may or may not be given this one. If you have seen a problem before, say so and he swaps it.

The gift card problem starts with one line: “A payments team wants every invalid gift card redemption, with the reason it failed.” A redemption is valid only if the redeemer owns the card and the card has no earlier valid redemption. A failed attempt does not use up the card. Each invalid row gets exactly one reason: unknown_card, not_owner or already_used.

No single function solves it. You have to read a spec and notice that two rules can be checked one row at a time, while the third depends on the other rows of the same card, and only the valid ones.

The natural first attempt is to number every redemption per card in time order and flag everything after the first as already used. On the seven sample rows, that breaks on card 2. Redemption 3 is someone who does not own the card. Redemption 4, two days later, is the real owner, and it is the card’s first valid use. Daniel will not tell you the query is wrong. He asks, “What does your query say about redemption 4?” and gives you one round to fix it.

Card 2, two ways of counting (examples)
Number every attempt
3first attempt, by a non-owner: not_owner
4second attempt, by the owner: already_used
Blocks the owner’s first real use.
Number only the owner’s attempts
3fails the per-row check: not_owner
4first use that passed the checks: valid
A failed attempt does not use up the card.
The rule says “no earlier valid redemption”. The word valid decides which rows you are allowed to count.

A strong answer says the plan first: label the per-row failures, then number what is left.

WITH checked AS (
  SELECT r.redemption_id, r.card_id, r.redeemed_at,
         CASE WHEN g.card_id IS NULL THEN 'unknown_card'
              WHEN r.redeemed_by <> g.owner_id THEN 'not_owner'
         END AS reason
  FROM redemptions r
  LEFT JOIN gift_cards g ON g.card_id = r.card_id
),
owner_uses AS (
  SELECT redemption_id,
         ROW_NUMBER() OVER (PARTITION BY card_id
                            ORDER BY redeemed_at, redemption_id) AS use_no
  FROM checked
  WHERE reason IS NULL
)
SELECT c.redemption_id, COALESCE(c.reason, 'already_used') AS reason
FROM checked c
LEFT JOIN owner_uses o ON o.redemption_id = c.redemption_id
WHERE c.reason IS NOT NULL OR o.use_no > 1
ORDER BY c.redemption_id;

On the sample rows this returns four invalid redemptions: 2 as already used, 3 as not owner, 6 as already used and 7 as unknown card. The LEFT JOIN keeps redemption 7, whose card is not in the cards table and which an inner join would silently drop. The tie-breaker on redemption_id matters because redemptions 5 and 6 share a timestamp.

Then the probes. One edge case is a NULL in redeemed_by: the not-equal comparison returns NULL, the CASE falls through, and the row slips past as valid. The performance question is “This runs hourly on a billion redemptions. What would you do?” A good answer indexes on card and time and checks only the cards touched since the last run. A better one adds that double use should be prevented at write time, with a constraint or a transaction.

The report weights correctness at 35%, approach and communication at 20%, edge cases at 20%, query quality and performance at 15%, and speed at 10%. A trap you fix after a probe earns about half the credit of getting it right unprompted.

3. Root cause analysis: weekly orders fell 12% in one city

The data case study mock opens with a card: “You’re a data scientist at a large food delivery app. Over the last two weeks, weekly orders in one large city fell twelve percent. Leadership wants to know why, and what to do.” The round is about 25 minutes, with roughly fourteen on this case and seven on a shorter second one.

Daniel holds the data and reveals a fact only when you ask for that cut. So the round measures the order of your questions, which a written model answer hides.

A weak run is a list of guesses. “Maybe there was an app bug, maybe we raised prices, maybe it is seasonal.” Each one comes back empty: no app release, no price change for customers, and the same weeks last year were flat. Even the standard platform cut is a dead end here: iOS, Android and web are all down by similar shares.

A strong run earns each fact. Normal movement is about 2% and other cities are flat, so a 12% drop is real. Tracking did not change, so the data is sound. Then the first split: active customers are down 3% and orders per active customer are down 9%. Multiply 0.97 by 0.91 and you get about 0.88, which is the whole drop. Most of it is active customers ordering less often.

From there the funnel does the work. App opens and restaurant views are flat, but checkout completion fell from 81% to 74%. At checkout, the quoted delivery time rose from 32 to 44 minutes and orders showing a busy-time fee went from 12% to 35%. Those are supply symptoms, and active couriers turn out to be down 20%. One more question finds the cause: base pay per delivery was cut by 15% two weeks ago, the same week a competitor launched a courier sign-up bonus.

The trail, one ask at a time
  1. 1
    Customers or frequency?Active customers down 3%. Orders per active customer down 9%.
  2. 2
    Where in the funnel?Opens and restaurant views flat. Checkout completion fell from 81% to 74%.
  3. 3
    What changed at checkout?Quoted delivery time rose from 32 to 44 minutes. Busy-time fees went from 12% to 35% of orders.
  4. 4
    Is it supply?Active couriers down 20%, starting two weeks ago.
  5. →
    What changed for couriers?Base pay per delivery was cut 15% two weeks ago. A competitor launched a courier sign-up bonus the same week.
People still open the app and still want dinner. They leave at checkout because the wait and the fee went up, and both trace back to couriers.

Once you have the cause, Daniel pushes on the fix: “How would you test your fix before rolling it out city-wide?” The reflex is to randomize customers, but couriers serve everyone in the city, so a customer-level test leaks. The rubric lists “a test randomized by customer for a supply problem” as weak and a zone or switchback test as strong. If you are doing well, he adds the curveball: “Finance says restoring pay costs too much. What would you propose instead, and how would you measure it?”

A strong close, as an example: “Orders fell because we lost a fifth of our couriers after the pay cut, and it shows up as long waits and fees at dinner. I would restore pay at the dinner peak in the districts that were hit, test it by zone, and compare the margin on recovered orders with the incentive cost.”

The report has six lines: clarifying and goal setting (15%), structure and hypotheses (20%), data asks and data literacy (20%), analysis plan and prioritization (20%), recommendation (15%), and communication and collaboration (10%). A root cause analysis walkthrough covers the product manager’s side.

4. ML coding interview: implement KNN from scratch in NumPy

In the ML coding mock, the prompt is on the notepad: implement k-nearest neighbours classification from scratch with NumPy. You get a training matrix, integer labels, one query point and k, and you return the predicted label. The round is 25 minutes. If you say you have just practised KNN, Daniel gives you k-means instead.

Two things set this round apart. You are expected to ask questions that change the code before you write any: classification or regression, the input shapes, the distance metric, what to do on a tied vote. And the code is never executed. When you say done, he asks, “Walk me through what your code returns on the example.” You are the interpreter.

The example has six training points. Three belong to class 0: (1, 1), (1.5, 2) and (2, 1). Three belong to class 1: (6, 5), (7, 7) and (6.5, 6). The query is (2, 2) with k of 3.

The hand test: distance from the query (2, 2)
(1.5, 2) class 0
0.50
(2, 1) class 0
1.00
(1, 1) class 0
1.41
(6, 5) class 1
5.00
(6.5, 6) class 1
6.02
(7, 7) class 1
7.07
Euclidean distance. The three nearest are all class 0, so the vote is 3 to 0.
Saying these six numbers out loud is the test. It also catches the most common bug in the round.

The distances come out as 0.50, 1.00 and 1.41 for the class 0 points, and 5.00, 6.02 and 7.07 for class 1. The three nearest are all class 0, a 3 to 0 vote, so the function returns 0.

Here is the contrast, as an example. The weak version sorts the distances and then uses them as if they were positions:

nearest = np.sort(dists)[:k]        # [0.5, 1.0, 1.41]: distances, not rows
votes = y_train[nearest]            # indexing labels with floats

It looks right at a glance, and tracing the example is how you catch it. The strong version keeps positions and names its tie rule:

def knn_predict(X_train, y_train, x_new, k):
    dists = np.sqrt(((X_train - x_new) ** 2).sum(axis=1))   # (n,)
    nearest = np.argsort(dists)[:k]                          # row indices
    labels, counts = np.unique(y_train[nearest], return_counts=True)
    return int(labels[np.argmax(counts)])                    # tie: smallest label

After the code, the discussion. The one question Daniel keeps even when time is nearly up is about scale: “One feature is income in dollars, another is age. What happens and what do you do?” A weak answer is “I’d normalize the data.” A strong one explains the mechanism: income differences run in the thousands and age differences in the tens, so the distance is almost entirely income. Standardize each feature, fit the scaler on the training data only, and apply the same transform to the query. He also asks what one prediction costs and how you would choose k.

The report scores problem understanding (20%), technical implementation (35%), verification and edge cases (15%), rationale and ML judgement (15%) and communication (15%), and opens with a one-line hire signal.

5. Walk me through a project you’re proud of

The past project mock is about 20 minutes. Daniel asks you to pick one data project, from work, school, research or a serious side project, and gives you about five minutes to present it. He does not interrupt. If you run well past seven minutes he waits for the end of a sentence and says, “Let me stop you there so we have time to dig in.” Then he spends about twelve minutes on follow-ups.

This is the only round of the five with nothing to memorise, because the questions are built from your story. Daniel is told to remember the numbers, model names and people you mention and to use your own words in his follow-ups. He asks six to eight probes across six areas: data choices, metrics, causality, method, stakeholders, and what failed. He starts where your story was thinnest, and he always covers causality and failure.

The causality probe is the one to rehearse: “How do you know your work caused the improvement, and not seasonality or something else that launched at the same time?” If you answer it well, the harder version follows: “If you’d run it twice as long, would you expect the effect to hold? Why?” On method, he picks one technical term you used and asks you to explain how it works and what assumption it makes. Every term you say in your five minutes is one you have agreed to defend.

The contrast shows up in the first thirty seconds. A weak opening, as an example: “I built a churn model using gradient boosting. I did a lot of feature engineering, tuned the hyperparameters, and got a strong AUC.” It starts with the algorithm, and has no problem and no baseline. A strong opening, also an example: “I was on the retention team at a subscription company. Refund requests were taking a median of 4 days to resolve, and slow refunds were followed by cancellations. I built the triage rule that routes them, and in a six-week holdout test the median fell from 4 days to 3.3. I’ll cover the data, two choices I made, and what I would change.” The second gives the problem, a number with a baseline, the speaker’s own role, and a holdout that answers the causality question before it is asked.

How the past project report is weighted
Technical depth and judgment
30%
Structure and storytelling
20%
Impact and causality
20%
Ownership and collaboration
15%
Communication and reflection
15%
Weights from the mock’s rubric. They sum to 100.
Telling the story well is a fifth of the score. Defending the choices inside it is the largest part.

Technical depth and judgment carries 30% of the report, structure and storytelling 20%, impact and causality 20%, ownership and collaboration 15%, and communication and reflection 15%. The rubric’s lowest band for impact is claiming causality “from a before/after with no control”. The report quotes one strong line and one weak line of yours, and gives you the one sentence to add to your opening next time.

The lab behind two of these rounds

The A/B testing round and the metric drop case each have a coach session before the mock, taught by Maya, a voice AI coach, on a Motion App: a live app beside the call that the voice agent controls while it talks, and that tells the agent what you tap. In the experimentation session the board shows the eight steps of a test design and asks which ones candidates rush. You tap a pair, your guess locks, and only then do “Clarify” and “Metrics” turn green. As you answer aloud, your own words are stamped onto an experiment ticket, so the guardrail you named appears in the guardrail row. In the data case session the board runs a small case, daily video viewers down 8%, and each fact card appears only when you ask for that cut, the same way Daniel later holds his data back.

The Case Board during two coach sessions
Watch the fact cards in the second half: nothing appears until the learner asks for it.

What an AI interviewer is good at, and where it falls short

It is good at the parts of interviewing that need patience and consistency. Daniel holds the courier fact back on your fifth run the same way he did on your first. He acknowledges answers with “Okay” or “Got it” and nothing warmer. The written report quotes your own lines and scores them against a rubric with stated weights.

The limits are worth knowing before you start. These rounds follow the general shape of a data science loop and do not know any company’s private rubric. The question banks are finite: once you recognise a case, you are practising delivery more than discovery. A 25 minute voice round is tiring in a way reading is not.

The report grades what you said, not what you meant. Speech-to-text can garble a term, and although the rubrics tell the grader to judge by meaning, an idea you had and never spoke earns nothing. In the SQL and ML rounds the code is read and never run, so the feedback is about logic, and a real syntax error can pass unnoticed. And an AI interviewer will not look bored or cut you off impatiently, which people do. Treat it as the place to build the habit, then do at least one round with a person before the loop. We also have a comparison of AI mock interview platforms.

What it costs

The course content is free: there is no separate course fee, and nothing is locked behind a higher tier. Voice sessions use the minutes on your plan, and you can start on the free plan. Tough Tongue AI builds voice AI agents, and the rest of our courses are listed at app.toughtongueai.com/course.

What the five rounds have in common

In these five rounds, the weak answers are rarely wrong on the facts. The candidate who ships the Daily Mix row read every number in the table correctly. The one who numbered every gift card attempt knows window functions. What they share is that they answered the question as first stated and stopped looking. One never checked the size of the two groups. The other read past the word “valid”.

Checking one layer below the answer is hard to learn by reading, because a page never asks “What does your query say about redemption 4?” Someone has to ask it while you are mid-thought. If you have a loop coming, pick the round that worries you most, run it once, and read the report the same day. Then run it again and see what changed.

A
Ajitesh
Tough Tongue AI
Share