
Answer-first summary for fast verification
Answer: Use the digest of the Docker image.
To ensure the same Docker image is deployed across all environments, the image must be referenced immutably. Using the digest (option C) is the correct approach because each Docker image has a unique SHA256 digest that permanently identifies its exact content. Tags like 'latest' (A) or semantic versions (D) are mutable and can point to different images over time, risking inconsistencies. A unique image name (B) does not inherently solve the problem unless combined with another immutable identifier, which the digest already provides.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
How can you consistently identify the same Docker image across Development, Test, and Production environments when using Cloud Build for deployment?
A
Use the latest Docker image tag.
B
Use a unique Docker image name.
C
Use the digest of the Docker image.
D
Use a semantic version Docker image tag.
No comments yet.