exam questions

Exam Professional Cloud DevOps Engineer All Questions

View all questions & answers for the Professional Cloud DevOps Engineer exam

Exam Professional Cloud DevOps Engineer topic 1 question 142 discussion

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

You are investigating issues in your production application that runs on Google Kubernetes Engine (GKE). You determined that the source of the issue is a recently updated container image, although the exact change in code was not identified. The deployment is currently pointing to the latest tag. You need to update your cluster to run a version of the container that functions as intended. What should you do?

  • A. Create a new tag called stable that points to the previously working container, and change the deployment to point to the new tag.
  • B. Alter the deployment to point to the sha256 digest of the previously working container.
  • C. Build a new container from a previous Git tag, and do a rolling update on the deployment to the new container.
  • D. Apply the latest tag to the previous container image, and do a rolling update on the deployment.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
alpha_canary
8 months, 2 weeks ago
Selected Answer: B
https://cloud.google.com/kubernetes-engine/docs/concepts/about-container-images#disadvantages_of_image_tags Because the code change is not known, it may be possible that the image was updated with same tag and now it's not working, so pointing using the tag won't solve the issue as it will always point to the latest digest sha256 (which is faulty). So we must point the deployment to the sha256 digest of the previously working container.
upvoted 1 times
...
Xoxoo
8 months, 2 weeks ago
Selected Answer: B
Using the SHA256 digest ensures that you specifically deploy the exact version of the container that was previously working as intended, regardless of any changes made to the latest tag.
upvoted 1 times
...
xhilmi
10 months, 3 weeks ago
Selected Answer: B
To update your Google Kubernetes Engine (GKE) cluster to run a version of the container that functions as intended, despite the unknown change in the latest container image, the recommended approach is (option B). Alter the deployment to point to the sha256 digest of the previously working container. Using the sha256 digest provides a precise and immutable reference to a specific version of the container image, ensuring that the exact image that was known to work is deployed. This approach eliminates any ambiguity associated with using tags like "latest" and provides a reliable way to rollback to a known-good state. By referencing the sha256 digest, you maintain control over the version of the container image deployed in the cluster and can effectively address issues arising from unanticipated changes in the latest tag.
upvoted 1 times
...
nqthien041292
11 months ago
Selected Answer: B
Vote B
upvoted 1 times
...
lelele2023
12 months ago
Selected Answer: B
This question looks to tease out the knowledge of tag vs digest while deploying containers. The best approach is to figure out the previously functional digest and apply to deployment. Tag is mutable, using a tag like latest in deployment is confusing and prone to cause deployment inconsistency. https://cloud.google.com/kubernetes-engine/docs/concepts/about-container-images
upvoted 3 times
...
koo_kai
1 year ago
Selected Answer: B
https://cloud.google.com/kubernetes-engine/docs/concepts/about-container-images
upvoted 3 times
...
activist
1 year ago
Answer D seems correct. https://cloud.google.com/kubernetes-engine/docs/how-to/updating-apps
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago