0
0
ML Pythonml~20 mins

Model registry in ML Python - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Model Registry Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Purpose of a Model Registry
Which of the following best describes the main purpose of a model registry in machine learning projects?
ATo store, version, and manage machine learning models for easy deployment and tracking
BTo train machine learning models faster using distributed computing
CTo collect raw data from various sources for model training
DTo visualize model predictions in real-time dashboards
Attempts:
2 left
💡 Hint
Think about how teams keep track of different versions of models and their metadata.
Model Choice
intermediate
2:00remaining
Choosing Model Version in Registry
You have three versions of a model registered: v1, v2, and v3. v3 has the best accuracy but is unstable in production. Which version should you deploy from the registry?
ADeploy v3 because it has the best accuracy
BDeploy v2 if it balances accuracy and stability
CDeploy v1 because it is the first version
DDeploy none and retrain a new model
Attempts:
2 left
💡 Hint
Consider both accuracy and stability for production use.
Metrics
advanced
2:00remaining
Tracking Model Metrics in Registry
Which metric is NOT typically tracked in a model registry to evaluate model performance?
AUser interface color scheme
BModel accuracy on validation data
CTraining time duration
DNumber of model parameters
Attempts:
2 left
💡 Hint
Think about metrics related to model quality and resource use.
🔧 Debug
advanced
2:00remaining
Identifying Issue in Model Registry Usage
A team notices that after registering a new model version, the deployment still uses the old model. What is the most likely cause?
AThe model registry deleted the new model version automatically
BThe new model version has a syntax error in the training code
CThe training data was not updated before retraining
DThe deployment pipeline is not configured to pull the latest model version from the registry
Attempts:
2 left
💡 Hint
Think about how deployment pipelines interact with model registries.
Predict Output
expert
2:00remaining
Output of Model Registry Version Query Code
What is the output of this Python code snippet querying a model registry?
ML Python
model_versions = ['v1', 'v2', 'v3']
registered_versions = {v: 'deployed' if v != 'v2' else 'staging' for v in model_versions}
print(registered_versions['v2'])
AKeyError
Bdeployed
Cstaging
DSyntaxError
Attempts:
2 left
💡 Hint
Check the dictionary comprehension logic carefully.