PROFESSIONAL-MACHINE-LEARNING-ENGINEER · Question #70
You 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 Reposi
The correct answer is B. Using Cloud Build, set an automated trigger to execute the unit tests when changes are pushed. GCP recommends to use Cloud Build when building KubeFlow Pipelines. It's possible to run unit tests in Cloud Build. And, the others seems overly complex/unnecessary. https://cloud.google.com/architecture/architecture-for-mlops-using-tfx-kubeflow-pipelines-and- cloud-build#cicd_ar
Question
Options
- AWrite a script that sequentially performs the push to your development branch and executes the
- BUsing Cloud Build, set an automated trigger to execute the unit tests when changes are pushed
- CSet up a Cloud Logging sink to a Pub/Sub topic that captures interactions with Cloud Source
- DSet up a Cloud Logging sink to a Pub/Sub topic that captures interactions with Cloud Source
How the community answered
(50 responses)- A2% (1)
- B82% (41)
- C10% (5)
- D6% (3)
Explanation
GCP recommends to use Cloud Build when building KubeFlow Pipelines. It's possible to run unit tests in Cloud Build. And, the others seems overly complex/unnecessary. https://cloud.google.com/architecture/architecture-for-mlops-using-tfx-kubeflow-pipelines-and- cloud-build#cicd_architecture
Topics
Community Discussion
No community discussion yet for this question.