
Answer-first summary for fast verification
Answer: Include an images field in the Cloud Build config file, specifying the Docker images to be pushed to the Artifact Registry.
The correct approach is to add an images field in the Cloud Build config file, which specifies the Docker images to be pushed to the Artifact Registry. This is because the Cloud Build config file is the appropriate place to define such specifications, not the source repository config file. The other options are incorrect as they either refer to non-existent configurations or misplace the specification fields.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Your company has assigned you the task of setting up a Continuous Integration pipeline. This pipeline is designed to build Docker containers upon code commit to the source repository, which are then to be pushed to Artifact Registry. How would you achieve this?
A
Include an images field in the Cloud Build config file, specifying the Docker images to be pushed to the Artifact Registry.
B
Include an artifacts field in the source repository config file, specifying the Docker images to be pushed to the container registry.
C
Include an options field in the source repository config file, specifying the non-container artifacts to be stored in Cloud Storage.
D
Include an images field in the source repository config file, specifying the non-container artifacts to be stored in Cloud Storage.
No comments yet.