PROFESSIONAL-CLOUD-DEVOPS-ENGINEER · Question #140
PROFESSIONAL-CLOUD-DEVOPS-ENGINEER Question #140: Real Exam Question with Answer & Explanation
The correct answer is B: Use Cloud Pub/Sub to trigger a Spinnaker pipeline.. Google Container Registry publishes Pub/Sub notifications to the gcr topic whenever an image is pushed. Using Cloud Pub/Sub to subscribe to these events and trigger a Spinnaker pipeline is the minimal-development-effort approach because it uses a native GCP integration without cu
Question
Your application images are built and pushed to Google Container Registry (GCR). You want to build an automated pipeline that deploys the application when the image is updated while minimizing the development effort. What should you do?
Options
- AUse Cloud Build to trigger a Spinnaker pipeline.
- BUse Cloud Pub/Sub to trigger a Spinnaker pipeline.
- CUse a custom builder in Cloud Build to trigger Jenkins pipeline.
- DUse Cloud Pub/Sub to trigger a custom deployment service running in Google Kubernetes Engine
Explanation
Google Container Registry publishes Pub/Sub notifications to the gcr topic whenever an image is pushed. Using Cloud Pub/Sub to subscribe to these events and trigger a Spinnaker pipeline is the minimal-development-effort approach because it uses a native GCP integration without custom code. Option A (Cloud Build triggering Spinnaker) requires configuring Cloud Build as an intermediary step. Option C (custom builder + Jenkins) introduces Jenkins, significantly increasing complexity. Option D (custom deployment service on GKE) requires building and maintaining a custom service, which maximizes development effort.
Topics
Community Discussion
No community discussion yet for this question.