System Design interview questions for data scientists and ML engineers

System design interviews ask you to design a real system on a whiteboard in about 45 minutes. Interviewers look for clear requirements, a sound high-level design, a deep dive into the hardest part and honest trade-offs.

Data and AI interviews test SQL and coding, statistics and machine learning concepts, and ML system design. Expect follow-ups on how you would measure a model, what breaks in production, and why you chose one approach over another.

4 questions below, each one a practice interview: the AI interviewer asks it out loud, follows up on your answer, and sends you a scored feedback report.

Practise free with the AI interviewer

What the interviewer scores

  • Requirements

    Pins down functional and non-functional requirements and scale before designing.

  • High-Level Design

    A coherent set of components, APIs and data flow that meets the requirements.

  • Deep Dive & Scalability

    Goes deep on the hard parts: data model, bottlenecks, sharding, caching, failure modes.

  • Trade-offs

    Compares alternatives and justifies choices against the requirements.

  • Communication

    Explains their thinking out loud, answers the question asked, checks assumptions and responds to hints and follow-ups.

Questions

Design a Feature Store for Delivery-Time Predictions

System Design · Medium · 40 min

Design the feature platform behind delivery-time estimates at Parcelpine, a grocery delivery company.

Parcelpine delivers about 1.2 million orders a day from 3,000 partner stores. Its model predicts each order's delivery time at checkout and re-predicts it every 30 seconds while the order is in progress, about 800 predictions per second at peak. Features include how busy the store has been in the last 30 minutes, the number of items, the courier's location and current traffic.

The model's error was 4.1 minutes on offline validation but is 7.8 minutes in production. The team suspects the features the model sees in production differ from the ones it was trained on.

Design a feature system that serves fresh features to the model within 20 ms, produces training data that matches exactly what the model would have seen at prediction time, and lets the team find and prevent mismatches like this one. Cover the storage layers, how features are defined and computed once for both training and serving, backfills, and monitoring.

Clarify requirements first, then design end to end.

Practise this question with the AI interviewer

Design a Model Monitoring Platform

System Design · Medium · 40 min · Free to practise

Design the model monitoring platform at Bramblecart, an online home-goods retailer that runs about 60 machine learning models in production.

The models vary widely. Search ranking makes 20,000 predictions per second and learns whether it was right within minutes, from clicks. Demand forecasts run nightly and are checked against sales the next day. A customer churn model scores weekly and only learns its true outcome 60 days later. Across all models there are about 1.5 billion predictions a day. Today, problems are found when a business team complains, usually weeks late.

Design a platform that every model team can plug into. It should catch broken input data, shifts in what the models see and predict, and drops in real performance, including for models whose outcomes arrive late. Cover what to log and where to store it, which checks and statistics to compute and how often, alerting that people will not learn to ignore, dashboards, and how monitoring connects to retraining.

Clarify requirements first, then work through the design end to end.

Practise this question with the AI interviewer

Design Recommendations for a Handmade Goods Marketplace

System Design · Hard · 45 min

Design the recommendation system for Kindlewood Market, an online marketplace for handmade and vintage goods.

Kindlewood has 40 million monthly active buyers, 6 million active sellers and 120 million live listings. Most listings are one of a kind: a vintage lamp sells once and disappears, and about 30% of listings each month are new. You are designing two surfaces: a personalized "Picked for you" feed on the home page and "Similar items" on each listing page. Peak traffic is about 15,000 recommendation requests per second, and each must return in under 200 ms at the 99th percentile.

Cover:

  • What to optimize, and how you would measure success offline and online.
  • Candidate generation and ranking: the stages, the features and models, and the training data.
  • Cold start for new buyers and new listings, and keeping sold items out of results.
  • Serving, storage and freshness at this scale.
  • Feedback loops, and fairness of exposure for small and new sellers.

Start by clarifying requirements, then work through the design end to end, and be ready to defend your trade-offs.

Practise this question with the AI interviewer

Design Real-Time Payment Fraud Scoring

System Design · Hard · 45 min · Free to practise

Design the real-time fraud scoring system for Tallyrun, a payments company that processes card payments for online merchants.

Tallyrun handles about 50 million transactions a day, peaking at 3,000 per second. Each payment must be approved, sent to manual review or declined within 100 ms at the 99th percentile end to end; fraud scoring gets 30 ms of that budget. About 0.1% of transactions are fraudulent, and most fraud is confirmed only when a chargeback arrives, 30 to 90 days later. A team of analysts can review about 15,000 transactions a day.

Cover:

  • The decision flow and how rules and a model work together.
  • The features that matter (for example, how many cards a device has used in the last ten minutes) and how you compute them fresh, within the latency budget.
  • Labels, training data and how you deal with labels arriving months later.
  • Thresholds for approve, review and decline, given the review capacity and the costs of each mistake.
  • Deploying new models safely, monitoring, and what happens when a dependency is slow or down.

Clarify requirements first, then design end to end and defend your trade-offs.

Practise this question with the AI interviewer