Which stage in a CI/CD pipeline for ML is responsible for automatically retraining the model when new data arrives?
Think about which stage updates the model with fresh data.
The continuous training stage automatically retrains the ML model when new data is available, ensuring the model stays accurate over time.
What is the output of the command mlflow pipelines status --pipeline-name churn-prediction if the pipeline is currently running?
mlflow pipelines status --pipeline-name churn-prediction
Look for the status message indicating the pipeline is active.
The command shows the current status of the specified pipeline. If it is running, the output will confirm that.
Which YAML snippet correctly configures a GitHub Actions workflow to trigger model retraining on every push to the main branch?
name: ML Retrain
on:
push:
branches:
- main
jobs:
retrain:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run retrain script
run: python retrain.pyLook for the event that triggers on code push to the main branch.
Option C correctly triggers the workflow on every push to the main branch. Other options trigger on pull requests, tags, or scheduled times.
You have a CI/CD pipeline that builds and deploys an ML model. The build succeeds but deployment fails with the error: Permission denied: unable to push to model registry. What is the most likely cause?
Consider access rights needed for deployment.
The error indicates the pipeline cannot push the model due to missing permissions. Fixing access rights resolves this.
Arrange the following steps in the correct order for a typical CI/CD pipeline for ML models:
- Deploy model to production
- Run automated tests on model code
- Train model with new data
- Build model artifact
Think about testing before training, then building, then deploying.
The correct order is to first run tests on code, then train the model, build the artifact, and finally deploy it.