
Answer-first summary for fast verification
Answer: Establish a Cloud Build trigger with 'manual invocation' as the event., Activate the Cloud Scheduler API and set up a Cloud Scheduler job.
To automate nightly builds for the staging branch, you should: - **Option C**: Correctly use 'manual invocation' as the event in a Cloud Build trigger for scheduled builds. - **Option E**: After setting up the trigger in Cloud Build, creating a Cloud Scheduler job is necessary to execute the build at the specified time. Incorrect options include using webhook events or 'Push to a branch' for scheduled triggers, and creating triggers directly in Cloud Scheduler instead of Cloud Build. Reference: [Google Cloud Build Documentation](https://cloud.google.com/build/docs/automating-builds/create-scheduled-triggers).
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
As a DevOps Engineer, you're tasked with automating nightly builds for a staging branch that receives daily merges from various developer branches. Which two methods would you use to trigger these builds?
A
Set up a Cloud Build trigger with a webhook event.
B
Configure a Cloud Build trigger using 'Push to a branch' as the event.
C
Establish a Cloud Build trigger with 'manual invocation' as the event.
D
Utilize Cloud Scheduler to create a trigger for Cloud Build.
E
Activate the Cloud Scheduler API and set up a Cloud Scheduler job.
No comments yet.