ML System DesignExpert20 min read5 questions

The ML System Design Framework (8 Steps)

A repeatable structure for the 45-minute ML system design round, plus the three moves that separate a hire from a no-hire in the first five minutes.

Covers: Requirements clarification, metric selection, data strategy, model choice, serving architecture, evaluation, iteration

ML system design is the highest-signal round in most senior loops, and the one candidates prepare for least well. It is not a knowledge test — it is a test of whether you can take an ambiguous business problem and turn it into a system with defensible trade-offs, in 45 minutes, out loud.

Filter
0/5 mastered
Expertsystem-designframeworkinterview-strategyAsked at Meta, Google

30-second answer

Eight steps: clarify requirements and constraints, define the ML problem and metrics, design the data strategy, do feature engineering, choose a model with a baseline, define training and evaluation, design serving and scale, then close with monitoring and iteration. Spend the first 5–8 minutes on clarification — it is the highest-leverage part and the part most candidates skip.

Advancedmetricssystem-designevaluationAsked at Meta, Netflix

30-second answer

Define three layers and state how they connect: the business metric (revenue, retention, cost), the online product metric that is a fast proxy for it (CTR, completion rate, resolution rate), and the offline ML metric you can compute without shipping (NDCG@k, PR-AUC, faithfulness). Then name the guardrails that must not regress and say explicitly that offline metrics are proxies to be validated by an A/B test.

Expertrecsyssystem-designretrievalAsked at YouTube, Netflix

30-second answer

A multi-stage funnel: candidate generation narrows 50M videos to ~1,000 using a two-tower retrieval model plus complementary sources (trending, subscriptions, collaborative filtering), a ranking model scores those few hundred with rich cross features and multi-task heads, and a re-ranking layer applies diversity, freshness and business rules. Item embeddings are precomputed; the user tower runs online with ANN search.

Expertfraudsystem-designimbalancedAsked at Stripe, PayPal

30-second answer

A layered system: deterministic rules for known patterns and hard blocks, a real-time ML model scoring every transaction within a ~100 ms budget using streaming velocity features, and a case-management queue for the uncertain band. Because fraud is adversarial and labels arrive 30–90 days late via chargebacks, the design must include an exploration bucket, rapid rule deployment, and monitoring that does not depend on labels.

Expertllmragsystem-designAsked at Intercom, Zendesk

30-second answer

A tiered system: intent classification routes trivial requests to deterministic flows, a RAG pipeline over help-centre and policy content handles informational questions, tool calling handles account actions with strict permission scoping, and confident escalation hands off to humans with full context. Wrap it in caching, guardrails, evaluation and a feedback loop — and design the human handoff first, because it is what determines user trust.

Showing 5 of 5 questions for ml-system-design-framework.

Check your understanding

5 questions · no sign-up, nothing stored

0/5 answered
Question 1

1.In an ML system design interview, the first 5–8 minutes should be spent:

Question 2

2.Why does a recommender use a multi-stage funnel instead of one model?

Question 3

3.In fraud detection, a random exploration bucket is necessary because:

Question 4

4.For a support assistant, the most important design decision is usually:

Question 5

5.Optimising CTR alone in a recommender typically causes:

Hands-on challenge

Build it — this is what you talk about in a deep-dive round.

Write three full ML system design documents

Practise the framework end to end by producing written designs you could hand to an interviewer.

Requirements

  • Pick three problems (e.g. search ranking, ad CTR prediction, content moderation) and write each up using all eight framework steps.
  • Include the back-of-envelope arithmetic: QPS, storage, index size, GPU count, monthly cost.
  • Define the three-layer metric chain plus explicit guardrails and launch criteria for each.
  • For each design, write the two hardest follow-up questions you would ask yourself, and answer them.

Stretch goals

  • Do one design under a 45-minute timer, out loud, recorded. Watch it back and note where you stalled.
  • Add a v1/v2/v3 roadmap to each design showing what you would defer and why.