Topic 1 Question 141
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?
Make sure a developer is tagging the code commit with the date and time of commit.
Make sure a developer is adding a comment to the commit that links to the deployment.
Make the container tag match the source code commit hash.
Make sure the developer is tagging the commits with latest.
ユーザの投票
コメント(17)
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.
👍 31djosani2021/08/26C. Make the container tag match the source code commit hash.
👍 13victory1082021/08/28- 正解だと思う選択肢: 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."
👍 7ridyr2022/05/04
シャッフルモード