
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 B are incorrect. There is nothing like a source repository config file. The images field and artifacts field in the build config file specify the docker images to be stored in the container registry (or artifact registry) and the non-container artifacts to be stored in Cloud storage respectively. Option C is incorrect because there is nothing like a source repository config file. 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.
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 non-container artifacts to be stored in Cloud Storage, to the source repository config file.
D
Add an images field, that specifies the docker images to be pushed to the Artifact registry, to the Cloud Build config file.
No comments yet.