Domain 5: Automating and Orchestrating ML Pipelines
This lesson covers 3 exam topics: Building ML Pipelines, Validation and Consistent Preprocessing, Retraining and CI/CD/CT. Each topic has a short video, then the notes: key facts, exam traps and what to check in the official docs.
1. Building ML Pipelines
Central question: Which pipeline service should orchestrate the workflow?
Facts
| Service | Fits |
|---|---|
| Agent Platform Pipelines | Serverless ML pipelines in Kubeflow Pipelines or TFX; lineage and Experiments built in |
| Managed Service for Apache Airflow (formerly Cloud Composer) | General workflow orchestration across many services, existing Airflow DAGs |
| Ray on Agent Platform | Distributed Python workloads (training, tuning, data processing) |
| Kubeflow Pipelines on GKE | Self-managed KFP when you must run it yourself |
- Pipelines can be built from prebuilt Google Cloud components or custom components, from templates or custom code; pipeline runs record ML Metadata lineage (Pipelines introduction).
- Pipeline features include caching, retries, failure policies, schedules and Pub/Sub triggers.
Exam traps
- Airflow for an ML pipeline that needs artifact lineage. Agent Platform Pipelines records it.
- Running KFP yourself when serverless Pipelines meets the need.
2. Validation and Consistent Preprocessing
Central question: How do pipelines validate data and models and keep preprocessing consistent?
Facts (general MLOps practice; products verified)
- Data validation checks schema, ranges and distributions before training (for example TFX ExampleValidator / TensorFlow Data Validation) and stops the pipeline on anomalies.
- Model validation compares the candidate with the current model on the same test set and blocks deployment if it isn't better (a gate step).
- Consistent preprocessing: share one transformation definition (TFX Transform, BigQuery ML TRANSFORM, Feature Store features) for training and serving to prevent training-serving skew.
Exam traps
- Deploying every retrained model automatically. Gate on evaluation.
- Separate preprocessing code for serving. Causes skew.
3. Retraining and CI/CD/CT
Central question: When should models retrain, and how do CI/CD/CT pipelines deploy them?
Facts (MLOps architecture guidance; products verified)
- Retraining policies: on a schedule, on new data arrival, or on performance or drift triggers from monitoring.
- MLOps levels (Google architecture guidance): level 0 manual, level 1 automated continuous training (CT) pipelines, level 2 CI/CD automation of the pipeline itself (MLOps continuous delivery and automation).
- Cloud Build runs CI/CD: test code, build containers, compile and deploy pipelines; pipelines can be triggered by schedules or Pub/Sub.
Exam traps
- Retraining on a fixed schedule only when drift alerts exist.
- CI/CD for code but manual model deployment. CT automates retraining.
References
- PMLE exam guide — checked Oct 26, 2026
- Pipelines introduction — checked Oct 26, 2026
- Managed Airflow overview — checked Oct 26, 2026
- MLOps: continuous delivery and automation pipelines — checked Oct 26, 2026
Check your understanding
Serverless KFP?Show answerHide answer
Answer
Agent Platform Pipelines.Stop a run on schema anomalies?Show answerHide answer
Answer
Data validation step.Automate pipeline builds and tests?Show answerHide answer
Answer
Cloud Build (CI/CD).Existing Airflow DAGs?Show answerHide answer
Answer
Managed Service for Apache Airflow.Block a worse model?Show answerHide answer
Answer
Model evaluation gate.