How to deploy models in Vertex AI Pipelines?
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 online inference. You want to use the simplest approach. What should you do?
Community Votes
100% of anonymous learners picked answer D. Votes are pick records left by other test-takers — they are not the verified answer.
Community Insight
This question tests knowledge of Vertex AI pre-built pipeline components versus custom implementation, with the trap being choosing a more complex custom solution (SDK or REST API) when a simpler built-in component exists.
To deploy an XGBoost model in Vertex AI Pipelines, using pre-built components like ModelUploadOp and ModelDeployOp is the simplest method. The community agrees that chaining these built-in components is more efficient than custom code or REST APIs.
Choosing Option C (Vertex AI SDK) is a common mistake because, while functional, it requires significantly more setup and dependency management than the dedicated pre-built components.
Community Discussion (4 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Why the Answer Is Correct
Option D is correct because Vertex AI Pipelines provides pre-built components specifically for Model Registry and Endpoint management. ChainingModelUploadOp and ModelDeployOp allows users to perform these actions with minimal code, simply by passing parameters like model path and container URI. This aligns with the requirement for the "simplest approach" by leveraging Google's managed infrastructure directly within the pipeline definition.Why the Other Options Are Wrong
Option A is incorrect because using the REST API within a custom component requires manual error handling and authentication logic, adding unnecessary complexity. Option B is incorrect becauseModelEvaluationOp is designed solely for evaluating model performance metrics, not for uploading or deploying models. Option C is incorrect because while the SDK is powerful, wrapping it in a custom component involves building container images and managing dependencies, which is not the simplest method compared to pre-built components.Community Comment Notes
Community comments emphasize thatModelUploadOp and ModelDeployOp are "pre-built components" offering a "user-friendly interface." Users noted that Options A and C involve "more manual coding" and "setup," making them inferior choices when simplicity is the priority. References to Google Cloud documentation were provided to support the use of these specific components. Official Reference
Exam Strategy
Always prioritize pre-built components over custom code in Vertex AI Pipelines unless specific customization is strictly required. Look for keywords like "simplest" or "least effort" to identify questions where built-in components are the intended solution.
Related Analysis
Practice All PMLE Questions
Access 65 questions with complete answers and detailed explanations.
View Full PMLE Practice Test →