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

Exam Professional Cloud Architect All Questions

View all questions & answers for the Professional Cloud Architect exam

Exam Professional Cloud Architect topic 1 question 141 discussion

Actual exam question from Google's Professional Cloud Architect
Question #: 141
Topic #: 1
[All Professional Cloud Architect Questions]

Your company is developing a web-based application. You need to make sure that production deployments are linked to source code commits and are fully auditable. What should you do?

  • A. Make sure a developer is tagging the code commit with the date and time of commit.
  • B. Make sure a developer is adding a comment to the commit that links to the deployment.
  • C. Make the container tag match the source code commit hash.
  • D. Make sure the developer is tagging the commits with latest.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
djosani
Highly Voted 3 years, 3 months ago
Developer shouldn't tag or comment every commit with some specific data, like timestamps or something else. There might be an app version, but it's not mentioned. I'd go with C as it's an automated, error-less approach that answers the question.
upvoted 35 times
Urban_Life
2 years, 11 months ago
@Kopper2019- what do you think about ans C?
upvoted 2 times
...
...
victory108
Highly Voted 3 years, 3 months ago
C. Make the container tag match the source code commit hash.
upvoted 16 times
amxexam
3 years, 2 months ago
Not sure how the container tag match with the commit will help to audit, can someone explain?
upvoted 2 times
ynoot
3 years ago
if you got the commit hash from the container you can check the corresponding commit in the git repository. So the change, that was made and deployed into your environment can be audited.
upvoted 10 times
...
...
...
Sephethus
Most Recent 5 months, 1 week ago
Selected Answer: C
Linking Deployments to Commits: By tagging the container image with the source code commit hash, you create a direct link between the deployed container and the specific state of the source code. This provides a clear and auditable trail from the deployed application back to the exact source code that was used to build it. Auditability: Using the commit hash as the container tag ensures that each deployment can be traced back to a unique and immutable source code commit. This makes it easy to audit deployments and verify which version of the code is running in production.
upvoted 1 times
...
RaviRS
1 year, 2 months ago
Selected Answer: C
Can't fathom A. This is what ChatGPT says about A - I agree to this. Option A (tagging with date and time): Using date and time as tags may not be precise enough to identify the exact code version associated with a deployment, especially if multiple commits occurred within the same time window.
upvoted 1 times
...
BiddlyBdoyng
1 year, 5 months ago
Really C should say image? We have to seperate systems: source code repo & container repo. How do we link the two together? C is the only attempt at solving the problem.
upvoted 1 times
...
WFCheong
1 year, 10 months ago
Selected Answer: C
Agreed with C instead of A with them.
upvoted 1 times
...
surajkrishnamurthy
1 year, 11 months ago
Selected Answer: C
C is the correct answer
upvoted 1 times
...
KumarSelvaraj
2 years ago
Answer is C
upvoted 1 times
...
megumin
2 years ago
Selected Answer: C
C is ok
upvoted 2 times
...
Mahmoud_E
2 years, 1 month ago
Selected Answer: C
C is correct "By design, the Git commit hash is immutable and references a specific version of your software." as per https://cloud.google.com/architecture/best-practices-for-building-containers#tagging_using_the_git_commit_hash
upvoted 4 times
...
zellck
2 years, 2 months ago
Selected Answer: C
C is the answer. https://cloud.google.com/architecture/best-practices-for-building-containers#tagging_using_the_git_commit_hash You can use this commit hash as a version number for your software, but also as a tag for the Docker image built from this specific version of your software. Doing so makes Docker images traceable: because in this case the image tag is immutable, you instantly know which specific version of your software is running inside a given container.
upvoted 5 times
...
AzureDP900
2 years, 4 months ago
Every Git commit with timestamp A doesn't make since. C is right
upvoted 3 times
...
munnysh
2 years, 5 months ago
Selected Answer: C
No manual intervention is preferred in automatic deployments. Only automating the container tag to match the commit hash will be fully auditable with the help of the scm.
upvoted 4 times
...
ridyr
2 years, 6 months ago
Selected Answer: C
From: https://cloud.google.com/architecture/best-practices-for-building-containers Under: Tagging using the Git commit hash (bottom of page almost) "In this case, a common way of handling version numbers is to use the Git commit SHA-1 hash (or a short version of it) as the version number. By design, the Git commit hash is immutable and references a specific version of your software. You can use this commit hash as a version number for your software, but also as a tag for the Docker image built from this specific version of your software. Doing so makes Docker images traceable: because in this case the image tag is immutable, you instantly know which specific version of your software is running inside a given container."
upvoted 7 times
...
SCVinod
2 years, 9 months ago
It's got to be A. Option C talks about containers whereas there is no mention of containers in the question.
upvoted 4 times
...
[Removed]
2 years, 9 months ago
Selected Answer: C
I got similar question on my exam. Answered C.
upvoted 5 times
...
Narinder
2 years, 10 months ago
I think answer is A. In Git, tag is used to mark release points (v1.0, v2.0 and so on). You can tag the release based on the time stamp and using git show <tag-name> command, you can see the commit detailed history. Reference: https://git-scm.com/book/en/v2/Git-Basics-Tagging C could be the correct answer for the case if you are going with container based solution which is not mentioned anywhere in the question.
upvoted 5 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 ...