Professional Cloud Devops Engineer · Free Practice Question Medium

Question 4

As a language translation app company, your application images are built using Cloud Build and pushed to Google Container Registry (GCR). How can you specify a particular version of the app for deployment based on the release version tagged in source control when pushing the image?
  • A Incorporate the release version tag in the application image using Cloud Build.
  • B To align the image with the tag in source control, utilize GCR digest versioning.
  • C Make a reference to the image digest within the source control tag.
  • D Include the source control tag as a parameter in the image name.
Reveal correct answer

Correct answer: A

Explanation

This answer is correct because Cloud Build is a managed service that allows you to build, test, and deploy applications on Google Cloud Platform. When you use Cloud Build to build your application image, you can include the release version tag as a parameter in your build configuration file. This configuration file can be stored in source control, and Cloud Build can automatically detect changes to it and trigger a new build. Once the image is built, it can be pushed to GCR with the release version tag included in the image name. This makes it easy to identify and deploy a particular version of the application based on the release version tag. Therefore, by using Cloud Build to include the release version tag in the application image, you can easily specify a particular version of the app for deployment based on the release version tagged in source control.

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need