
Answer-first summary for fast verification
Answer: Include an images field in the Cloud Build config file that specifies Docker images for pushing to the Artifact Registry.
The correct approach is to add an images field in the Cloud Build config file that 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, which does not exist in this context. The images field is specifically for Docker images intended for the Artifact Registry, while the artifacts field is for non-container artifacts meant for Cloud Storage.
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 options field in the source repository config file that specifies non-container artifacts for storage in Cloud Storage.
B
Include an artifacts field in the source repository config file that specifies Docker images for pushing to the container registry.
C
Include an images field in the Cloud Build config file that specifies Docker images for pushing to the Artifact Registry.
D
Include an images field in the source repository config file that specifies non-container artifacts for storage in Cloud Storage.
No comments yet.