ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 109 - Professional Cloud DevOps Engineer discussion

Report
Export

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 thai 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?

Choose 2 answers

A.
Create a trigger on the Cloud Build job Set the repository event setting to Pull request'
Answers
A.
Create a trigger on the Cloud Build job Set the repository event setting to Pull request'
B.
Add the owners file to the Included files filter on the trigger
Answers
B.
Add the owners file to the Included files filter on the trigger
C.
Create a trigger on the Cloud Build job Set the repository event setting to Push to a branch
Answers
C.
Create a trigger on the Cloud Build job Set the repository event setting to Push to a branch
D.
Configure a branch protection rule for the main branch on the repository
Answers
D.
Configure a branch protection rule for the main branch on the repository
E.
Enable the Approval option on the trigger
Answers
E.
Enable the Approval option on the trigger
Suggested answer: C, D

Explanation:

The best options for creating a CI/CD pipeline in Cloud Build to build an application container image and ensuring that production image builds are only run against the main branch and that the change control team approves all pushes to the main branch are to create a trigger on the Cloud Build job, set the repository event setting to Push to a branch, and configure a branch protection rule for the main branch on the repository. A trigger is a resource that starts a build when an event occurs, such as a code change. By creating a trigger on the Cloud Build job and setting the repository event setting to Push to a branch, you can ensure that the image build is only run when code is pushed to a specific branch, such as the main branch. A branch protection rule is a rule that enforces certain policies on a branch, such as requiring reviews, status checks, or approvals before merging code. By configuring a branch protection rule for the main branch on the repository, you can ensure that the change control team approves all pushes to the main branch.

asked 18/09/2024
R. M.
33 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first