Skip to content
Tech Interview Prep

Machine Learning Engineer Interview Prep

Overview

Builds and owns production machine-learning systems: the data and training pipeline behind each model, the serving path that delivers its predictions, and the evidence that it is still correct.

Curated: · Written: · Reviewed:

Interview Q&A
104
Practice MCQs
102

The role in one line

This hire builds and owns a production model end to end: the data and training pipeline behind it, the serving path that returns its predictions, and the monitoring that shows it is still correct.

The interview loop

RoundWhat it scores
Problem framingLabel definition, split strategy, baseline, offline and online metrics, ship criteria
ML system designData flow, training cadence, latency and throughput budget, versioning, rollback
Modelling and debuggingLeakage checks, error analysis by slice, bias-variance reasoning, calibration
CodingPython data structures, pandas or PyTorch tasks, complexity stated for each step
Ownership and incidentsHow you decided with incomplete evidence, what you rolled back, what you measured after

Five must-know areas

  1. Label and split: how the target is derived from events and why a time-based split is the default for anything that drifts.
  2. Metrics under imbalance: PR AUC, recall at a fixed precision, and calibration, because accuracy is meaningless at low base rates.
  3. Offline-online gap: why 0.92 AUC can become 0.71 (feature skew, label delay, population shift, a join that changes meaning).
  4. Serving path: the latency budget, feature freshness, what the service returns when a feature is missing, and how batching changes p99.
  5. Monitoring and rollback: input and output drift tests, slice metrics, shadow and canary stages, and the thresholds that trigger retrain or revert.

Numbers and formulas to have ready

At a 0.3% fraud rate, a model that never flags anything scores 99.7% accuracy. Quote that first.

PR AUC of a random classifier equals the positive rate, so a 1.2% positive class starts at 0.012.

Flag a transaction when the expected cost of missing it exceeds the expected cost of a false alarm:

p⋅CFN>(1−p)⋅CFPp \cdot C_{FN} > (1-p) \cdot C_{FP}

This only works if $p$ is a calibrated probability. A rank-only score cannot be multiplied by a loss.

Little's law gives the concurrency you need:

L=λ⋅WL = \lambda \cdot W

where $\lambda$ is requests per second and $W$ is mean latency in seconds. Measure $W$ at p50 and p99 on your own service; do not quote a number you have not measured.

Per-arm sample size for a two-sided test on a mean:

n≈2σ2(zα/2+zβ)2δ2n \approx \frac{2\sigma^2 (z_{\alpha/2} + z_{\beta})^2}{\delta^2}

State $\sigma$, the minimum detectable effect $\delta$, $\alpha$ and power. The result depends on the metric's variance in your traffic, so say where it came from.

Reference architecture

threshold breached Event logs Feature pipeline Feature store: offline history and online values Training job with pinned data snapshot Model registry: weights, config, data hash Serving API with feature lookup Prediction log Monitoring: drift, slices, delayed labels

The feature store keeps history so training can reconstruct the value each feature had at prediction time. The prediction log is what lets you replay a disputed decision.

Strong vs weak answers

QuestionStrong answer sounds likeWeak answer sounds like
Imbalanced fraud"Accuracy is 99.7% for a constant predictor, so I optimise PR AUC and recall at the precision ops can review.""I'd improve accuracy with a bigger model."
0.92 offline, 0.71 live"First I compare feature values at serving against the training snapshot for the same transaction IDs.""Probably overfitting, so I'd add regularisation."
0.98 CV AUC for churn"I suspect a leaked feature, like a cancellation flag set after the label window. I'd rebuild the split by time and drop it.""That's a great model, let's ship."
Nightly vs weekly retrain"Cadence follows label delay and measured decay. Retrain on a trigger when slice metrics cross the agreed threshold.""Nightly, to stay fresh."
Shadow to 100%"Canary at 1%, 5%, 25% with a rollback rule tied to the guardrail metric, and the old model kept warm.""Flip the switch once shadow looks good."

Interview tips

  1. Open every answer with the problem, the constraint, then the decision, and name the metric that will reject it.
  2. Ask for the base rate, label delay and latency budget before proposing a model.
  3. Say which figure you measured and which you are estimating, and what the estimate depends on.
  4. For debugging questions, separate data changes, code changes and population changes in that order.
  5. Always state the rollback step before the rollout step.

Last-week checklist

  • Rehearse the Top 100 aloud in problem, constraints, decision, trade-off, verification order.
  • Re-derive PR AUC, calibration and the expected-cost threshold by hand.
  • Sketch the reference architecture from memory and name where each failure would appear.
  • Work the Practice MCQs on leakage, imbalance and A/B power.
  • Patch every weak assumption your mock answers exposed using the Concepts list in study order.

Feedback on this overview

Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.