
Answer-first summary for fast verification
Answer: Create a trigger in Cloud Build and enable require approval before build executes.
Option D is correct because Cloud Build allows triggers to be set up that remain in a pending state until approval is received, provided that the approval feature is enabled. Options A, B, and C are incorrect for the following reasons: Option A does not specify whether approval is enabled, Option B incorrectly suggests that approval can be specified in the cloudbuild.yaml file, and Option C incorrectly states that triggers are created in Cloud Source Repositories. The correct approach involves setting up the trigger in Cloud Build with the approval requirement enabled. Reference: [Google Cloud Build Documentation](https://cloud.google.com/build/docs/automating-builds/approve-builds)
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You are tasked with designing a CI/CD pipeline for a customer that utilizes cloud-native tools, specifically Cloud Source Repositories and Cloud Build. The customer requires that automated builds in the pipeline must be approved by a senior engineer before execution. How can this requirement be implemented?
A
Create a trigger in Cloud Build with the Webhook event.
B
In the Cloudbuild.yaml file, specify approval as a requirement.
C
Create a trigger in Cloud Source repository and enable require approval before build executes.
D
Create a trigger in Cloud Build and enable require approval before build executes.
No comments yet.