Which of the following lists the ML lifecycle stages in the correct order?
Think about what you need before training a model and what happens after deployment.
The ML lifecycle starts with collecting data, then training the model, deploying it, and finally monitoring its performance.
Given the following Python code snippet that calculates accuracy, what is the output?
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}")
Count how many predictions match the true labels and divide by total.
4 out of 5 predictions are correct, so accuracy is 0.8.
Which option shows the correct sequence of steps to deploy a machine learning model in production?
Think about preparing the model first, then automating deployment, then monitoring.
First, package the model (containerize), then automate deployment (CI/CD), deploy it, and finally monitor.
A deployed ML model suddenly shows a drop in accuracy. Which is the most likely cause?
Think about what can change in data after deployment.
Data drift means new data is different from training data, causing accuracy to drop.
Which practice best supports continuous integration (CI) in the ML lifecycle?
CI means automating checks to catch problems early.
Automating tests for all ML pipeline parts ensures reliable integration and faster feedback.