InterviewStack.io LogoInterviewStack.io

MLOps: Monitoring, Retraining, and Lifecycle Management Questions

Operating machine learning systems reliably over time. Covers model and data monitoring, drift and degradation detection, feedback loops, retraining and model-freshness strategy, versioning and model registries, and pipeline and workflow orchestration. Focuses on keeping deployed models healthy and reproducible across their lifecycle.

MediumTechnical
95 practiced

A production model's accuracy drops by 15% within a day. Walk through a prioritized root-cause investigation: what telemetry and logs you'd check first, how you'd validate input and feature distributions against training, how you'd binary-search recent upstream pipeline or code changes, how you'd correlate errors with upstream pipeline failures, and how you'd decide between an immediate rollback and a targeted mitigation. Once you've isolated a cause, describe the decision framework for choosing between rollback, a focused retrain, or a guardrail patch, and how you'd communicate to stakeholders.

HardTechnical
49 practiced

Design a model-governance process that balances speed and safety across a model's path from development to production: what stages it passes through, who signs off at each one, what gets checked before promotion, and how ongoing production issues feed back into the process. For a lighter-weight version covering dozens of models across teams, what's the minimum viable version of this that still produces audit-ready results without becoming a bottleneck?

HardTechnical
66 practiced

Implement a Python class that maintains a streaming, sliding-window ROC AUC for binary predictions over the last N minutes (or last 24 hours). It should support adding records (timestamp, score, label) in chronological order and returning the AUC over the active window, using an approximation approach (for example reservoir sampling or quantile sketches) with bounded memory. Discuss error bounds and time/space complexity.

MediumTechnical
62 practiced

Implement a streaming-friendly class that updates bin counts for predicted probabilities and observed labels on each new example and can report Expected Calibration Error (ECE) on demand, using a configurable number of bins. Make it robust to class imbalance and small per-bin counts.

HardTechnical
54 practiced

Design a principled approach to detect AND mitigate covariate shift between training and production: detection methods (density-ratio estimation, classifier two-sample tests) and mitigation strategies (importance weighting, domain adaptation, input reweighting). When would you prefer data-focused mitigation over model adaptation, and how would you benchmark a detector's sensitivity and false-positive rate before trusting it to trigger automated retraining?

Unlock Full Question Bank

Get access to all MLOps: Monitoring, Retraining, and Lifecycle Management interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.