
Answer-first summary for fast verification
Answer: Establish a Cloud Build trigger with 'manual invocation' as the event., Activate the Cloud Scheduler API and then create a Cloud Scheduler job.
To automate nightly builds for the staging branch, you should create a Cloud Build trigger with 'manual invocation' as the event (Option C) and then create a Cloud Scheduler job after enabling the Cloud Scheduler API (Option E). This approach ensures that the builds are triggered on schedule without manual intervention. Webhook events (Option A) and 'Push to a branch' triggers (Option B) are not suitable for scheduled builds. Additionally, triggers should be created in Cloud Build, not Cloud Scheduler (Option D).
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 merges daily changes from developers. Which TWO methods would you use to trigger these builds?
A
Set up a Cloud Build trigger using a webhook event.
B
Configure a Cloud Build trigger with 'Push to a branch' as the event.
C
Establish a Cloud Build trigger with 'manual invocation' as the event.
D
Create a trigger in Cloud Scheduler specifically for Cloud Build.
E
Activate the Cloud Scheduler API and then create a Cloud Scheduler job.
No comments yet.