nerdexam
Google

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

Submitted by yaw92· Apr 18, 2026ML pipeline operationalization

Question

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 Repositories. What should you do?

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)
  • A
    2% (1)
  • B
    82% (41)
  • C
    10% (5)
  • D
    6% (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

#Cloud Build#CI/CD#Automated Testing#Kubeflow Pipelines

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-MACHINE-LEARNING-ENGINEER Practice