practice a little every day, paws crossed ♡
Data Scientist Interview Questions
Practice 9403 coding, system design and machine learning questions from 546 companies, sorted by role, topic and interview round. Every question has step-by-step hints, a code runner that supports 8 languages and an AI mentor; members also get the full solution walkthrough.
- 9403
- Questions
- 546
- Companies
- 11
- Topics
- 8
- Languages
Showing 1–30 of 264 results
- AirbnbMediumData ScientistBuild and evaluate an order prediction model
This question tests the ability to design a robust end-to-end machine learning pipeline for binary classification, focusing on preventing temporal data leakage, managing class imbalance, and aligning model thresholds with business objectives.
Machine LearningTechnical ScreenClassificationTemporal LeakageModel Evaluation - AmazonHardData ScientistBuild a package-allocation model for couriers
This question evaluates a candidate's ability to design an end-to-end ML-driven package-to-courier allocation system, testing competencies in predictive modeling (per-stop service-time forecasting), constrained combinatorial optimization for routing and fairness, feature engineering, simulation, and production concerns such as cold-start handling and distribution shift. It is asked to assess how candidates balance competing objectives like on-time delivery versus fairness under real-world constraints (shift hours, vehicle capacity, delivery windows, time-varying travel forecasts), and is categorized under Machine Learning with a focus on practical application-level system design rather than purely conceptual theory.
Machine LearningOnsite - AmazonHardData ScientistChoose Between Fine-Tuning and RAG for Client Chatbot
This interview question evaluates core ML concepts, assumptions, math intuition, training/evaluation trade-offs, and practical failure modes in a realistic interview setting. A strong answer for Choose Between Fine-Tuning and RAG for Client Chatbot states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.
Machine LearningTechnical Screen - AmazonHardData ScientistChoose Models for Imbalanced Data and Time-Series Forecasting
Choose Models for Imbalanced Data and Time-Series Forecasting evaluates core ML concepts, assumptions, math intuition, training/evaluation trade-offs, and practical failure modes in a realistic interview setting. A strong answer states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.
Machine LearningTechnical Screen - AmazonMediumData ScientistChoose regularization norms and model formulations
This question evaluates understanding of regularization norms (L0, L1, L2, L∞), objective formulations for linear and logistic regression, and practical competencies in handling collinearity, outliers, feature scaling, and optimization difficulty.
Machine LearningTechnical Screen - AmazonMediumData ScientistCompare RNNs and Transformers for Long-Sequence Text Classification
Compare RNNs and Transformers for Long-Sequence Text Classification evaluates core ML concepts, assumptions, math intuition, training/evaluation trade-offs, and practical failure modes in a realistic interview setting. A strong answer states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.
Machine LearningTechnical Screen - AmazonHardData ScientistCompare Random Forests vs Gradient Boosting rigorously
This question evaluates a candidate's ability to choose and configure tree-based models (Random Forest vs. Gradient Boosted Trees), handle high-cardinality categorical features and missingness, mitigate class imbalance and label noise, produce reliable feature importance and calibration, and design an experiment and inference strategy that meets strict latency and resource constraints. It is commonly asked in the Machine Learning domain for Data Scientist roles to assess trade-offs in bias–variance, robustness to correlated features and noise, hyperparameter and encoding decisions, experiment design and evaluation, and tests both conceptual understanding and practical application for production-ready systems.
Machine LearningTechnical Screen - AmazonMediumData ScientistCompare Regularization Techniques and Their Use Cases
Evaluates model evaluation, regularization, and regression basics for predictive analytics. Strong answers define precision and recall, compare L1, L2, L0, and L-infinity penalties, state OLS assumptions, and contrast linear and logistic regression formulas and losses.
Machine LearningTechnical Screen - AmazonMediumData ScientistDecide standardization, sparse numerics, correlated features
This question evaluates a candidate's competency in feature engineering and preprocessing for mixed-type tabular data, including handling sparse counts and heavy-tailed monetary features, missingness and zero-inflation, correlated continuous measurements, model-specific scaling needs, and the design of leak-safe pipelines and validation strategies.
Machine LearningTechnical Screen - AmazonHardData ScientistDerive and compare core ML and RL methods
This question evaluates a candidate's mastery of core machine learning and reinforcement learning concepts, including optimization (gradient methods and batch‑size trade‑offs), supervised versus unsupervised algorithms, policy‑gradient RL and variance reduction, deep RL stability techniques, sequence model complexity (Transformers vs RNNs), embeddings and polysemy, and low‑compute fine‑tuning strategies. It is commonly asked to probe both theoretical understanding and practical engineering judgment about convergence, variance, computational and memory complexity, representation learning, and resource‑constrained model adaptation; the domain is Machine Learning and the assessment spans conceptual understanding and practical application.
Machine LearningTechnical Screen - AmazonMediumData ScientistDesign a Churn Model: Handle Missing Data and Justify
This interview question evaluates core ML concepts, assumptions, math intuition, training/evaluation trade-offs, and practical failure modes in a realistic interview setting. A strong answer for Design a Churn Model: Handle Missing Data and Justify states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.
Machine LearningTechnical Screen - AmazonHardData ScientistDesign a Machine Learning Recommendation System Pipeline
Design a Machine Learning Recommendation System Pipeline evaluates core ML concepts, assumptions, math intuition, training/evaluation trade-offs, and practical failure modes in a realistic interview setting. A strong answer states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.
Machine LearningOnsite - AmazonHardData ScientistDesign a robust traffic forecasting pipeline
This question tests the ability to design an end-to-end, scalable time-series forecasting pipeline, focusing on anomaly handling, structural decomposition, uncertainty quantification, and model validation strategies.
Machine LearningTechnical ScreenTime-SeriesForecastingState-Space Models - AmazonMediumData ScientistDesign an Automated Home-Price Valuation Model
Design an Automated Home-Price Valuation Model evaluates core ML concepts, assumptions, math intuition, training/evaluation trade-offs, and practical failure modes in a realistic interview setting. A strong answer states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.
Machine LearningTechnical Screen - AmazonHardData ScientistDesign an ML Model for Interview Recommendation Pipeline
Design an ML Model for Interview Recommendation Pipeline evaluates core ML concepts, assumptions, math intuition, training/evaluation trade-offs, and practical failure modes in a realistic interview setting. A strong answer states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.
Machine LearningOnsite - AmazonHardData ScientistDesign an end-to-end spam detection system
This question evaluates a data scientist's system-design and applied machine learning engineering skills—covering problem framing and labeling, feature representation, model selection and calibration, real-time serving constraints, drift detection, and feedback/safety mechanisms—and is commonly asked to probe trade-offs between latency, precision/recall, and robustness against adversarial evolution in production spam detection. Category: Machine Learning; it tests machine learning systems and production-ML competencies at both conceptual-design and practical-application levels, emphasizing calibration, evaluation (offline and online), operational reliability, and rollback/mitigation planning.
Machine LearningTechnical Screen - AmazonEasyData ScientistDesign and evaluate a RAG system
This question evaluates a candidate's competency in designing and evaluating retrieval-augmented generation (RAG) systems, including document ingestion, chunking, embedding and retrieval strategies, reranking, prompt construction, grounding/citation, operational constraints like latency and freshness, permission handling, and evaluation metrics and failure modes. It is commonly asked to assess practical system-design and applied machine learning skills for LLM applications, testing knowledge in the Machine Learning/Information Retrieval domain and requiring both practical application-level reasoning about trade-offs (latency, cost, precision vs. recall) and conceptual understanding of evaluation and guardrails.
Machine LearningTechnical Screen - AmazonHardData ScientistDesign end-to-end regression for energy demand
This question evaluates a candidate's ability to design and justify an end-to-end regression system for next-day site-level energy demand forecasting, testing competencies in time-series modeling, feature engineering, regularization, evaluation metrics and SLAs, production ML pipelines, monitoring, explainability, and data privacy.
Machine LearningOnsite - AmazonHardData ScientistDesign fraud detection across channels with unknowns
This question tests the ability to design an end-to-end fraud detection system that accounts for cold-start problems, cross-channel signals, and the trade-off between customer friction and loss mitigation.
Machine LearningOnsiteFraud DetectionAnomaly DetectionGraph Neural Networks - AmazonMediumData ScientistDiagnose Bias–Variance Trade-off in Supervised Learning
Diagnose Bias–Variance Trade-off in Supervised Learning evaluates core ML concepts, assumptions, math intuition, training/evaluation trade-offs, and practical failure modes in a realistic interview setting. A strong answer states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.
Machine LearningOnsite - AmazonEasyData ScientistEvaluate NLP Classification Models
This question evaluates competency in NLP classification model evaluation, covering understanding of confusion matrices, precision/recall/F1/AUC metrics, thresholding and trade-offs, handling class imbalance, and connecting metric choices to operational actions and business costs.
Machine LearningOnsite - AmazonHardData ScientistEvaluate RAG System Accuracy and Cost Control Strategies
This interview question evaluates core ML concepts, assumptions, math intuition, training/evaluation trade-offs, and practical failure modes in a realistic interview setting. A strong answer for Evaluate RAG System Accuracy and Cost Control Strategies states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.
Machine LearningTechnical Screen - AmazonMediumData ScientistExplain K-Fold Cross-Validation and Its Trade-Offs
This interview question evaluates core ML concepts, assumptions, math intuition, training/evaluation trade-offs, and practical failure modes in a realistic interview setting. A strong answer for Explain K-Fold Cross-Validation and Its Trade-Offs states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.
Machine LearningTechnical Screen - AmazonMediumData ScientistExplain Overfitting and Underfitting in Machine Learning
This interview question evaluates core ML concepts, assumptions, math intuition, training/evaluation trade-offs, and practical failure modes in a realistic interview setting. A strong answer for Explain Overfitting and Underfitting in Machine Learning states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.
Machine LearningTechnical Screen - AmazonMediumData ScientistExplain why LASSO selects features
This question evaluates understanding of regularization and feature selection in linear models, covering competencies in LASSO's L1 penalty versus L2, geometric constraint intuition, optimality/KKT conditions, effects of correlated predictors, the role of standardization, hyperparameter selection, and when Elastic Net is appropriate, within the Machine Learning domain for Data Scientist roles. It is commonly asked because it probes both conceptual understanding and practical application of model sparsity, interpretability, preprocessing, and bias–variance trade-offs, testing knowledge of statistical optimization and model selection rather than implementation details.
Machine LearningTechnical Screen - AmazonEasyData ScientistImplement Batch Gradient Descent for Linear Regression
Amazon data scientist machine learning prompt on writing batch gradient descent pseudocode for linear regression, including MSE loss, vectorized gradients, parameter updates, stopping criteria, and implementation checks.
Machine LearningTechnical Screen - AmazonMediumData ScientistOptimize Email Strategy for New Prime Video Series Launch
Evaluates email targeting and ranking strategy for a new Prime Video series launch. Strong answers cover data needs, cold start, ranking models, offline metrics, A/B testing, guardrails, and model selection.
Machine LearningOnsite - AmazonMediumData ScientistOptimize Predictive Analytics: Feature Engineering to Model Evaluation
Evaluates end-to-end predictive analytics project communication for a technical data-science interview. Strong answers cover business objectives, data, leakage controls, features, models, evaluation, errors, and impact.
Machine LearningTechnical Screen - AmazonMediumData ScientistOptimize XGBoost for Predicting Marketing Outcomes
Optimize XGBoost for Predicting Marketing Outcomes evaluates core ML concepts, assumptions, math intuition, training/evaluation trade-offs, and practical failure modes in a realistic interview setting. A strong answer states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.
Machine LearningOnsite - AmazonMediumData ScientistWrite and explain gradient descent pseudocode
This question evaluates a candidate's understanding of batch gradient descent for linear regression with an intercept, covering concepts such as mean squared error optimization, vectorized matrix operations, analytical gradient computation, learning rate schedules, stopping criteria, feature scaling, and L2 regularization.
Machine LearningOnsite