Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Professional Machine Learning Engineer All Questions

View all questions & answers for the Professional Machine Learning Engineer exam

Exam Professional Machine Learning Engineer topic 1 question 166 discussion

Actual exam question from Google's Professional Machine Learning Engineer
Question #: 166
Topic #: 1
[All Professional Machine Learning Engineer Questions]

You developed a Vertex AI ML pipeline that consists of preprocessing and training steps and each set of steps runs on a separate custom Docker image. Your organization uses GitHub and GitHub Actions as CI/CD to run unit and integration tests. You need to automate the model retraining workflow so that it can be initiated both manually and when a new version of the code is merged in the main branch. You want to minimize the steps required to build the workflow while also allowing for maximum flexibility. How should you configure the CI/CD workflow?

  • A. Trigger a Cloud Build workflow to run tests, build custom Docker images, push the images to Artifact Registry, and launch the pipeline in Vertex AI Pipelines.
  • B. Trigger GitHub Actions to run the tests, launch a job on Cloud Run to build custom Docker images, push the images to Artifact Registry, and launch the pipeline in Vertex AI Pipelines.
  • C. Trigger GitHub Actions to run the tests, build custom Docker images, push the images to Artifact Registry, and launch the pipeline in Vertex AI Pipelines.
  • D. Trigger GitHub Actions to run the tests, launch a Cloud Build workflow to build custom Docker images, push the images to Artifact Registry, and launch the pipeline in Vertex AI Pipelines.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
pikachu007
Highly Voted 10 months, 3 weeks ago
Selected Answer: C
Considering the goal of minimizing steps while allowing for flexibility, option C - "Trigger GitHub Actions to run the tests, build custom Docker images, push the images to Artifact Registry, and launch the pipeline in Vertex AI Pipelines" appears to be the most straightforward approach. It leverages GitHub Actions for testing and image building, then directly triggers the Vertex AI Pipelines, simplifying the workflow and reducing unnecessary services involved in the process.
upvoted 5 times
...
bfdf9c8
Most Recent 3 months, 3 weeks ago
Selected Answer: A
The correct answer is a. I think is tricky because D is posible, but add one step. and we want to minimize the steps.
upvoted 2 times
...
AzureDP900
5 months, 1 week ago
option D might seem appealing at first, but it adds unnecessary complexity and makes it more challenging to manage the state of your pipeline. Option C, on the other hand, provides a simpler and more straightforward approach to automating your model retraining workflow using GitHub Actions.
upvoted 1 times
...
AnnaR
7 months ago
Selected Answer: D
Not A: does not leverage the integration capabilities of GitHub Actions with GitHub for initial testing, which is more efficient when managing repo triggers and workflows directly from Github. Not B: Cloud Run for running stateless containers, not for CI/CD tasks like building and pushing images Not C: building docker images directly in github Actions can encounter limits in terms of build performance and resource availability, esp. for complex images
upvoted 4 times
...
gscharly
7 months, 1 week ago
Selected Answer: D
agree with guilhermebutzke
upvoted 1 times
...
fitri001
7 months, 1 week ago
Selected Answer: D
Security: GitHub Actions are ideal for running unit and integration tests within the controlled environment of your GitHub repository. This keeps your test code separate from the production pipeline code running in Cloud Build. Scalability and Resource Management: Cloud Build is a managed service specifically designed for building container images in Google Cloud. It offers better resource management and scalability for building Docker images compared to Cloud Run, which is primarily designed for running stateless containers. Flexibility: This configuration allows for independent scaling of test execution (in GitHub Actions) and image building (in Cloud Build). You can modify the workflow files in each platform independently without affecting the other.
upvoted 1 times
fitri001
7 months, 1 week ago
A & B. Cloud Run for Image Building: While Cloud Run can build Docker images, it's not its primary function. Cloud Build is a more robust and scalable solution for container image building in Google Cloud. C. Building Images in GitHub Actions: GitHub Actions might have limitations on resource allocation and might not be suitable for building complex Docker images, especially if they have large dependencies.
upvoted 1 times
...
...
pinimichele01
7 months, 3 weeks ago
Selected Answer: D
i agree with guilhermebutzke
upvoted 1 times
...
guilhermebutzke
9 months, 3 weeks ago
Selected Answer: D
Choose D: GitHub Actions should be used to run tests and initiate the workflow upon code merges. Then, Cloud Build is a suitable service for building Docker images and handling the subsequent steps of pushing the images to Artifact Registry. So, Vertex AI Pipelines can be launched as part of the Cloud Build workflow for model retraining. In A Using Cloud Build directly from GitHub Actions would bypass GitHub Actions' capabilities for triggering and testing. In B, Cloud Run for building Docker images can introduce potential compatibility issues with Vertex AI Pipelines. In C,  Skipping Cloud Build for image building limits the workflow's portability and integration with Vertex AI. https://cloud.google.com/vertex-ai/docs/pipelines/introduction https://medium.com/@cait.ray13/serving-ml-model-using-google-pub-sub-python-f569c46e7eb0
upvoted 2 times
...
mindriddler
9 months, 3 weeks ago
Selected Answer: C
It has to be C. Therese no need to use both GH Actions and Cloud Build when GH Actions can do it all by itself
upvoted 2 times
...
shadz10
10 months, 1 week ago
Selected Answer: D
D https://cloud.google.com/build/docs/building/build-containers https://cloud.google.com/build/docs/build-push-docker-image
upvoted 3 times
...
36bdc1e
10 months, 2 weeks ago
The best approach would be Option C. By triggering GitHub Actions to run the tests, build custom Docker images, push the images to Artifact Registry, and launch the pipeline in Vertex AI Pipelines, you can automate the model retraining workflow. This approach allows for maximum flexibility and minimizes the steps required to build the workflow.
upvoted 2 times
...
b1a8fae
10 months, 3 weeks ago
Selected Answer: C
I am torn between C and D. GitHub actions to run the tests is definitely the simplest. Cloud Build allows to access fully managed CI/CD workflow (you could setup the Docker build job), but I figure it would be easier to do it from GitHub actions directly (https://docs.github.com/en/actions/creating-actions/creating-a-docker-container-action) which allows you to use 1 tool less and achieve the same result.
upvoted 2 times
...
BlehMaks
10 months, 3 weeks ago
Selected Answer: D
i think it's D
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...