
Answer-first summary for fast verification
Answer: Using Cloud Build, set an automated trigger to execute the unit tests when changes are pushed to your development branch.
The correct answer is B. Google Cloud recommends using Cloud Build for automating CI/CD processes, including running unit tests in Kubeflow Pipelines. With Cloud Build, you can set up an automated trigger to execute the unit tests whenever changes are pushed to your development branch. This method is more efficient and less complex compared to the other options.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You are working on a project with Kubeflow Pipelines and have written unit tests that require custom libraries. Your goal is to automate the execution of these unit tests every time there is a new push to your development branch in Cloud Source Repositories. What should you do to achieve this automation?
A
Write a script that sequentially performs the push to your development branch and executes the unit tests on Cloud Run.
B
Using Cloud Build, set an automated trigger to execute the unit tests when changes are pushed to your development branch.
C
Set up a Cloud Logging sink to a Pub/Sub topic that captures interactions with Cloud Source Repositories. Configure a Pub/Sub trigger for Cloud Run, and execute the unit tests on Cloud Run.
D
Set up a Cloud Logging sink to a Pub/Sub topic that captures interactions with Cloud Source Repositories. Execute the unit tests using a Cloud Function that is triggered when messages are sent to the Pub/Sub topic.
No comments yet.