An MLOps team is implementing a CI/CD pipeline for a TensorFlow model on Vertex AI. The model training job takes 2 hours and produces a SavedModel. The team wants to automatically trigger a new pipeline run whenever a change is pushed to the 'main' branch of their source repository. The pipeline should include training, evaluation, and if metrics exceed a threshold, deploy the model to a Vertex AI endpoint. Which trigger configuration should they use?
Trap 1: Use Eventarc to listen for Cloud Source Repository push events and…
This is possible but not the simplest; Cloud Build is more straightforward for CI/CD.
Trap 2: Use an Artifact Registry trigger to detect new model images and…
Artifact Registry triggers are for container images, not source code changes.
Trap 3: Set up a Cloud Scheduler job that runs every 2 hours and triggers a…
Cloud Scheduler is for scheduled, not event-driven triggers.
- A
Use Eventarc to listen for Cloud Source Repository push events and invoke a Cloud Run service that starts the pipeline.
Why wrong: This is possible but not the simplest; Cloud Build is more straightforward for CI/CD.
- B
Use an Artifact Registry trigger to detect new model images and then start the pipeline.
Why wrong: Artifact Registry triggers are for container images, not source code changes.
- C
Set up a Cloud Scheduler job that runs every 2 hours and triggers a Vertex AI Pipeline run.
Why wrong: Cloud Scheduler is for scheduled, not event-driven triggers.
- D
Configure a Cloud Build trigger that watches the 'main' branch of Cloud Source Repositories; in the build config, use steps to run the pipeline via the Vertex AI API.
Cloud Build triggers are designed for source code events and can orchestrate ML pipelines.