LinkedIn Interview Question

How to prepare for a machine learning system design interview — LinkedIn Interview

senior18 minBackend System Design

How LinkedIn Tests This

LinkedIn interviews focus on social graph systems, distributed ID generation, metrics and logging infrastructure, and production monitoring. They test your understanding of systems supporting professional networking at scale.

Interview focus: Distributed ID generators, metrics and logging systems, and professional networking infrastructure.

Key Topics
machine learninggeneral adviceinterview prep

Machine Learning System Design Interview: The Preparation Guide

You've trained models. You know your loss functions. You can explain backpropagation at a whiteboard. And you still walk out of the ML system design round without an offer.

That's where most ML engineers are. The machine learning system design interview isn't testing whether you can build a model — it's testing whether you can think about everything else. The data pipelines. The feature infrastructure. The training loop, the serving layer, the monitoring that catches degradation before your users do. Most candidates spend 80% of their prep on model architecture and almost nothing on the surrounding system. Interviewers at Google, Meta, and Amazon notice immediately.

I have failed multiple system design interviews. Not because I didn't know the technical content — but because I kept thinking like a domain expert rather than a systems architect. The same trap catches ML candidates cold: they know transformer architectures inside out, but they've never stepped back to design the system those models live in. This guide is the framework I wish I'd had.

That gap — between knowing the ML theory and demonstrating production-level system thinking under pressure — is exactly what Mockingly.ai is designed to close. But first, let's build the framework.


What the Interviewers Are Looking For

Before you prep a single topic, understand the grading rubric. This is what interviewers at FAANG companies are actually scoring you on during an ML system design round:

  • Problem framing — Can you turn a vague product goal ("improve engagement") into a precise ML problem formulation? Can you state the objective function before sketching an architecture?
  • Data thinking — Do you treat data as the core constraint, or as an afterthought? Strong candidates spend significant time on labelling strategy, data collection, class imbalance, and what happens when the data distribution shifts.
  • Feature engineering depth — Can you reason about which features signal the thing you're trying to predict? Can you explain the difference between online features (computed at serve time) and offline features (precomputed in batch), and what goes wrong when they diverge?
  • System design fundamentals — ML systems are still distributed systems. You're expected to understand storage, queuing, APIs, and how the ML components plug into a real production architecture.
  • Model selection with trade-off reasoning — Not "which model is best" but "given latency of 100ms, a training budget of X, and a cold-start problem on day one, which approach do I pick and why?"
  • Evaluation rigour — What offline metrics do you use? How do you set up A/B tests? How do you avoid metric gaming?
  • Production awareness — Do you discuss monitoring, data drift, retraining triggers, and model degradation? Candidates who skip this fail the "have you actually shipped anything?" test.

Candidates who describe what to build pass. Candidates who reason through why each design decision was made — and what it costs — get offers.


How ML System Design Differs from Regular System Design

This is the thing candidates get wrong before they even start preparing.

A standard system design interview is mostly about distributed systems primitives: databases, caches, message queues, load balancers, CDNs. The ML system design interview includes all of that — and then adds a second dimension that most software engineers haven't thought about deeply: the data-model lifecycle.

In a regular system, data is a thing your application stores and retrieves. In an ML system, data is a thing your application learns from. That changes everything about how you design the system.

The specific differences that interviewers probe:

Feature infrastructure. In a standard system you might design a database schema. In an ML system you design a feature store — a system that computes, stores, and serves features consistently between training and inference. The gap between training features and serving features is called training-serving skew, and it's one of the most common silent killers of production ML systems. Interviewers at Meta and Google specifically probe whether you understand this.

The two timelines. ML systems have an offline timeline (training, evaluation, model registry) and an online timeline (feature serving, inference, latency). These two timelines must be kept in sync. Candidates who only think about one of them immediately signal limited production experience.

Evaluation is a system component. In a regular design question, you might mention metrics at the end. In ML, evaluation infrastructure — A/B testing, shadow deployments, holdout sets, online metrics that track business outcomes — is a first-class system component that you must design explicitly.

Models degrade. A cache doesn't degrade. A database schema doesn't degrade. An ML model degrades as the real world drifts from the training distribution. Designing monitoring and retraining triggers is not optional.

The distributed metrics and logging system design guide covers exactly the observability layer you'd wire into a production ML system — useful reading before you sit down with this section.


The 6-Phase Framework for ML System Design

Use this framework on every question. Apply it in the same order every time. Deviating from it — or skipping phases — is where candidates lose points.

In a 45-minute interview, a rough time budget is: 5 minutes on problem framing, 5–7 minutes per phase, and 5 minutes for follow-ups. The most common mistake is spending 20 minutes on model architecture and rushing through monitoring in the last 2 minutes. That's backwards.

Phase 1: Frame the Problem

The first thing you do in a machine learning system design interview is not sketch an architecture. It's ask questions.

The prompt will be deliberately underspecified: "Design a recommendation system for YouTube" or "Build a click-through rate predictor for Google Ads." You're supposed to clarify before committing.

The questions that matter:

  • What is the primary business objective? (engagement, revenue, retention, safety?)
  • What does success look like — both offline (model metric) and online (business metric)?
  • What scale are we operating at? (DAU, QPS, dataset size)
  • What are the latency constraints? (real-time serving? batch? async?)
  • Are there fairness or regulatory constraints?
  • What data do we currently have, and what would we need to collect?

The candidate who asks these questions signals that they build systems to meet real product goals, not systems that are technically elegant but miss the point. The interviewer will either answer the questions or tell you to make assumptions — either way you've demonstrated the right instinct.

Only after framing the problem do you state your ML task formulation. For a recommendation system: "I'll model this as a two-stage ranking problem — candidate retrieval to generate a thousand candidates, followed by a ranking model that scores and sorts them. The primary offline metric is NDCG; the primary online metric is session watch time."

Phase 2: Data Pipeline

Data is the engine. Model architecture is the transmission. Most candidates obsess over the transmission and ignore the engine.

The data section covers:

Data sources. What data exists and what needs to be collected? User interaction logs, item metadata, contextual signals (time, device, location). How is it stored? What are the freshness requirements?

Labelling strategy. This is where most candidates either shine or collapse. Explicit labels (user ratings) are rare and expensive. Implicit labels (clicks, watch time, purchases) are plentiful but noisy — a click doesn't mean the user liked the thing. You need to articulate how you'd construct a labelling scheme that aligns with your objective metric. For a feed ranking system, "did the user spend more than 10 seconds on this post" is a better training signal than "did they scroll past it."

Class imbalance. In click prediction, a 0.1% CTR means 999 negative examples for every positive. How do you handle this? Downsampling negatives, upsampling positives, or adjusting the loss function — and what the trade-offs are between these approaches — is a real interview probe.

Data splitting. Don't use random splits on time-series interaction data. Train on weeks 1–8, validate on week 9, test on week 10. Using random splits causes data leakage because future interactions will predict past ones — an error that tanks production performance.

Data freshness and pipelines. Who manages the ingestion pipeline? How often does training data refresh? What happens if the pipeline goes stale? Distributed task schedulers are commonly used here to manage the batch retraining cadence.

Phase 3: Feature Engineering

Feature engineering is where ML system design gets specific.

Separate features into three categories:

Offline features — precomputed in batch, stored in a feature store, joined at training time and at serving time. User historical statistics (average CTR over last 30 days), item popularity scores, user-item affinity vectors. These can be computed overnight. Latency is not a constraint here.

Online features — computed at serve time, in real time. What the user just searched for, what they just clicked on, current session context. Latency matters here — these computations must be fast.

The training-serving skew problem. This is where interviews reveal whether you've actually shipped production ML. If you compute a feature differently in the training pipeline than you do in the serving pipeline, your model's performance in production will be worse than your offline metrics predicted. This isn't a minor concern — it's one of the most common causes of "model looks great offline, underperforms in production" failures.

The standard solution is a feature store: a system that computes feature transformations once, stores both the historical snapshots (for training) and the real-time serving layer (for inference) using the same computation logic. Feast, Tecton, and Vertex AI Feature Store are production examples. The point isn't to name them — it's to demonstrate that you understand why they exist.

Interviewers at Google and Meta will specifically ask about training-serving skew, feature freshness SLAs, and what happens when the online feature serving path goes down.

Phase 4: Model Architecture

Only now do you talk about the model.

By Phase 4 you know: the ML task formulation, the data you have, the features available, and the latency constraints. Model selection follows from these — not from "what's the best model."

The typical framing:

Start simple. For most production ML problems, logistic regression or gradient boosted trees (XGBoost, LightGBM) outperform deep learning in the first production version, are easier to debug, and have lower inference latency. Starting with a complex deep learning approach signals you haven't shipped enough production systems to know that "best offline metric" ≠ "best production choice."

Explain when you'd go complex. Transformers and deep ranking models are appropriate when you have very large amounts of data, when interactions between features matter (i.e., when a user-item embedding model is needed), or when content is unstructured (images, text, audio). Explain the trade-off explicitly: higher capacity, higher inference cost, harder to debug, slower to iterate on.

Two-stage architectures. For recommendation and search ranking at scale, the standard pattern is:

  1. Candidate generation — retrieve thousands of candidates quickly using approximate nearest-neighbour search over learned embeddings
  2. Ranking — score the candidates with a heavier model that considers more features
  3. Re-ranking — apply business rules, diversity constraints, freshness boosts

This pattern appears in every major recommendation system (YouTube, TikTok, LinkedIn, Spotify). Know it cold.

The Instagram social feed system design covers the candidate generation → ranking → re-ranking pipeline from a distributed systems perspective — useful context for understanding how the ML and systems layers interact.

Phase 5: Training and Evaluation

Offline evaluation metrics. Pick metrics that align with your objective. For binary classification (click/no-click), AUC-ROC and log loss. For ranking, NDCG, MRR, or precision@K. For regression (watch time), RMSE. Explain why each metric is appropriate and what it misses — no offline metric is perfect.

Offline-online gap. Offline metrics and online metrics don't always move together. A model with better AUC doesn't always produce higher CTR. Discuss why this happens (position bias, exposure bias, feedback loops) and how you'd detect it.

Experimentation framework. How do you ship the model safely? Shadow deployments first — run the new model in parallel with the existing one, log its predictions but don't serve them. Then a canary deployment to 1% of traffic. Then a full A/B test with a holdout control group. Discuss statistical power, minimum detectable effect, and how long you'd run the test before making a decision.

Retraining. When do you retrain? Options: scheduled (daily, weekly), triggered by drift detection, or online learning (continuous). For most systems, scheduled retraining with drift-triggered alerts is the right balance between freshness and operational complexity.

Phase 6: Deployment and Monitoring

This phase separates candidates who have shipped ML systems from candidates who have only trained models.

Serving architecture. How does the model get called? Synchronous REST API (low-latency, high-availability)? Async batch scoring (high-throughput, latency-tolerant)? Edge deployment (privacy, ultra-low latency)? Each has different infrastructure requirements. For a real-time feed ranking system, synchronous serving with a cache for repeated queries is standard. For fraud detection, asynchronous scoring works when the decision doesn't need to be instant.

Latency and throughput. What's the p99 latency budget? Can you serve this model within it? If not, what do you do? Options: model quantization (smaller precision = faster), model distillation (smaller model trained to mimic a larger one), caching predictions for common inputs, batching requests for GPU efficiency.

Monitoring — the three dimensions you must cover:

  1. Model quality — is the model's precision/recall/AUC degrading over time on a labeled holdout?
  2. Data drift — are the input feature distributions shifting away from what the model was trained on? PSI (Population Stability Index) and KS tests are standard approaches.
  3. Business metrics — is the model's downstream impact on CTR, revenue, or engagement declining?

Retraining triggers. What automatically kicks off a new training run? A drop in model quality below a threshold. Feature drift exceeding a statistical threshold. A scheduled cadence for systems where data volume supports it. The distributed metrics and logging system design covers the kind of alerting infrastructure that feeds into these triggers.

Rollback strategy. What happens if the new model is worse than the old one? You need a model registry with versioned artifacts and a rollback mechanism. This is not glamorous. Interviewers ask about it precisely because less experienced candidates haven't thought about it.


The Most Common ML System Design Interview Questions

The questions that appear most often across Google, Meta, Amazon, Apple, LinkedIn, and Uber:

Recommendation systems:

  • Design YouTube's video recommendation system
  • Design Instagram's Explore page ranking model
  • Design LinkedIn's "People You May Know" feature
  • Design a product recommendation system for Amazon's homepage

Prediction and ranking:

  • Design a click-through rate prediction model for Google Ads
  • Design a search ranking system (web or product)
  • Design a news feed ranking system

Anomaly detection and safety:

  • Design a spam detection system for email or social content
  • Design a fraud detection system for financial transactions
  • Design an automated content moderation pipeline

Emerging questions (increasingly common in 2026):

  • Design a RAG-based question answering system
  • Design a real-time personalisation engine
  • Design an LLM inference serving layer at scale

Every one of these questions follows the same 6-phase structure. The technical details change. The framework does not.


The Mistakes That Tank Strong Candidates

You can know the framework and still fail if you make any of these:

Jumping to model architecture in the first five minutes. The interviewer gives you a prompt, and you immediately start talking about transformers or two-tower models. You haven't asked a single clarifying question. You've signalled that you think like a researcher, not a production engineer. Slow down. Frame the problem first.

Treating data as an afterthought. "We'll collect user interaction data" is not a data section. How will you label it? At what scale? What's the quality? What does the class imbalance look like? What data doesn't exist yet and needs to be collected? Data is where ML systems live or die. Interviewers know this.

Ignoring training-serving skew. If you don't mention the feature store and training-serving parity, you've told the interviewer you haven't shipped a production ML system that went wrong due to this issue. It happens constantly. It's one of the most important topics in ML systems.

Skipping monitoring entirely. A model that ships without monitoring is a model that nobody knows is broken. This is not theoretical — models drift. Data distributions shift. Ending your design with "and then we deploy the model" is like ending a system design answer with "and then we write the code."

I've seen this from the other side too. As an Android engineer, the apps I built were consumers of ML ranking systems I never thought about. When the recommendation feed degraded, I'd notice it in user session data weeks after it started. No alert had fired. Nobody had caught the drift. That's what skipping the monitoring section in your interview answer costs in production.

Refusing to commit to trade-offs. "It depends" is not an answer. "It depends — and here's the specific trade-off I'm navigating, and here's which way I'd lean given the constraints we established in Phase 1" is an answer. Interviewers are not looking for one correct answer; they're looking for structured reasoning under uncertainty.

Tool-naming instead of system-thinking. "I'd use Feast for the feature store, TFX for the pipeline, and TorchServe for inference" tells the interviewer you've read some blog posts. "I need a system that guarantees consistent feature computation between training and serving, so I'd centralise the transformation logic — something like a feature store — and here's why training-serving parity is critical for this use case" tells the interviewer you understand the problem the tools were built to solve.


Your 4-Week Study Plan

This is a realistic plan assuming you have 1–2 hours per day.

Week 1 — ML Systems Fundamentals

Understand the components you'll be designing: feature stores, training pipelines, model serving, monitoring and drift detection. Read Chip Huyen's Designing Machine Learning Systems — the chapters on data collection, feature engineering, training data, and deployment. This is the single best book for ML system design interviews.

Also read 2–3 articles from Airbnb, Uber, and LinkedIn engineering blogs on ML systems they've shipped. These are real implementations of the patterns you'll describe in interviews. Internalising one real system thoroughly is worth more than reading twenty theoretical guides.

Week 2 — Learn the Questions Cold

Pick the 5 most common question categories (recommendation, ad prediction, search ranking, fraud detection, feed ranking) and work through one per day. Don't look up answers. Whiteboard each one using the 6-phase framework. See where you get stuck. The places where you get stuck are the places you need to study.

For each question, pay specific attention to: (a) how you'd handle labelling, (b) the training-serving skew risk, and (c) what you'd monitor in production.

Week 3 — Deepen the Weak Areas

Most candidates are weakest on data pipelines, feature stores, and monitoring. Week 3 is for going deep on these. Study how feature stores work architecturally, understand the difference between batch and streaming feature computation, and be able to explain PSI and KS tests for drift detection without looking them up.

Also study the rate-limiting and API gateway patterns you'd apply to a high-throughput inference serving layer — the rate limiter system design guide covers the exact patterns you'd use to protect an ML inference endpoint under traffic spikes.

Week 4 — Practice Out Loud

Theory doesn't transfer to a 45-minute interview without spoken practice. Record yourself answering questions. Time yourself. The first two times you do this you'll realise you spend 15 minutes on model architecture and forget to mention monitoring. That's exactly the feedback you need before the actual interview.

Practice the follow-up questions interviewers ask most often:

  • "How would your system handle a cold-start problem for new users?"
  • "What would you do if the model's precision dropped 10% week-over-week?"
  • "How would you design the A/B testing framework for this?"
  • "What would change if the latency budget dropped from 200ms to 20ms?"
  • "How would you detect and handle training-serving skew in production?"

🔥 Resources for Preparation

  • Practice Mocks: Mockingly.ai — AI-powered mock interviews with real ML system design prompts and immediate feedback on your answers
  • Book: Designing Machine Learning Systems by Chip Huyen — the most practical resource on production ML; chapters on feature engineering and deployment are directly interview-relevant
  • Book: Machine Learning System Design Interview by Ali Aminian and Alex Xu — structured, question-based format covering the most common interview prompts
  • Engineering blogs: Airbnb Tech Blog, Uber Engineering, Meta AI Blog — real ML system designs used in production; internalise these as concrete examples
  • GitHub: alirezadir/Machine-Learning-Interviews — open-source ML SD framework with case studies

Frequently Asked Questions

What is a machine learning system design interview?

A machine learning system design interview asks you to design the full lifecycle of a production ML system — from problem framing and data collection through feature engineering, model selection, deployment, and monitoring. It's typically 45–60 minutes and is distinct from standard system design interviews in that it requires expertise in ML-specific components like feature stores, training pipelines, evaluation infrastructure, and model monitoring.

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

Both test distributed systems thinking, but the ML system design interview adds an entire second dimension: the data-model lifecycle. You must design data collection and labelling strategy, feature infrastructure (and crucially, training-serving parity), model evaluation and A/B testing frameworks, and monitoring for model degradation. Regular system design interviews don't probe any of these. Candidates who prep only on distributed systems fundamentals — databases, caches, queues — will miss the ML-specific depth that interviewers are scoring.

What are the most common ML system design interview questions?

The most common questions at FAANG companies include: design a recommendation system (YouTube, Netflix, Instagram), design a click-through rate prediction model (Google Ads, Facebook Ads), design a search ranking system, design a fraud detection system, and design a content moderation pipeline. In 2026, questions on RAG systems, LLM serving, and real-time personalisation are increasingly common at companies building AI-native products.

What is training-serving skew and why do interviewers ask about it?

Training-serving skew occurs when the features computed at model-training time differ from the features computed at inference time — due to different code, different data freshness, or different preprocessing logic. The result is that the model performs well offline but underperforms in production. Interviewers ask about it because it's one of the most common real-world failure modes in ML systems, and knowing to address it signals genuine production experience.

What do interviewers look for in an ML system design round?

Interviewers score on: problem framing ability (can you turn a vague product goal into a precise ML task?), data-centric thinking, feature engineering depth, understanding of training-serving parity, evaluation rigour, and production awareness including monitoring and drift handling. The single biggest differentiator is whether a candidate thinks like a production engineer or like a researcher — the former designs the whole system; the latter designs only the model.

How long should I spend preparing for a machine learning system design interview?

Four weeks of focused preparation — 1–2 hours per day — is enough for most senior candidates who have some production ML experience. Week 1: ML systems fundamentals. Week 2: work through the top 5 question categories using the framework. Week 3: deepen weak areas (data pipelines, feature stores, monitoring). Week 4: spoken practice with timed recordings. If you have no production ML experience, add 2 more weeks on fundamentals before starting this plan.

Which companies have ML system design rounds?

Google, Meta, Amazon, Apple, LinkedIn, Uber, Airbnb, Snap, Spotify, and most other large tech companies with ML teams run ML system design rounds, typically as part of the onsite loop for ML Engineer, Applied Scientist, and Senior Software Engineer (ML) roles. The format and depth varies — Meta and Google typically run the most rigorous versions, with explicit time budgets and follow-up probes on production specifics.

What is the best book for machine learning system design interview prep?

Designing Machine Learning Systems by Chip Huyen is the most widely recommended resource for production ML systems fundamentals. For interview-specific question formats, Machine Learning System Design Interview by Ali Aminian and Alex Xu provides a more structured, question-first approach. Most candidates use both: Huyen for depth, Aminian/Xu for question practice.

Companies That Ask This

Related System Design Guides