
Answer-first summary for fast verification
Answer: Create a trigger in Cloud Build and enable the requirement for approval before the build executes.
Option A is correct because Cloud Build allows triggers to be set up that remain in a pending state until approval is received, if the approval feature is enabled. Option B is incorrect because approval settings are not specified in the cloudbuild.yaml file. Option C is incorrect because triggers are managed within Cloud Build, not the Cloud Source repository. Option D is incorrect as it does not inherently specify whether approval is required or not. Reference: https://cloud.google.com/build/docs/automating-builds/approve-builds
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
When designing a CI/CD pipeline for a customer using cloud-native tools like Cloud Source Repositories and Cloud Build, how can you ensure that automated builds require approval from a senior engineer before execution?
A
Create a trigger in Cloud Build and enable the requirement for approval before the build executes.
B
In the Cloudbuild.yaml file, specify approval as a requirement.
C
Create a trigger in Cloud Source repository and enable the requirement for approval before build executes.
D
Create a trigger in Cloud Build with the Webhook event.
No comments yet.