Topic 1 Question 108
2 つ選択You are creating a CI/CD pipeline in Cloud Build to build an application container image. The application code is stored in GitHub. Your company requires that production image builds are only run against the main branch and that the change control team approves all pushes to the main branch. You want the image build to be as automated as possible. What should you do?
Create a trigger on the Cloud Build job. Set the repository event setting to ‘Pull request’.
Add the OWNERS file to the Included files filter on the trigger.
Create a trigger on the Cloud Build job. Set the repository event setting to ‘Push to a branch’
Configure a branch protection rule for the main branch on the repository.
Enable the Approval option on the trigger.
ユーザの投票
コメント(6)
CD is the correct answer ,This will ensure that the image build is only triggered when a push is made to the main branch, and that the push is approved by the change control team.
Explanation:
Option C: Setting the repository event setting to ‘Push to a branch’ will trigger the Cloud Build job whenever a push is made to any branch in the repository. This is necessary because you want the image build to be triggered when a push is made to the main branch. Option D: Configuring a branch protection rule for the main branch on the repository will require that all pushes to the main branch be approved by the change control team. This is necessary to ensure that only approved changes are made to the main branch, which will then trigger the image build.
👍 4ManishKS2023/10/01- 正解だと思う選択肢: CD
A push event to branches(including main) can then trigger an automated image build. Enabling branch protection will enforce a pull request, and it then involve ppl to review.
👍 2lelele20232023/11/02 - 正解だと思う選択肢: CD
Answer should be CD.
👍 1nhiguchi2023/10/21
シャッフルモード