Google Cloud Professional Cloud DevOps Engineer — Question 21

Your application images are built using Cloud Build and pushed to Google Container Registry (GCR). You want to be able to specify a particular version of your application for deployment based on the release version tagged in source control. What should you do when you push the image?

Answer options

Correct answer: C

Explanation

The correct answer is C because using Cloud Build to include the release version tag in the application image allows for clear versioning based on source control. Option A is incorrect because referencing the image digest does not directly relate to tagging in source control. Option B is not correct since supplying the source control tag as a parameter in the image name does not guarantee proper version control. Option D is also incorrect because GCR digest versioning does not directly associate the image with the source control tag.