practice a little every day, paws crossed ♡
Machine Learning 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 348 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 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 - AmazonEasyApplied ScientistDescribe overfitting and L1/L2 regularization
This question evaluates understanding of model generalization and regularization techniques by probing knowledge of overfitting and L1/L2 regularization and their effects on model parameters.
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 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 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 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 - AmazonHardApplied ScientistExplain Core ML Interview Concepts
This question evaluates core machine learning fundamentals including statistical modeling assumptions and loss functions (linear and logistic regression), ensemble methods and feature sampling in random forests, optimization algorithms (Adam versus stochastic gradient descent), and neural network capacity and training dynamics.
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 - AmazonMediumApplied ScientistExplain LLM architecture, tuning, evaluation
This question evaluates understanding of transformer-based LLM architectures, positional embedding variants, parameter-efficient fine-tuning (PEFT) approaches, regularization strategies, and evaluation methodologies within the Machine Learning domain focused on large language models and NLP, emphasizing both conceptual understanding and practical application. It is commonly asked to assess the interviewee’s ability to reason about architecture and tuning trade-offs, model generalization and stability, and the design of reliable offline and online evaluation pipelines for production-minded language model systems.
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 - AmazonMediumApplied ScientistExplain core ML concepts and diagnostics
This question evaluates mastery of core Machine Learning concepts and diagnostics, covering statistical inference (p-values), overfitting/underfitting and bias-variance, causal inference approaches, encoding/decoding, optimization and backpropagation, gradient stability, handling imbalanced data, evaluation metrics versus accuracy, and experimental A/B testing. It is commonly asked in ML interviews to assess breadth and depth in the Machine Learning domain and probes both conceptual understanding and practical application by testing theoretical knowledge, recognition of common failure modes, and diagnostic reasoning used to validate models and experiments.
Machine LearningTechnical Screen - AmazonHardApplied ScientistExplain imbalance, metrics, bias-variance, Transformers vs. CNNs
An Amazon machine-learning-engineer technical screen covering class-imbalance handling at the data, loss, and decision levels; leakage-aware validation; the bias–variance tradeoff; metric selection for rare-positive fraud data (PR-AUC, precision@k, calibration); and Transformer vs. CNN inductive biases. Includes worked numeric examples for cost-based thresholds and metric interpretation.
Machine LearningTechnical Screen - AmazonMediumSoftware EngineerExplain overfitting, regularization, and LLM techniques
This question tests the conceptual understanding of model generalization trade-offs, the mathematical mechanics of regularization, and the practical application of modern LLM architectures.
Machine LearningTechnical ScreenRegularizationLLMRAG - AmazonMediumApplied ScientistExplain surprisal and its units
This question evaluates understanding of probabilistic information measures in language modeling, specifically the concept of surprisal, its units, and its relationship to evaluation metrics such as cross-entropy and perplexity within the Machine Learning/NLP domain.
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 - AmazonHardApplied ScientistGRPO Deep Dive: Critic-Free RL, Parallelism, MLA, and Reward Design for a Reasoning LLM
This question tests your deep understanding of Group Relative Policy Optimization (GRPO) for post-training reasoning models, including how critic-free optimization alters training dynamics, distributed memory scaling, KV-cache efficiency via Multi-Head Latent Attention (MLA), and reward hacking mitigations.
Machine LearningTechnical ScreenReinforcement LearningLLM Post-TrainingGRPO - 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 - AmazonMediumApplied ScientistImplement SGD for linear regression and derive gradients
This question evaluates understanding of gradient-based optimization and linear model training, including competency in deriving gradients for mean squared error and implementing stochastic (or mini-batch) gradient descent for parameter estimation.
Machine LearningTechnical Screen - AmazonEasyApplied ScientistList hyperparameter tuning methods
This question evaluates understanding of hyperparameter tuning methods, including the competencies to compare different search strategies, analyze trade-offs in efficiency and parallelization, and design experiments to optimize model performance.
Machine LearningTechnical Screen - 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