QuestionQ101

VerifiedBuilding and implementing CI/CD pipelines, including continuous testing, for application, infrastructure, and machine learning workloads

You are building a CI/CD pipeline in Cloud Build to create an application container image. The application code is stored in GitHub. Your company requires that production image builds run only for the main branch and that the change control team approves every push to the main branch. You want to automate the image build as much as possible. What should you do?

Choose two
Explanation

A Cloud Build trigger configured for a push to the main branch automatically initiates builds only when commits are pushed to that branch. A GitHub branch protection rule can require pull requests and approving reviews before changes are merged into main, allowing the change control team to enforce approval while retaining automated builds. Cloud Build trigger approvals instead pause builds after invocation and do not govern approval of GitHub pushes.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!