0
0
MLOpsdevops~20 mins

Promoting models between stages in MLOps - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Model Promotion Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Model Promotion in MLOps Pipelines

What is the primary purpose of promoting a machine learning model from a staging environment to production in an MLOps pipeline?

ATo test the model with new data before final deployment
BTo archive the model for future reference
CTo make the model available for real users and applications
DTo retrain the model with additional datasets
Attempts:
2 left
💡 Hint

Think about what 'production' means in software and model deployment.

💻 Command Output
intermediate
2:00remaining
Output of Model Promotion Command

Given the command below to promote a model version in MLflow, what is the expected output?

mlflow models transition-stage --model-name my_model --version 3 --stage Production
AModel version 3 transitioned to stage Production successfully.
BError: Model version 3 does not exist.
CModel version 3 is already in Production stage.
DSyntax error: missing required flags.
Attempts:
2 left
💡 Hint

Assume the model version exists and the command syntax is correct.

Configuration
advanced
3:00remaining
Configuring Automated Model Promotion

Which YAML snippet correctly configures a CI/CD pipeline step to promote a model to Production only if tests pass?

A
steps:
  - name: Promote Model
    run: mlflow models transition-stage --model-name my_model --version ${{ env.MODEL_VERSION }} --stage Production
    when: always()
B
steps:
  - name: Promote Model
    run: mlflow models transition-stage --model-name my_model --version ${{ env.MODEL_VERSION }} --stage Production
    if: failure()
C
steps:
  - name: Promote Model
    if: cancelled()
    run: mlflow models transition-stage --model-name my_model --version ${{ env.MODEL_VERSION }} --stage Production
D
steps:
  - name: Promote Model
    if: success()
    run: mlflow models transition-stage --model-name my_model --version ${{ env.MODEL_VERSION }} --stage Production
Attempts:
2 left
💡 Hint

Promotion should happen only when previous steps succeed.

Troubleshoot
advanced
2:30remaining
Troubleshooting Model Promotion Failure

You run a model promotion command but receive the error: "Permission denied: cannot transition model stage." What is the most likely cause?

AThe user lacks permissions to change model stages.
BThe model version does not exist in the registry.
CThe model is already in the target stage.
DThe command syntax is incorrect.
Attempts:
2 left
💡 Hint

Think about access rights and roles in model registries.

🔀 Workflow
expert
3:00remaining
Correct Sequence for Model Promotion Workflow

Arrange the following steps in the correct order for promoting a machine learning model from staging to production:

A1,4,2,3
B4,1,2,3
C2,4,1,3
D4,2,1,3
Attempts:
2 left
💡 Hint

Think about the logical order from training to promotion.