Google Cloud Professional Machine Learning Engineer — Question 216

Your team frequently creates new ML models and runs experiments. Your team pushes code to a single repository hosted on Cloud Source Repositories. You want to create a continuous integration pipeline that automatically retrains the models whenever there is any modification of the code. What should be your first step to set up the CI pipeline?

Answer options

Correct answer: B

Explanation

The correct answer is B because configuring a Cloud Build trigger with the event set as 'Push to a branch' allows the CI pipeline to automatically react to any changes made in the codebase. Option A is incorrect because 'Pull Request' events do not cover all modifications directly to the branch. Options C and D are not suitable as Cloud Functions do not directly establish a CI pipeline for regular code changes.