Professional Machine Learning Engineer Exam QuestionsBrowse all questions from this exam

Professional Machine Learning Engineer Exam - Question 19


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?

Show Answer
Correct Answer: B

Using Cloud Build, set an automated trigger to execute the unit tests when changes are pushed to your development branch. Cloud Build is specifically designed for continuous integration and delivery (CI/CD) on Google Cloud Platform, making it the most appropriate and efficient choice for automating the execution of unit tests with each new push to your development branch. It integrates smoothly with Cloud Source Repositories and supports running custom tasks like unit tests without the need for additional complexities.

Discussion

14 comments
Sign in to comment
maartenalexanderOption: B
Jun 22, 2021

B. 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

mousseUwUOption: B
Oct 19, 2021

B makes sense because of this: https://cloud.google.com/architecture/architecture-for-mlops-using-tfx-kubeflow-pipelines-and-cloud-build#cicd_architecture

mousseUwU
Oct 19, 2021

The image explains a lot

Danny2021Option: B
Sep 8, 2021

Easy one, B, Cloud Build is the tool for CI/CD.

morgan62Option: B
Apr 7, 2022

B it is.

Sum_SumOption: B
Nov 14, 2023

B is the only sensible answer as its a feature of CloudBuild everything else is the delusions of a madmen

GCP72Option: B
Aug 15, 2022

Correct answer is "B"

EFIGOOption: B
Nov 24, 2022

B is the Google-recommended best practice.

wish0035Option: B
Dec 15, 2022

ans: B

enghabethOption: B
Feb 7, 2023

Because it is the most automatic of the options

M25Option: B
May 9, 2023

Went with B

Scipione_Option: B
May 18, 2023

Cloud Build is the best choice but the other answers are feasible.

SamuelTschOption: B
Jul 7, 2023

A, C, D need addiontal maunal tasks. B is correct.

PhilipKokuOption: B
Jun 6, 2024

B. Cloud Build.

bludwOption: B
Jun 27, 2024

B: No need of any Pub/Sub stuff