Skip to content
Tech Interview Prep
Technical interview guide

Model Monitoring & Drift Detection

Detecting when a production model's performance degrades because the world changed since it was trained.

Minutes to read
4
Practice MCQs
25
Interview Q&A
25
Edition
v5
Editorial status
Reviewed

Scope: Azure Machine Learning, Vertex AI, AWS SageMaker AI, NIST AI RMF, and Google SRE guidance current 2026-09-01; AWS states Model Monitor is unavailable to new customers.

Overview

Curated: · Written: · Reviewed:

Model Monitoring & Drift Detection

In one line

Monitoring tells you whether a deployed model is still doing its job: first that the right model and inputs are running, then that inputs are valid, then that the distribution moved, and finally, through outcomes, that decisions got worse. Drift is a prompt to investigate, not a verdict to retrain.

Key definitions

  • Covariate drift: the input distribution changed while the input-to-outcome relationship may not have.
  • Concept drift: the relationship between inputs and the true outcome changed, so equivalent inputs now warrant different predictions. Needs outcome evidence to assert.
  • Training-serving skew: the same feature is computed differently at train and serve time. Test it by recomputing the feature from raw production data with the training pipeline and comparing against the serving value.
  • Data-quality breakage: nulls, type errors, range violations, cardinality changes, stale features. A contract check, not a statistical test.
  • Selective labels: outcomes observed only for the cases the model acted on, so the labelled sample is biased.
  • Persistence rule: a feature must breach in consecutive windows before it pages.

Formulas and complexity

PSI over fixed bin edges:

PSI=∑i(ci−ri)ln⁡ciri\mathrm{PSI}=\sum_i (c_i-r_i)\ln\frac{c_i}{r_i}

where $r_i$ and $c_i$ are the reference and current bin proportions. Common bands (0.1, 0.25) are a starting heuristic from credit scorecards, not a law.

Multiple testing: at $\alpha=0.05$ across 200 features tested hourly, noise alone gives $200 \times 0.05 = 10$ alarms an hour. Requiring three consecutive breaches gives an upper bound of $200 \times 0.05^3 \approx 0.025$ an hour, and the real reduction is smaller because adjacent windows are correlated.

How it works

Monitoring is a control loop: each level produces a signal, a threshold, an owner and an action. Check deployed identity and capture first, then validity, then distribution, then outcomes. A drift alert triggers a check of persistence, upstream pipeline, and the best available outcome proxy before any retrain decision.

no yes yes no no yes no yes Alert: PSI breach Persistent over windows? Review queue Data-quality or pipeline break? Page pipeline owner, freeze reference Recompute from raw matches serving? Training-serving skew fix Outcome proxy or matured labels degraded? Document, update reference Restrict scope, rollback or retrain candidate

When to use and when not to

SituationUse drift monitoring as a trigger?
Labels arrive in minutesNo. Monitor performance directly; drift is a diagnostic
Labels arrive weeks lateYes, paired with a proxy stack (score shift, calibration on matured cohorts)
Fixed rule, no learned distributionNo
Expected campaign or launch spikeExpect pages; update reference and document
Nobody owns the responseNo. An unowned alert trains the team to ignore the channel
Low-stakes, reversible decisionsLower priority; spend effort on high-stakes slices

Traps interviewers probe

  • "PSI above 0.25 means retrain." Fix: set per-feature thresholds from each feature's own baseline variability, backtested against your past incidents, and require persistence before paging.
  • "No drift means the model is healthy." Fix: concept drift, label-pipeline breaks and silent serving changes degrade performance with stable marginals. Keep an outcome or calibration signal running.
  • "Retrain on the latest traffic." Fix: check for a pipeline break first. Retraining on truncated features or selectively labelled traffic bakes the failure in. Freeze the reference and fix upstream.
  • "Update the baseline to current data." Fix: only after confirming the change is expected. Updating after an incident normalizes the failure.
  • "More tests give better coverage." Fix: apply multiple-testing discipline and persistence rules, and route residual alerts to a review queue.

Interview tips

Open by naming the level: "Before I call it drift, I confirm the deployed version, the inputs' validity, and whether outcomes moved."

Expected follow-ups:

  • Labels take 30 days. How do you know the model degraded today? Answer with the proxy stack and which proxy you validate against matured labels.
  • Accuracy dropped but no feature drifted. What happened? Concept drift, label-pipeline break, or silent serving change; check the serving version and feature pipeline identity.
  • How do you set a threshold? Per-feature baseline, backtest against incidents, persistence, cooldown.
  • Why not monitor everything? 200 hourly tests at 0.05 is 10 false alarms an hour.

30-second outline: "I separate four things: is the right model and capture running, are inputs valid, did the distribution move, and did outcomes or calibration move. A drift alert is a prompt. I check persistence and whether affected features share one upstream pipeline, pull the best available outcome proxy, then page the owner. I retrain only if the outcome evidence says decisions got worse, and I freeze the reference so the failure does not become the new baseline."

Feedback on this overview

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