Explain a model registry's purpose and what to store per version
Tests if you treat the registry as a governance bridge between training and production, not just storage. Strong answers cite versioned artifacts, lineage, metrics, dependencies, and approval gates. Red flag: calling it a file dump or experiment tracker.
What's really being asked
This question evaluates whether you understand the model registry as a control plane rather than a storage layer. At the senior level, interviewers want to see that you view MLOps as a software engineering discipline with governance, reproducibility, and lifecycle management. The registry sits at the intersection of CI/CD and ML workflows, so they are checking if you can articulate how training pipelines hand off artifacts to serving infrastructure safely and traceably. They also want to know if you distinguish between ephemeral experiment tracking and durable model governance.
The full answer
A strong response starts by defining the registry as a versioned system of record that decouples model artifacts from both training jobs and serving endpoints. It should mention that the registry enables promotion workflows, rollback, and audit trails. For stored metadata, hit these categories in order: first, lineage and provenance, including training dataset versions, code commit hashes, and pipeline run IDs; second, performance metrics from validation and test sets, plus fairness or business KPIs where relevant; third, the serialized artifact itself, along with its serialization format and signature; fourth, dependency manifests such as Python packages, CUDA versions, and base container images; fifth, inference contract details like input and output schemas and feature expectations; and sixth, lifecycle state, including staging labels, approval signatures, and deployment targets. Mentioning immutability and access control strengthens the answer.
The mistakes people make
Red flags include describing the registry as just a place to dump pickle files or S3 buckets without versioning. Another weak pattern is conflating the registry with an experiment tracker like MLflow Tracking or Weights and Biases; experiments are for search and comparison, while the registry is for production decisions. Saying you only store the model weights and accuracy score misses the operational context. Similarly, omitting lineage or dependency information signals that you have not debugged a model that failed in production due to environment drift.
What usually comes next
Expect the interviewer to ask how you handle model updates without downtime, how you enforce immutability of registered versions, or how you automate promotion from staging to production. They may probe your experience with specific tools like MLflow Model Registry, AWS SageMaker Model Registry, or a custom Git-based solution. Another common thread is how you integrate the registry with a feature store and monitoring stack to close the feedback loop.
A concrete example
Imagine a fraud detection pipeline that retrains nightly. When a new Random Forest model passes validation, the pipeline registers version 3.2.1 with the following metadata: the training dataset snapshot ID from the feature store, the Git commit of the training code, AUC and false-positive rate on the holdout set, the serialized ONNX artifact, a requirements.txt hash, the expected input schema of 47 normalized features, and a pending approval tag. A separate deployment service polls the registry, sees the approved state change, and triggers a canary rollout. When an incident occurs, engineers query the registry to reproduce the exact training environment within minutes.
Interview question
What best describes a model registry's primary purpose in an MLOps pipeline?
- a.It versions model weights and accuracy scores for long-term archival
- b.It stores feature transformations and serves feature vectors to production models
- c.It acts as a system of record that governs promotion workflows, rollback, and audit trails between training and servingCorrect
- d.It stores hyperparameter search results and compares training runs across experiments
Why? this is the answer
A model registry serves as a control plane that decouples training from serving and manages lifecycle governance. Conflating it with an experiment tracker mistakes ephemeral research comparison for durable production decision-making.
Just read this? Test yourself on what you have been reading.
- #mlops
- #model-registry
- #machine-learning
- #deployment
- #governance
Put your scrolling time to good use
Learn one idea, try a quiz and save useful cards for revision. Tezvyn makes it easy to learn and stay current in your tech field, a few minutes at a time.
The iPhone app is on the way
We are building it. Until it lands, nothing here is held back from you: every interview card, your saved cards, streaks and the job board all work in Safari, plus hundreds of free practice quizzes of thirty questions each. Sign in and it all carries over to the app the day it arrives.
Want it as an icon? Tap Share at the bottom of Safari, then Add to Home Screen. It opens full screen and the cards you have read stay available offline.
We are hiring for this. Open roles that interview on mlops — each one lists the topics its interview covers.
See open roles