How to Configure CI/CD for Automated Vertex AI Pipeline Retraining?
You developed a Vertex AI ML pipeline that consists of preprocessing and training steps and each set of steps runs on a separate custom Docker image. Your organization uses GitHub and GitHub Actions as CI/CD to run unit and integration tests. You need to automate the model retraining workflow so that it can be initiated both manually and when a new version of the code is merged in the main branch. You want to minimize the steps required to build the workflow while also allowing for maximum flexibility. How should you configure the CI/CD workflow?
Community Votes
59% of anonymous learners picked answer D. Votes are pick records left by other test-takers — they are not the verified answer.
Community Insight
The exam tests your ability to architect an optimal CI/CD pipeline for ML workloads, where the common trap is assuming that consolidating all steps into GitHub Actions inherently minimizes operational overhead.
This question evaluates best practices for integrating GitHub Actions with Google Cloud services to automate Vertex AI model retraining workflows while balancing simplicity and scalability. Community consensus favors leveraging Cloud Build for container operations to ensure robustness and flexibility beyond native GitHub Actions capabilities.
Many candidates select Option C because it appears simpler by handling image building directly in GitHub Actions, but this overlooks runner resource limits, lack of optimized caching, and reduced long-term scalability for production ML artifacts.
Community Discussion (18 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Why the Answer Is Correct
Option D correctly delegates Docker image building and pushing to Artifact Registry to Cloud Build, a purpose-built managed service optimized for secure, scalable container operations in Google Cloud. Triggering Cloud Build from GitHub Actions maintains tight repository-level control for testing while offloading compute-intensive packaging tasks to a specialized platform. This hybrid architecture aligns with Google’s recommended MLOps patterns, ensuring Vertex AI Pipelines launch uses consistently versioned images without exhausting runner timeouts [Comment 2, 15].Why the Other Options Are Wrong
Option A bypasses GitHub Actions entirely for initial triggers, breaking the seamless merge-to-main workflow the organization already standardized. Option B incorrectly proposes using Cloud Run for stateless execution rather than container building, which fundamentally misaligns with CI/CD pipeline design. Option C, while straightforward, forces shared GitHub runners to handle resource-heavy Docker builds, risking performance bottlenecks and limiting future flexibility for complex training dependencies [Comment 4, 6, 14].Community Comment Notes
The discussion heavily revolves around immediate setup simplicity versus enterprise-grade scalability, with many initially leaning toward Option C before reviewing architectural trade-offs. Multiple contributors note that while GitHub Actions supports container builds natively, it lacks the advanced caching, parallelization, and IAM integrations that Cloud Build delivers seamlessly [Comment 2, 9, 11]. Ultimately, the voting shift toward D reflects a deeper understanding of how managed build services integrate more reliably with Vertex AI Pipelines at scale.Official Reference
Exam Strategy
When comparing CI/CD architectures for Google Cloud ML workloads, prioritize dedicated managed services like Cloud Build for container operations over self-hosted runners to guarantee scalability and security. Always interpret "minimize steps" as reducing long-term maintenance overhead rather than just initial configuration count, especially when "maximum flexibility" is explicitly required.
Related Analysis
Practice All PMLE Questions
Access 65 questions with complete answers and detailed explanations.
View Full PMLE Practice Test →