Home › Blog › ML System Design Interview

ML System Design Interview: A Framework, 3 Worked Prompts and a Rubric

How to structure an ML design round from problem framing to monitoring, with outline-depth answers for feed ranking, fraud detection and search ranking.

An ML system design interview asks you to design an end-to-end machine learning system, such as ranking a feed, flagging fraudulent payments or ordering search results, in a single interview slot. The reliable way through it is a fixed framework: problem, then metrics, data, features, model, training, serving and monitoring. Interviewers mostly grade whether you turn a vague product goal into a well-posed prediction task, choose metrics that match the goal, deal honestly with labels and data, start from a simple baseline, and explain how the model is served and watched in production. Naming the newest architecture earns far less than getting those steps right.

This guide gives you the framework with a time budget, three worked prompts at outline depth, the rubric interviewers tend to use, and the mistakes that sink otherwise strong candidates. For the classic recommendation walkthrough, see design a recommendation system; this page is the general method.

How ML system design differs from regular system design

A classic system design round is about moving and storing data reliably at scale. An ML round keeps the infrastructure questions but adds a second layer: what the model should predict, how you know it works, and how it degrades.

AspectClassic system designML system design
Core questionHow do requests and data flow?What do we predict, and how does the prediction drive a decision?
Success measureLatency, availability, throughputOffline model metrics, online business metrics and guardrails, plus latency
Hardest partScaling storage and trafficLabels, data quality and the gap between offline and online results
Failure modeOutages and data lossSilent decay: drift, feedback loops, training-serving skew
IterationShip and scaleShip a baseline, A/B test, retrain, repeat

Expect infrastructure follow-ups either way, so keep your classic system design skills sharp: caching, queues, storage choices and latency budgets all come up when you discuss serving.

The 8-step framework

Use the same eight steps for every prompt. The time budget below assumes a 45-minute round; scale it to your slot and spend extra time wherever the interviewer pushes.

StepQuestions to answerTime
1. ProblemWhat is the product goal? What decision does the model make? Is ML even needed?5 min
2. MetricsOffline metric, online metric, guardrails4 min
3. DataWhere do labels come from? How delayed, noisy or biased are they?6 min
4. FeaturesUser, item, context and interaction features; batch versus real time5 min
5. ModelBaseline first, then the main model and why; stages if the candidate set is large8 min
6. Training and evaluationSplits, sampling, retraining cadence, offline-to-online validation5 min
7. ServingLatency budget, batch or online scoring, feature store, fallbacks6 min
8. MonitoringDrift, data quality, metric dashboards, feedback loops, retraining triggers4 min

A few habits make each step land:

Worked prompt 1: Design feed ranking

Prompt: “Design the ranking system for a social media home feed.”

The news feed infrastructure side (fan-out, storage, caching) is covered in design a news feed.

Worked prompt 2: Design fraud detection for payments

Prompt: “Design a system that detects fraudulent card transactions.”

Worked prompt 3: Design search ranking

Prompt: “Design the ranking for product search on an e-commerce site.”

The typeahead box that sits in front of search is its own classic problem: design search autocomplete.

The rubric interviewers use

Rubrics vary by company and level, but most ML design scorecards cover the same dimensions. Use this table to grade your own practice runs.

DimensionWeak signalStrong signal
Problem framingJumps straight to a modelDefines the decision, the prediction target and the constraints
Metrics“Accuracy” onlyOffline and online metrics, guardrails, and how they connect
Data and labelsAssumes clean labels existNames label sources, delay, bias and leakage risks
FeaturesA long unordered listGrouped features, with batch versus real-time freshness
ModelingPicks the trendiest architectureBaseline first; each added complexity tied to a problem it solves
EvaluationRandom splits, no online testTime-based splits, offline checks, then an A/B test
Serving and scaleIgnores latency and costStages, latency budget, caching, fallbacks
Monitoring“Retrain when needed”Drift, skew and feedback loops, with concrete triggers
CommunicationWanders between topicsStates a plan, checks in, and adapts to hints

Senior candidates are also expected to drive the conversation, raise trade-offs before being asked and talk about how the system evolves after launch. The paper Hidden Technical Debt in Machine Learning Systems (Sculley et al., NIPS 2015) is a good primer for that part: it lists ML-specific risks such as entanglement, hidden feedback loops and undeclared consumers.

Common mistakes and how to practice

A practice plan that works in about two weeks:

  1. Pick six prompts: the three above plus, for example, ads click prediction, notification ranking and content moderation.
  2. For each, write a one-page outline using the eight steps, then present it out loud in 45 minutes with a timer.
  3. Grade yourself with the rubric table and redo the weakest step the next day.
  4. Practice with an interviewer. A free AI mock interview in CoPilot Interview builds questions from your résumé and the job description; choose a mix that includes system design, add an optional focus such as ML system design, and each spoken answer is scored out of 10 with what to fix and a model answer. The browser version also has a data science and ML track.

Keep the system design cheat sheet nearby for the infrastructure follow-ups, and see machine learning interview help for the other rounds in an ML engineer loop.

Run an ML design round out loud

Paste the job description and your résumé, pick a mix that includes system design, and answer an AI interviewer out loud. Each answer gets a score out of 10, what to fix and a model answer. Free for 15 minutes a day, no credit card.

Try a free AI mock interview

FAQ

How is an ML system design interview different from a regular system design interview?

A regular round focuses on how data and requests flow at scale. An ML round adds what the model predicts, which metrics prove it works, where the labels come from, and how the model is trained, served and monitored, while still expecting sound infrastructure choices.

What framework should I use for ML system design?

Work through eight steps in order: problem, metrics, data, features, model, training and evaluation, serving, and monitoring. Budget your time so you reach serving and monitoring, which many candidates run out of time for.

Do I need to know deep learning architectures in detail?

You should know when a neural model beats a simpler one and be able to describe common patterns such as two-tower retrieval and multi-task ranking. Interviewers usually value a justified baseline and clear trade-offs over architecture detail.

Which metrics should I mention?

Name an offline metric that fits the task, such as precision-recall AUC for rare-event detection or NDCG for ranking, an online metric you would A/B test, and at least one guardrail that must not get worse.

What is training-serving skew?

It is a difference between the data or feature logic used in training and what the model sees in production. Common fixes are logging the features used at serving time and training on them, sharing feature code between pipelines, and monitoring the gap.

How long does it take to prepare for an ML system design interview?

If you already know ML basics, about two weeks of practice on six or so prompts, each presented out loud in a timed session and graded with a rubric, is a reasonable plan. Add more time if serving and infrastructure are new to you.