0
0
MLOpsdevops~20 mins

Why CI/CD differs for ML vs software in MLOps - Challenge Your Understanding

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
ML CI/CD Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Key difference in CI/CD pipelines for ML vs traditional software
Which of the following best explains why CI/CD pipelines for machine learning projects differ from those for traditional software projects?
AML pipelines only deploy code without testing, while traditional software pipelines include testing.
BTraditional software pipelines require model retraining, but ML pipelines do not.
CTraditional software pipelines always use containers, but ML pipelines never use containers.
DML pipelines must handle data versioning and model training, unlike traditional software which focuses only on code changes.
Attempts:
2 left
💡 Hint
Think about what extra elements ML projects need to manage compared to software projects.
💻 Command Output
intermediate
2:00remaining
Output of a model training step in ML CI/CD pipeline
What is the expected output when running a model training script in an ML CI/CD pipeline that logs metrics?
MLOps
python train.py --log-metrics

# Assume train.py prints training accuracy and loss
ATraining accuracy: 0.92\nTraining loss: 0.15\nModel saved to /models/model_v1.pkl
BSyntaxError: invalid syntax on line 3
CError: Missing data file for training
DTraining accuracy: 0.50\nTraining loss: 1.2\nModel saved to /models/model_v1.pkl
Attempts:
2 left
💡 Hint
Look for a successful training output with high accuracy and saved model.
🔀 Workflow
advanced
3:00remaining
Order of steps in an ML CI/CD pipeline
Arrange the following steps in the correct order for a typical ML CI/CD pipeline.
A3,2,1,4
B1,3,2,4
C1,2,3,4
D2,1,3,4
Attempts:
2 left
💡 Hint
Think about validating data before training, then evaluating before deploying.
Troubleshoot
advanced
2:30remaining
Troubleshooting model deployment failure in ML CI/CD
A model deployment step in your ML CI/CD pipeline fails with the error: 'Model file not found'. What is the most likely cause?
AThe model training step did not save the model file to the expected location.
BThe deployment script has a syntax error causing failure.
CThe data validation step failed and stopped the pipeline.
DThe model evaluation metrics were too low.
Attempts:
2 left
💡 Hint
Consider what the deployment step needs from previous steps.
Best Practice
expert
3:00remaining
Best practice for versioning in ML CI/CD pipelines
Which versioning strategy is best practice for managing ML models and data in CI/CD pipelines?
AOnly version the code; data and models do not need versioning.
BUse semantic versioning for code and separate versioning for data and models with unique hashes.
CVersion models by date only, ignoring code changes.
DUse the same version number for code, data, and models regardless of changes.
Attempts:
2 left
💡 Hint
Think about how to track changes in code, data, and models independently.