Machine Learning Engineer Interview Questions and Prep Guide
How the machine learning engineer interview works, from ML fundamentals to recommender design and Python coding, with 9 practice questions and a 7-day plan.
Updated
A machine learning engineer interview tests whether you can take a model from raw logs to a production system that keeps working: framing the problem, choosing labels and metrics, avoiding leakage, designing the serving path and noticing when things drift. Expect an ML fundamentals round, an ML system design round, practical Python coding and a conversation about models you have actually shipped.
What the job really is#
ML engineers sit between data science and backend engineering, and the model is usually the smallest part of the work. Most effort goes into training data that reflects what the model will see at prediction time, features that are computed the same way offline and online, evaluation that predicts what an A/B test will show, and monitoring that catches a broken input before users notice.
This guide covers classic production ML: ranking, recommendations, click prediction and similar systems trained on behavioural data. If your work is mostly building on large language models, the applied AI engineer loop is a better fit.
Our practice interviews are set at Sablewood Stream, a fictional music-streaming service whose home page recommendations, personalised playlists, search and free-tier audio ads are all driven by models.
What the machine learning engineer interview process looks like#
Real loops vary, but most share these rounds:
- Recruiter or hiring manager screen: background and the kind of ML you have done.
- ML fundamentals: bias and variance, metrics for imbalanced problems, calibration, leakage and validation strategy.
- ML system design: usually a recommender, a feed, a search ranker or an ads model, end to end.
- Coding: practical Python, often data manipulation close to the job.
- Past project and behavioural: a deep dive on something you shipped, plus how you handle disagreement.
Our practice papers run as one session with an AI voice interviewer and live coding in the browser:
- 30 minutes: introductions (2), ML fundamentals (5), live coding (13), ML system design (7), your questions (2), wrap-up (1).
- 45 minutes: adds a past project section, with 18 minutes of coding (including a second part) and 10 minutes of design.
- 60 minutes: the full loop, with 20 minutes of coding, 12 of design, a production incident scenario and a short role-play with a product manager about a launch decision.
See how the practice interviews work for the format.
Skills scored and how they are weighted#
Each skill is rated Not yet, Developing, Hire-ready or Standout, and the scorecard quotes what you said. ML modelling and coding are must-haves: both need Hire-ready for an overall yes.
- ML modelling (must-have, 25%): framing, baselines, features, metrics and leakage.
- Coding (must-have, 20%): correct, readable Python that passes hidden tests.
- System design (15%): multi-stage architectures, latency, batch versus online serving.
- Statistics and experimentation (10%): significance, novelty effects, guardrails.
- Data pipelines (10%): point-in-time correctness, messy logs, backfills.
- Reliability (10%): monitoring, drift, incident response.
- Communication (10%): explaining trade-offs to people who are not ML specialists.
Machine learning engineer interview questions to practise#
We wrote these for this guide. They show the genre, and none is taken from a practice paper.
ML fundamentals#
- Your fraud model's precision is great in validation but terrible in the first month live. List the likely causes. A strong answer checks the split (random versus time-based), label delay, features that are not available at decision time and a shift in the fraud mix.
- When would you choose log loss over AUC as your main offline metric? A strong answer explains that AUC only measures ordering, and log loss matters when the probability is used directly, for example in pricing or an auction.
- You add 50 features and validation gets worse. Why might that happen? A strong answer covers variance, noisy or leaky features and drift between periods, and how to tell them apart.
ML system design#
- Design a podcast episode recommender for a home screen. A strong answer defines the label first, uses several candidate sources narrowed to a few hundred, ranks with point-in-time features and applies business rules in a re-ranking step.
- How would you recommend items that launched an hour ago and have no interactions yet? A strong answer uses content embeddings, exploration slots and fast updates from first interactions.
- Your search ranker must answer within 80 milliseconds. Where does the time go, and what do you cut? A strong answer measures each stage first, then shrinks the candidate set or adds a lighter first-pass model.
Production and experimentation#
- A recommendation model has been live for six months and engagement is slowly falling. How do you investigate? A strong answer segments the drop, compares feature and score distributions over time, checks a long-term holdout and looks for a feedback loop.
- An A/B test shows a 2% lift that shrinks every week. What do you recommend? A strong answer names a likely novelty effect, extends the test or keeps a holdout, and agrees launch criteria before looking again.
Past project#
- Tell me about a model whose online results disagreed with your offline evaluation. A strong answer is specific about the metric gap, gives a concrete reason such as biased logged labels, and says what changed afterwards.
The live coding round#
The coding exercise is in plain Python, with no numpy or pandas: expect to compute evaluation metrics or prepare data from messy, realistic logs, with a second part that builds on the first. Hidden tests probe the edge cases real logs have, such as duplicates, missing values, boundaries and a large input.
How to talk while coding:
- Restate the metric definitions before writing anything, including what happens when a request has nothing relevant.
- Test small cases out loud: a duplicate row, a gap in positions, a cut-off exactly on a boundary.
- Say why each rule exists. "This gap stops training labels overlapping the test period" shows you understand leakage, not just the code.
Common mistakes#
- Naming a model architecture before saying what it optimises or what the label is.
- Celebrating a huge offline jump instead of suspecting leakage.
- Designing a recommender as one model that scores the whole catalogue.
- Treating a statistically significant two-week test as the end of the story.
A one-week prep plan#
- Day 1: revise bias and variance, regularisation and learning curves, explaining each aloud.
- Day 2: work through imbalanced metrics, calibration and negative downsampling.
- Day 3: write recall at k, NDCG and a time-based split in plain Python, and test them on messy data.
- Day 4: sketch two recommenders end to end, from candidates to monitoring.
- Day 5: take the 30-minute practice paper and read the quotes on your scorecard.
- Day 6: prepare two project stories with numbers, including one where something went wrong.
- Day 7: take the 60-minute paper, including the incident scenario and the launch role-play.
When you are ready, practise the Machine Learning Engineer interview at 30, 45 or 60 minutes and get scored on ML modelling, system design and coding.
Frequently asked questions#
What is asked in a machine learning engineer interview?#
Most loops include ML fundamentals (overfitting, metrics, leakage), ML system design such as a recommender or ads model, Python coding and a project deep dive. Interviewers care about how you frame problems, pick labels and metrics, and keep a model working in production, not about reciting algorithms.
How is ML system design different from regular system design?#
You still discuss data flow and latency, but the model is the centre: what it predicts, which label it learns from, where candidates come from, how features stay consistent between training and serving, and how you evaluate offline and online. Strong answers also cover cold start, feedback loops and monitoring for drift.
Do I need to know deep learning for an ML engineer interview?#
For ranking and recommendation roles you mostly need to know when a neural model helps, such as two-tower embeddings for candidate retrieval, and when gradient-boosted trees are the better choice. Clear reasoning about data, metrics and trade-offs matters more than architecture details or maths derivations.
What does the ML engineer coding round involve?#
Some companies ask general algorithm questions, but many now prefer practical tasks close to the job. Our practice exercise is plain Python computing ranking metrics from messy logs, plus a leak-free time split, checked by hidden tests. Expect careful handling of duplicates, missing values, boundaries and time zones.
How long are the practice interviews?#
There are three papers of 30, 45 and 60 minutes, each with an AI voice interviewer, live coding in the browser and a scorecard. The 60-minute paper adds a production incident scenario and a launch role-play. You can start a Machine Learning Engineer practice interview at any length.