nerdexam
GoogleGoogle

PROFESSIONAL-CLOUD-DEVELOPER · Question #245

PROFESSIONAL-CLOUD-DEVELOPER Question #245: Real Exam Question with Answer & Explanation

The correct answer is B: Create a build trigger that runs the build file in response to a repository code being pushed to the. https://cloud.google.com/build/docs/triggers Cloud Build uses build triggers to enable CI/CD automation. You can configure triggers to listen for incoming events, such as when a new commit is pushed to a repository or when a pull request is initiated, and then automatically execu

Implementing CI/CD Pipelines

Question

You are developing a new web application using Cloud Run and committing code to Cloud Source Repositories. You want to deploy new code in the most efficient way possible. You have already created a Cloud Build YAML file that builds a container and runs the following command: gcloud run deploy. What should you do next?

Options

  • ACreate a Pub/Sub topic to be notified when code is pushed to the repository. Create a Pub/Sub
  • BCreate a build trigger that runs the build file in response to a repository code being pushed to the
  • CCreate a webhook build trigger that runs the build file in response to HTTP POST calls to the
  • DCreate a Cron job that runs the following command every 24 hours: gcloud builds submit.

Explanation

https://cloud.google.com/build/docs/triggers Cloud Build uses build triggers to enable CI/CD automation. You can configure triggers to listen for incoming events, such as when a new commit is pushed to a repository or when a pull request is initiated, and then automatically execute a build when new events come in. You can also configure triggers to build code on any changes to your source repository or only on changes that match certain criteria.

Topics

#CI/CD#Cloud Build#Automated Deployment#Cloud Source Repositories

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-DEVELOPER PracticeBrowse All PROFESSIONAL-CLOUD-DEVELOPER Questions