ML System Design Interview Questions: Deep Dives
120 questions on in-depth ML system design case studies with modern stack: GPUs, vLLM, RAG, training infra. The first 20 are free, no account needed.
Practice free βWhat this topic covers
The ML system design round is the interview that most often decides level. You are given an open prompt, such as designing a video recommendation system or an LLM inference platform, and about forty-five minutes to turn it into a credible architecture. This topic contains long-form case studies that follow the structure of that round from the first clarifying question to the final discussion of tradeoffs.
The deep dives cover the systems interviewers ask about most. Recommendation and feed ranking cases walk through candidate generation, ranking and re-ranking. Ads click-through prediction cases cover calibration, delayed feedback and auctions. Vector search and multimodal retrieval cases cover embedding models and approximate nearest neighbour indexes. LLM cases cover retrieval-augmented generation, serving with engines such as vLLM, GPU capacity planning and cost. Further cases cover feature platforms, real-time systems, training infrastructure and safety.
Each answer is organized the way a strong candidate would present it: requirements and scale, metrics, data and labels, features, model choice, training, serving architecture, evaluation, monitoring and iteration. Numbers are included where they matter, because a back-of-the-envelope estimate of queries per second or storage is often what makes a design believable.
A framework that works
Spend the first few minutes on the problem, not the model. Clarify who the users are, what the system should optimize, and how success will be measured both offline and online. Write down the constraints on latency, freshness and scale. Interviewers consistently report that weak candidates skip this step and strong candidates use it to steer the rest of the conversation.
Next, sketch the whole pipeline at a high level before going deep on any part. Then pick the two or three components where the interesting decisions are, which are usually label definition, the retrieval and ranking split, and the serving path, and spend your time there. Leave room at the end for monitoring, failure modes and what you would build next.
Throughout, state tradeoffs out loud. Saying that a two-tower model is fast to serve but cannot use cross features, and that this is why a heavier ranker follows it, is exactly the kind of reasoning the round is designed to find.
The sample questions below are free to read in full. Use them as templates: read one, close it, and try to reproduce the structure for a different product. The practice list has the rest of the free deep dives, and the System Design section adds a glossary and curated engineering blog posts.
Sample ML System Design interview questions
- Design a YouTube-scale video recommendation system serving billions of users.π΄ advanced Β· End-to-End System Design
- Design a production RAG system for an enterprise knowledge assistant (10TB docs, 50k employees, ACL-aware).π΄ advanced Β· LLM Systems
- Design a real-time payment fraud detection system (10k+ TPS, 100ms decision budget, delayed labels).π΄ advanced Β· Real-time Systems
- Design X (Twitter) home timeline ranking β including in-network and out-of-network candidate sources.π΄ advanced Β· Recommendation / Feed
- Design an ads CTR prediction and auction system for a major web property (100k QPS, 50ms budget).π΄ advanced Β· Ads / CTR
- Design a visual search system (Pinterest-style) over 5B+ images with sub-500ms p95 latency.π΄ advanced Β· Vector Search / Multimodal
- Design a feature platform that serves all ML teams in the company with no training/serving skew.π΄ advanced Β· Feature Platform
- Design a multi-tenant LLM inference platform serving 10B+ tokens/day across 50+ product teams.β« expert Β· LLM Inference Platform
- Design the training infrastructure for a 70B-parameter foundation model on 1000+ H100 GPUs.β« expert Β· Training Infrastructure
- Design an MLOps platform covering deploy, monitor, govern across 500 production models.π΄ advanced Β· Safety / MLOps
- A home feed must retrieve from a billion items and respond within 200 ms. How would you divide the latency budget?π΄ advanced Β· home-feed recommendation
- Which feedback would you collect to avoid training a home feed solely on clicks?π΄ advanced Β· home-feed recommendation
- How would you serve personalized feed candidates without recomputing every item embedding per request?β« expert Β· home-feed recommendation
- Popular creators get nearly all exposure after a feed launch. How would you investigate the feedback loop?β« expert Β· home-feed recommendation
- Search results must reflect inventory changes within one minute. Which parts of the architecture need that freshness?π΄ advanced Β· e-commerce search ranking