PROFESSIONAL-MACHINE-LEARNING-ENGINEER · Question #225
You are developing an ML pipeline using Vertex AI Pipelines. You want your pipeline to upload a new version of the XGBoost model to Vertex AI Model Registry and deploy it to Vertex AI Endpoints for on
The correct answer is D. Chain the Vertex AI ModelUploadOp and ModelDeployOp components together. The simplest way to upload and deploy an XGBoost model within a Vertex AI Pipeline is to directly use and chain the built-in Vertex AI ModelUploadOp and ModelDeployOp components.
Question
Options
- AUse the Vertex AI REST API within a custom component based on a vertex-ai/prediction/xgboost-
- BUse the Vertex AI ModelEvaluationOp component to evaluate the model
- CUse the Vertex AI SDK for Python within a custom component based on a python:3.10 image
- DChain the Vertex AI ModelUploadOp and ModelDeployOp components together
How the community answered
(46 responses)- A11% (5)
- B4% (2)
- C4% (2)
- D80% (37)
Why each option
The simplest way to upload and deploy an XGBoost model within a Vertex AI Pipeline is to directly use and chain the built-in `Vertex AI ModelUploadOp` and `ModelDeployOp` components.
Using the Vertex AI REST API within a custom component is technically possible but far more complex than using the pre-built pipeline components.
`Vertex AI ModelEvaluationOp` is used for evaluating models, not for uploading or deploying them.
Using the Vertex AI SDK for Python within a custom component is also technically possible but more complex than using the pre-built components, requiring managing custom code and environments.
Vertex AI Pipelines offers pre-built components for common ML operations, including `ModelUploadOp` for registering models to the Model Registry and `ModelDeployOp` for deploying them to an Endpoint. Chaining these two components together is the most direct and simplest way to achieve the desired outcome.
Concept tested: Vertex AI Pipelines built-in components for model management
Source: https://cloud.google.com/vertex-ai/docs/pipelines/build-pipeline#upload-model-and-deploy-to-endpoint
Topics
Community Discussion
No community discussion yet for this question.