Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam Professional Cloud DevOps Engineer topic 1 question 21 discussion

Actual exam question from Google's Professional Cloud DevOps Engineer
Question #: 21
Topic #: 1
[All Professional Cloud DevOps Engineer Questions]

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?

  • A. Reference the image digest in the source control tag.
  • B. Supply the source control tag as a parameter within the image name.
  • C. Use Cloud Build to include the release version tag in the application image.
  • D. Use GCR digest versioning to match the image to the tag in source control.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
francisco_guerra
Highly Voted 2 years, 10 months ago
Ans C Cloud Build provides the following default substitutions: $TAG_NAME: build.Source.RepoSource.Revision.TagName
upvoted 22 times
cetanx
2 years, 7 months ago
OK but doesn't it make more sense to use this $TAG to include the release version tag in the application image? I would go with B.
upvoted 5 times
cetanx
2 years, 7 months ago
Sorry, I meant "to use this $TAG as a parameter within the image name?"
upvoted 2 times
...
danchoif2
2 years, 5 months ago
Agree. Cloud Build provides a variable for the tag, when we push the image, we must supply the variable to tag the image.
upvoted 2 times
...
...
...
devopsbatch
Highly Voted 2 years, 10 months ago
C inside cloudbuil.yml file can include release version
upvoted 5 times
...
BleHi
Most Recent 1 month, 3 weeks ago
Selected Answer: D
imho D cause Using GCR digest versioning involves using the SHA256 digest of the image as the unique identifier for the image. This ensures that the image can be reliably referenced and identified regardless of any tags that may be applied to it.
upvoted 1 times
...
jomonkp
4 months, 3 weeks ago
option C
upvoted 1 times
...
JonathanSJ
1 year, 3 months ago
Selected Answer: C
Both option B and C are valid ways to ensure that a specific version of an application is deployed based on the release version tagged in source control, but option C is likely to be the more robust and flexible solution for managing your application deployments. With option B, Supply the source control tag as a parameter within the image name, you have to manually include the source control tag when you push the image to GCR. This can make it more prone to human error and also could require more manual work to keep track of the different versions and their correspondance with the codebase. On the other hand, option C, Use Cloud Build to include the release version tag in the application image, allows you to automate the process of adding the release version tag to the application image during the build process. This can make it easier to track the different versions of your application and their association with the codebase. Additionally, Cloud Build allows you to automate different steps of the build and deployment process, such as building, testing and deploying the images, making it easier to manage and keep track of your deployments.
upvoted 4 times
...
floppino
1 year, 4 months ago
Selected Answer: C
Ans: C Exam passed and taken on 19/12/2022, 50/50 from this dump without buying the full access and looking for 'devops' word here: https://www.examtopics.com/discussions/google/1/
upvoted 1 times
...
GCP72
1 year, 8 months ago
Selected Answer: C
The correct answer is C
upvoted 2 times
...
[Removed]
1 year, 10 months ago
C should be right. https://cloud.google.com/build/docs/build-push-docker-image#build_an_image_using_a_build_config_file
upvoted 2 times
...
nuthanj800
1 year, 10 months ago
C is a right option
upvoted 2 times
...
meetplanet
2 years, 4 months ago
I go for B https://cloud.google.com/container-registry/docs/pushing-and-pulling
upvoted 2 times
...
alaahakim
2 years, 4 months ago
Ans: C
upvoted 3 times
...
guruguru
2 years, 10 months ago
C. tag your images with the sourced code release version.
upvoted 3 times
...
JuanitoNN
2 years, 10 months ago
I think is B, is the normal process in this cases
upvoted 1 times
JuanitoNN
2 years, 10 months ago
https://cloud.google.com/container-registry/docs/pushing-and-pulling
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...