
Answer-first summary for fast verification
Answer: Utilize an Artifacts field in your build config file, indicating the bucket location and paths for one or more artifacts.
The correct approach is to use the Artifacts field in the build config file for specifying the storage location of non-container artifacts. The Images field is meant for Docker images to be pushed to Container Registry, not for general artifacts. The substitutions field is used for variable substitution at build time, and the Options field contains optional arguments like env, volumes, and secretEnv, not artifact storage details. For more information, refer to the Cloud Build documentation on build configurations.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
You are tasked with developing a serverless application using Cloud Build, with a requirement to store all non-container artifacts in Cloud Storage. How would you configure the build to meet this requirement?
A
Include an Images field in your build config file, specifying the bucket location and artifact paths.
B
Add a substitutions field in your build config file, detailing the bucket location and artifact paths.
C
Utilize an Artifacts field in your build config file, indicating the bucket location and paths for one or more artifacts.
D
Insert an Options field in your build config file, with the bucket location and artifact paths.