0
0
MLOpsdevops~20 mins

MLflow Model Registry in MLOps - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
MLflow Model Registry Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
MLflow Model Registry: Model Stages

Which MLflow Model Registry stage is used to indicate a model that is ready for production deployment?

AArchived
BNone
CStaging
DProduction
Attempts:
2 left
💡 Hint

Think about the stage that means the model is stable and actively used.

💻 Command Output
intermediate
2:00remaining
MLflow CLI: Listing Registered Models

What is the output of the following MLflow CLI command?

mlflow registered-models list
AShows the current active model version only
BLists all registered models with their latest versions and stages
CDisplays the MLflow server status
DRaises an error: command not found
Attempts:
2 left
💡 Hint

Think about what 'list' usually does in command line tools.

🔀 Workflow
advanced
2:30remaining
MLflow Model Registry: Transitioning Model Stages

Which sequence of MLflow Python API calls correctly transitions a model version from Staging to Production?

MLOps
from mlflow.tracking import MlflowClient
client = MlflowClient()

# Assume model_name and version are defined

# Which code snippet correctly transitions the stage?
Aclient.transition_model_version_stage(name=model_name, version=version, stage='Production')
Bclient.update_model_version(name=model_name, version=version, stage='Production')
Cclient.transition_stage(model_name, version, 'Production')
Dclient.set_model_stage(model_name, version, 'Production')
Attempts:
2 left
💡 Hint

Look for the method name that includes 'transition' and 'stage'.

Troubleshoot
advanced
2:00remaining
MLflow Model Registry: Error Handling

You try to register a new model version but get this error: RESOURCE_ALREADY_EXISTS: Model version already exists. What is the most likely cause?

AThe model artifact path is invalid
BThe MLflow server is down and cannot register new models
CYou are trying to register a model version with a version number that already exists for that model
DYou forgot to specify the model name when registering
Attempts:
2 left
💡 Hint

Think about what 'already exists' means in this context.

Best Practice
expert
3:00remaining
MLflow Model Registry: Managing Model Versions in CI/CD

In a CI/CD pipeline, what is the best practice for automatically promoting a model version to Production after successful testing?

AUse MLflow API in the pipeline script to transition the model version stage after tests pass
BManually promote the model version in the MLflow UI after deployment
CDelete previous production versions before promoting a new one
DSkip stage transitions and deploy the model directly from the artifact store
Attempts:
2 left
💡 Hint

Automation is key in CI/CD pipelines.