
Answer-first summary for fast verification
Answer: Add an images field, that specifies the docker images to be pushed to the Artifact registry, to the Cloud Build config file.
Options A and D are incorrect because there is no such thing as a source repository config file. The correct approach involves using the images field in the Cloud Build config file to specify the docker images to be stored in the Artifact registry. Options B is incorrect for the same reason as A and D, and also because it mentions an artifacts field which is not relevant for this scenario. References: [Cloud Build Documentation](https://cloud.google.com/build/docs/build-config#images), [Artifact Registry Documentation](https://cloud.google.com/artifact-registry/docs/configure-cloud-build)
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
Your company has tasked you with setting up a Continuous Integration pipeline. When code is committed to the source repository, the pipeline will build docker containers to be pushed to Artifact Registry. How would you accomplish this?
A
Add an artifacts field, that specifies the docker images to be pushed to container registry, to the source repository config file
B
Add an options field, that specifies the non-container artifacts to be stored in Cloud Storage, to the source repository config file.
C
Add an images field, that specifies the docker images to be pushed to the Artifact registry, to the Cloud Build config file.
D
Add an images field, that specifies the non-container artifacts to be stored in Cloud Storage, to the source repository config file.