How to answer machine learning system design questions
Problem framing · Data · Model · Eval · Productionization
This structure answers machine learning design questions in five steps: frame the problem and its label, describe the data, climb from a baseline model, choose offline and online metrics, then plan how the model runs in production.
When to use it
ML engineer / applied scientist / data scientist interviews.
The 5 parts of ML Modeling
- 1. Problem framing
Supervised / unsupervised / RL? What's the label? What's the loss? Online or offline?
- 2. Data
Sources, label generation, cardinality, leakage risks, privacy constraints.
- 3. Model
Baseline → contender → advanced. Justify the climb. Hyperparameter strategy.
- 4. Evaluation
Offline metrics + online metric. Where they disagree, which wins. A/B test design.
- 5. Productionization
Latency budget, retraining cadence, drift monitoring, fallback path.
Example answer
An illustrative answer to show the structure, not a real candidate's.
“Design a system to detect fraudulent transactions in real time.”
- Problem framing
- It's supervised classification, and the label is a confirmed chargeback. Scoring has to happen before the payment is approved.
- Data
- Transaction history, device and merchant features, and chargeback labels, which arrive weeks late. I'd split by time to avoid leakage.
- Model
- Start with rules and logistic regression as a baseline, then gradient-boosted trees, and only go further if they plateau.
- Evaluation
- Offline, precision at the review team's capacity. Online, fraud losses and false declines, tested against a holdout of traffic.
- Productionization
- A tight latency budget per score, a fallback to rules if the model is down, regular retraining and drift alerts on key features.
Why it works
Framing the problem and the metric first shows judgement; the choice of model follows from them.
A common shape for machine learning design rounds, from problem framing through to running the model in production.
In Meeting Copilot
In the Meeting Copilot desktop app you can describe this structure as your own answer format, in plain English, and the AI follows it for the whole session.
To practise on the questions your next interview is likely to ask, see AI interview prep.
More frameworks
- Salesforce Apex
This structure answers Salesforce developer questions in four parts: the concept in Salesforce terms, a short Apex or SOQL example, the governor limits it touches, and when another tool, such as Flow or asynchronous Apex, fits better.
- Situation, Task, Action, Result
The situation, task, action, result method answers behavioural interview questions with one true story in four parts: the Situation, the Task you owned, the Actions you took, and the Result, measured where you can.
- Situation, Task, Action, Result, Reflection
Adding a reflection gives the situation, task, action, result method a fifth part: after the result, say what you would do differently or what the experience changed in how you work. Senior behavioural rounds often ask for it.
Practise ML Modeling on your own questions.
Interview prep predicts questions from your job posting and writes model answers from your résumé.