
Answer-first summary for fast verification
Answer: Configure a Cloud Build trigger with the event set as 'Push to a branch'
The correct answer is B: 'Configure a Cloud Build trigger with the event set as Push to a branch'. This option is ideal because it ensures that the continuous integration pipeline is triggered automatically whenever new code is pushed to any branch in the Cloud Source Repositories. This setup allows for frequent integration of code changes and ensures the models are retrained whenever relevant code modifications occur. Compared to the other options, this is the most efficient and effective way to handle code updates and model retraining. Option A, 'Pull Request', is less ideal because it would only trigger on pull requests, possibly missing direct pushes. Options C and D involve using Cloud Functions, which might not scale well and could complicate the CI pipeline setup.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Your team frequently creates new ML models and runs experiments to improve their accuracy and performance. The team uses a single repository hosted on Cloud Source Repositories to manage and store the codebase for these models. You want to create a continuous integration (CI) pipeline that automatically retrains the models whenever there is any modification to the code. This automation aims to ensure that the latest changes are always tested with updated models. What should be your first step to set up the CI pipeline?
A
Configure a Cloud Build trigger with the event set as 'Pull Request'
B
Configure a Cloud Build trigger with the event set as 'Push to a branch'
C
Configure a Cloud Function that builds the repository each time there is a code change
D
Configure a Cloud Function that builds the repository each time a new branch is created
No comments yet.