0
0
MLOpsdevops~20 mins

ML lifecycle stages in MLOps - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
ML Lifecycle Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Identify the correct order of ML lifecycle stages

Which of the following lists the ML lifecycle stages in the correct order?

AModel Training, Data Collection, Model Deployment, Model Monitoring
BData Collection, Model Deployment, Model Training, Model Monitoring
CModel Deployment, Data Collection, Model Training, Model Monitoring
DData Collection, Model Training, Model Deployment, Model Monitoring
Attempts:
2 left
💡 Hint

Think about what you need before training a model and what happens after deployment.

💻 Command Output
intermediate
2:00remaining
Output of model evaluation metric calculation

Given the following Python code snippet that calculates accuracy, what is the output?

MLOps
from sklearn.metrics import accuracy_score
true_labels = [1, 0, 1, 1, 0]
predicted_labels = [1, 0, 0, 1, 0]
accuracy = accuracy_score(true_labels, predicted_labels)
print(f"Accuracy: {accuracy:.2f}")
AAccuracy: 1.00
BAccuracy: 0.60
CAccuracy: 0.80
DAccuracy: 0.40
Attempts:
2 left
💡 Hint

Count how many predictions match the true labels and divide by total.

🔀 Workflow
advanced
2:30remaining
Correct sequence of steps for model deployment

Which option shows the correct sequence of steps to deploy a machine learning model in production?

ADeploy to cloud, Containerize model, Monitor model, Set up CI/CD pipeline
BContainerize model, Set up CI/CD pipeline, Deploy to cloud, Monitor model
CMonitor model, Deploy to cloud, Containerize model, Set up CI/CD pipeline
DSet up CI/CD pipeline, Deploy to cloud, Containerize model, Monitor model
Attempts:
2 left
💡 Hint

Think about preparing the model first, then automating deployment, then monitoring.

Troubleshoot
advanced
2:00remaining
Troubleshoot model monitoring alert

A deployed ML model suddenly shows a drop in accuracy. Which is the most likely cause?

AData drift causing input data to differ from training data
BModel training completed successfully
CModel deployment pipeline is running smoothly
DMonitoring system is turned off
Attempts:
2 left
💡 Hint

Think about what can change in data after deployment.

Best Practice
expert
3:00remaining
Best practice for continuous integration in ML lifecycle

Which practice best supports continuous integration (CI) in the ML lifecycle?

AAutomate testing of data preprocessing, model training, and deployment scripts
BManually run model training after every code change
CDeploy models without version control to speed up delivery
DIgnore data validation to focus on faster model training
Attempts:
2 left
💡 Hint

CI means automating checks to catch problems early.