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.
Design a secure, auditable model registry at scale: multi-tenant access control and per-tenant namespaces for a SaaS platform, immutable versioning with cryptographic signing of model binaries, provenance metadata, and efficient queries for lineage, reproduction, and risk scoring across millions of model versions. Discuss your metadata-store's storage-tier trade-offs, and propose how you'd keep the registry usable when experiments create thousands of checkpoints per week and most of them are never worth keeping. Separately, implement a function that downloads a model artifact over HTTPS, verifies its SHA-256 checksum against the registry's metadata, and returns a path to the verified artifact, handling retries and partial downloads.
Implement a Python function compute_psi(baseline: list[float], current: list[float], bins: int = 10) -> float that computes the Population Stability Index between two numeric arrays. Handle zero-frequency bins with smoothing, document your binning strategy and interpretation thresholds, and discuss how your implementation scales to arrays with up to a million values.
Write a SQL query that computes per-feature z-scores comparing the recent 7-day mean to a baseline 30-day mean for numeric features, given features(user_id, feature_name, feature_value, event_time), and flags features where |z| > 3. State your assumptions about independence and sample size, and describe how you'd scale this to petabyte-scale tables.
A monitoring system runs a KS-test per feature every hour across thousands of features and triggers many alerts. Propose a statistically principled way to control the false discovery rate across all these simultaneous tests while preserving sensitivity to true drift events.
Describe active-learning strategies (uncertainty sampling, diversity sampling, hybrid approaches) that reduce labeling cost while keeping a model fresh, and how each integrates into a retraining workflow with limited labeling throughput. For a production system routing ambiguous predictions to human labelers, address the selection policy, latency constraints, annotation-interface and label-quality controls, and cost/performance trade-offs. For an NLP product adapting to new language usage, how would you budget labeling resources and decide triggers for active labeling within a continuous-evaluation feedback loop?
Unlock Full Question Bank
Get access to all MLOps: Monitoring, Retraining, and Lifecycle Management interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.