Amazon data scientist interview questions: ML, coding and principles

Amazon data scientist interview questions usually combine machine learning breadth, a deep dive into a model you built, statistics, coding in SQL and Python, and Leadership Principles stories in nearly every conversation. The balance depends on the role: analytics-leaning jobs weigh SQL and experiments, while modeling roles go deep on algorithms and evaluation. Prepare both your technical depth and eight to ten true stories with numbers.

By Published 7 min read

What Amazon expects from a data scientist

Amazon's businesses run on decisions that models make or inform at enormous volume: how much stock to place in which warehouse, when a parcel will arrive, which products to show, which transactions to block. A data scientist there is expected to connect a model to that decision and to the customer on the other end. Interviewers tend to ask "so what did the business do with it?" as often as "why that loss function?". A strong candidate answers both.

Titles matter more than usual. Amazon posts openings as data scientist, applied scientist, research scientist, business intelligence engineer and economist, among others, and each loop tilts differently. Applied and research scientist loops are often described as more coding- and algorithm-heavy; business intelligence roles weigh SQL and reporting; data scientist roles sit in between. Read the posting and ask the recruiter which areas your interviews cover.

  • Breadth. You can explain common methods, their assumptions and their failure modes without notes.
  • Depth. On your own past project, you can defend every choice down to features, labels and evaluation.
  • Business sense. You size the impact of a model in customer and cost terms, not only accuracy.
  • Principles in action. Dive Deep, Customer Obsession, Deliver Results, Bias for Action and Earn Trust show up often in data roles. Read the current list on Amazon's jobs site.

How the Amazon data science loop tends to run

The format varies by team. A typical account starts with a recruiter call and a technical screening stage by phone or video, often on ML fundamentals and coding, with a behavioral question or two. The loop that follows usually has several interviews, and candidates describe each as covering a technical area plus some assigned principles. A deep dive into a project from your résumé is common, so pick one you know thoroughly. As in every Amazon loop, one interviewer may be the Bar Raiser, who comes from outside the hiring team. The Amazon Leadership Principles guide explains how to map stories to principles; this page covers the data science side. Software engineers face a different, coding-centered loop, covered on the Amazon software engineer page.

30 Amazon data scientist interview questions

Written in our own words around retail, logistics, devices and cloud problems. Use them to practice; they are question types, not a leaked set.

Machine learning breadth

Amazon data scientist ML breadth questions
QuestionWhat it testsWhat a strong answer shows
When would you pick logistic regression over gradient-boosted trees for a fraud model?Model choiceInterpretability, latency, data size and how often the model must be retrained.
How do you handle a classification problem where the positive class is very rare?Class imbalanceResampling or weights, metrics such as precision-recall curves, and thresholds set by business cost.
Explain how you would cross-validate a demand forecasting model.Time-aware validationRolling or expanding windows, never random splits, and a backtest that mirrors real use.
What is data leakage? Give an example from e-commerce.LeakageA feature that is only known after the outcome, such as a refund flag used to predict returns.
How does a random forest reduce variance compared with a single tree?EnsemblesBagging plus feature subsampling and why averaging decorrelated trees helps.
How would you explain a model's prediction to a seller who disputes it?ExplainabilityLocal explanations, their limits and a plain-language summary.
What could make a recommendation model perform well offline but poorly online?Offline versus onlineFeedback loops, position bias, distribution shift and a metric mismatch.
Amazon data scientist ML breadth questions. Scroll sideways on a small screen.

ML depth and business cases

Amazon data scientist depth and case questions
QuestionWhat it testsWhat a strong answer shows
Walk me through the most important model you built, from problem to impact.Project depthProblem framing, data, features, model, evaluation, launch and measured business effect.
How would you predict delivery dates for orders from third-party sellers?Applied modelingSeller handling time, carrier data, distance and seasonality, with uncertainty shown to the customer.
Design a model to forecast demand for a new product with no sales history.Cold startSimilar products, attributes, early signals and a plan to update as sales arrive.
How would you decide how many units of a product to place in each warehouse?Forecast to decisionForecast distribution, costs of too much and too little stock, and an optimization on top.
How would you detect fake reviews?Abuse detectionBehavioral and text signals, label sources, adversarial adaptation and a human review loop.
How would you measure whether a new recommendation carousel helps customers?MeasurementA/B test with purchases and satisfaction, plus a guardrail for cannibalized sales elsewhere on the page.
Amazon data scientist depth and case questions. Scroll sideways on a small screen.

Statistics and experimentation

Amazon data scientist statistics questions
QuestionWhat it testsWhat a strong answer shows
A price display test shows more orders but lower revenue per order. How do you decide?Metric trade-offsTotal contribution, customer trust and long-term effects, not one number.
Explain p-values and what they do not tell you.Inference basicsThe correct definition and the common misreadings.
How would you test a change that affects both buyers and sellers?Two-sided experimentsInterference between groups and designs such as switchback or market-level tests.
Your test has a sample ratio mismatch. What now?Experiment hygieneStop interpreting, find the assignment or logging bug, then rerun.
How would you estimate the impact of Prime Day on long-term customer behavior?Causal thinkingComparison groups, matching or difference-in-differences, and confounders such as seasonality.
Amazon data scientist statistics questions. Scroll sideways on a small screen.

SQL and Python

Amazon data scientist coding questions
QuestionWhat it testsWhat a strong answer shows
Find customers whose order count fell by half this quarter compared with last.SQL comparison over timeClean period aggregation, a join between periods and handling of customers with no orders.
Compute a rolling 28-day average of daily sales per product.Window functionsCorrect frame clause and treatment of missing days.
In Python, write a function that returns the top k products by sales from a list of order records.Practical codingA dictionary count and a heap or sort, with the complexity stated.
Write a backtest loop that trains on past weeks and predicts the next week.Time-series codeNo leakage, a clear loop and a metric collected per fold.
Amazon data scientist coding questions. Scroll sideways on a small screen.

Leadership Principles for data roles

Amazon data scientist behavioral questions
QuestionWhat it testsWhat a strong answer shows
Tell me about a time you found a problem in data that others had trusted. (Dive Deep)DepthWhat made you suspicious, how you proved it and what changed.
Describe a model you chose not to launch. (Customer Obsession)JudgmentThe customer risk you saw and the evidence that outweighed the metric gain.
Tell me about delivering an analysis with a hard deadline. (Deliver Results, Bias for Action)DeliveryWhat you simplified, what you kept rigorous and the decision it enabled.
When did you explain a complex model to non-technical leaders? (Earn Trust)CommunicationPlain language, honest limits and how you built confidence over time.
Tell me about a time you were wrong about a modeling choice. (Are Right, A Lot)HumilityHow you found out and the check you added.
Describe a time you simplified a complicated pipeline. (Invent and Simplify)SimplificationWhat you removed, what it saved and how you proved nothing broke.
Give an example of disagreeing with a partner team about a metric. (Have Backbone; Disagree and Commit)Principled disagreementYour evidence, the decision and how you supported it afterwards.
Tell me about learning a new method to solve a problem. (Learn and Be Curious)CuriosityWhy the old approach fell short and how you got up to speed.
Amazon data scientist behavioral questions. Scroll sideways on a small screen.

Preparing the deep dive

The project deep dive is where many candidates rise or fall. Choose one project you led, and prepare to go down every branch: why that target, where the labels came from and how noisy they were, which features mattered and which you dropped, what the baseline was, which metric you optimized and why, how you validated, what happened in production, and what the business did with it. Then prepare the question interviewers love most: what would you do differently now?

import pandas as pd

def backtest(df, train_fn, predict_fn, first_week, last_week):
    """df has columns week, product_id, units. Train on weeks before w, predict week w."""
    scores = []
    for w in range(first_week, last_week + 1):
        train = df[df.week < w]
        test = df[df.week == w]
        model = train_fn(train)
        preds = predict_fn(model, test.drop(columns=["units"]))
        err = (preds - test["units"]).abs().sum() / test["units"].sum()
        scores.append({"week": w, "wape": err})
    return pd.DataFrame(scores)
A rolling-origin backtest skeleton you should be able to write and explain

Explain why the loop never trains on the week it predicts, why weighted absolute percentage error suits products with very different volumes, and how you would add a naive baseline, such as last year's same week, so the score has something to beat.

Fictional example

ML depth: a late delivery model
Interviewer
Tell me about the model you are proudest of.
Candidate
At a regional courier, I built a model that flagged parcels likely to arrive late, so the support team could warn customers before they complained. The target was 'delivered after the promised date', about six percent of parcels.
Candidate
Labels were clean, but the features were tricky. Depot scan times arrived in batches, so a feature that looked predictive was partly future information. I rebuilt it to use only scans available at prediction time, which lowered offline AUC but made the live model honest.
Candidate
We chose gradient-boosted trees, set the threshold with the support team based on how many warnings they could send a day, and ran a test across depots. Complaints about late parcels fell by about a quarter in the treated depots. If I did it again, I would involve support earlier; their idea of a 'useful warning' changed the threshold more than any model tweak.

Fictional example

Dive Deep: a dashboard everyone trusted
Interviewer
Tell me about a time you found a problem in data others relied on.
Candidate
Our weekly report showed return rates falling steadily for a clothing category, and the team planned to cut return-related staff. The drop looked too smooth, so I traced returns back to the raw events and found a change in how exchanges were logged: they no longer counted as returns.
Candidate
I rebuilt the metric with exchanges included and showed that real returns were flat. I shared it first with the report owner, so it did not land as a surprise, and the staffing change was paused. We added a data contract on that event so a logging change now triggers an alert.

Mistakes to avoid in Amazon data science interviews

  • A deep dive you cannot defend. Pick the project you know best, not the most impressive-sounding one.
  • Accuracy without business impact. Always say what the model changed for customers or costs.
  • Random splits on time data. It is one of the quickest ways to lose credibility in forecasting questions.
  • Skipping principles in technical rounds. Behavioral questions often appear in every interview, so keep stories ready.
  • Vague numbers. "It helped a lot" will draw a follow-up you need to answer.

A four-part study plan

  1. ML breadth review. For twenty common methods, write one line each on how it works, when to use it and how it fails.
  2. Deep dive rehearsal. Present your main project in ten minutes, then have a friend ask fifteen "why" questions.
  3. Coding drills. Daily SQL on orders and sales tables, plus short Python problems on counting, sorting and backtests.
  4. Story bank. Eight to ten stories tagged against the principles, each with a number, using the Amazon Leadership Principles guide as your checklist.

If you have other loops running, the Meta data scientist guide is more product-analytics focused and the Google data scientist guide leans on probability. PMs on the same teams face the loop in the Amazon product manager guide. For fundamentals, see the general data scientist interview questions.

During deep-dive rehearsals, Natively can keep the record for you. Present your project to a friend over a call and an AI interview assistant like Natively transcribes both voices on Mac or Windows and saves the session with notes, so you can see which "why" questions made you hesitate. It can read a practice coding problem from a screenshot and suggest an approach to compare with yours. Add your résumé and the job description (Pro or the free trial) and its practice suggestions for principle questions start from your real projects.

Questions people ask

What is the Amazon data scientist interview like?

Candidates commonly describe machine learning breadth, a deep dive into a model you built, statistics, SQL and Python coding, and Leadership Principles questions in most conversations.

Does Amazon ask Leadership Principles questions to data scientists?

Yes. Behavioral questions tied to the principles are a standard part of Amazon interviews for technical roles too, so prepare stories alongside your technical work.

What is the difference between an Amazon data scientist and applied scientist interview?

Applied and research scientist loops are often described as more coding- and algorithm-heavy, while data scientist roles mix modeling, statistics and analytics. Check the job post.

How do I prepare for the Amazon ML deep dive?

Pick one project you led and rehearse every decision: target, labels, features, baseline, metric, validation, launch and business impact, plus what you would change.

Where to go next

Practice with the same assistant you would use on a call: it listens, transcribes and suggests answers from your own resume and the job description.

Facts on this page were last checked on . Product details come from the Natively app itself; if something here is out of date, tell us at hello@heynatively.com.

Keep reading

Put it on your own machine.

A live-conversation assistant that runs locally. Your conversations stay on your machine.

macOS 12+ · Windows 10/11

© 2026 Natively AI Private Limited

Source-available under the Natively Personal Use Source License v1.0 · IP geolocation by DB-IP