PROFESSIONAL-CLOUD-DEVELOPER · Question #139
Your team develops services that run on Google Kubernetes Engine. Your team's code is stored in Cloud Source Repositories. You need to quickly identify bugs in the code before it is deployed to produc
The correct answer is B. Use Cloud Build to automate building container images from code based on Git tags.. Cloud Build integrates natively with Cloud Source Repositories and can be configured to automatically trigger a build pipeline - including compiling code, running unit tests, and building container images - whenever a Git tag is pushed. This provides fast, automated feedback to d
Question
Your team develops services that run on Google Kubernetes Engine. Your team's code is stored in Cloud Source Repositories. You need to quickly identify bugs in the code before it is deployed to production. You want to invest in automation to improve developer feedback and make the process as efficient as possible. What should you do?
Options
- AUse Spinnaker to automate building container images from code based on Git tags.
- BUse Cloud Build to automate building container images from code based on Git tags.
- CUse Spinnaker to automate deploying container images to the production environment.
- DUse Cloud Build to automate building container images from code based on forked versions.
How the community answered
(43 responses)- A9% (4)
- B81% (35)
- C2% (1)
- D7% (3)
Explanation
Cloud Build integrates natively with Cloud Source Repositories and can be configured to automatically trigger a build pipeline - including compiling code, running unit tests, and building container images - whenever a Git tag is pushed. This provides fast, automated feedback to developers about bugs and failures before the image reaches the GKE production environment, fulfilling the requirement for efficient automation. Option A and C (Spinnaker) is a continuous delivery tool focused on deploying to environments, not on building or testing code - it does not help identify bugs early. Option D (forked versions) is not a standard CI trigger pattern and adds complexity without a clear quality-gate benefit tied to Git tags.
Topics
Community Discussion
No community discussion yet for this question.