Question 19 of 280
Single answerYou have written unit tests for a Kubeflow Pipeline that require custom libraries. You want to automate the
execution of unit tests with each new push to your development branch in Cloud Source Repositories. What should
you do?
AWrite a script that sequentially performs the push to your development branch and executes the unit tests on
Cloud Run.
✓BUsing Cloud Build, set an automated trigger to execute the unit tests when changes are pushed to your
development branch.
CSet 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.
DSet 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.
✓
Correct Answer: B
Using Cloud Build, set an automated trigger to execute the unit tests when changes are pushed to your development branch.
▥
Explanation
The correct answer is highlighted above. Review the wording carefully, then use the next question to continue building your understanding of Google certification topics.