Google Cloud Professional Cloud Developer — Question 111
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?
Answer options
- A. Use Spinnaker to automate building container images from code based on Git tags.
- B. Use Cloud Build to automate building container images from code based on Git tags.
- C. Use Spinnaker to automate deploying container images to the production environment.
- D. Use Cloud Build to automate building container images from code based on forked versions.
Correct answer: B
Explanation
The correct answer is B because Cloud Build is specifically designed for automating the build process, including creating container images from code based on Git tags. Option A is incorrect as Spinnaker focuses on deployment rather than building images. Option C is also wrong because it pertains to deployment rather than the pre-deployment build process. Option D is not ideal since it addresses forked versions, which are not necessary for identifying bugs in the main codebase.