Practice Test 1 | Google Cloud Certified Professional Cloud DevOps Engineer | Dumps | Mock Test
You are tasked with designing an automated CI pipeline for building and pushing images to Container Registry. In the current system, developers have to issue build commands after code is pushed to the test branch in the source repository.
What steps can you take to automate the build of the test branch with the least amount of management overhead?
A. Add a cloud build config file when code is pushed to the branch. Create a trigger in Cloud Source Repository and select the event “Push to a branch”
B. Add a cloud build config file when code is pushed to the branch. Create a trigger in Cloud Build and select the event “Push to a branch”
C. Add a cloud build config file when code is pushed to the branch. Create a trigger in Cloud Build and select the event “Pull request”
D. Create a cloud function that is triggered when code is committed to the cloud source repository.
Correct Answer: B
- Option A is incorrect, triggers are created in Cloud Build.
- Option B is CORRECT because the correct trigger is the “Push to a branch” event that will trigger a build when developers push code to their cloud source repository branch.
- Option C is incorrect, the requirement is automating the build when code is committed to the test branch, there was no mention of raising a pull request
- Option D is incorrect, it has a lot of management overhead.
Reference:
Comments are closed, but trackbacks and pingbacks are open.