How to build a Vertex AI pipeline for XGBoost with model comparison?
You are developing a training pipeline for a new XGBoost classification model based on tabular data. The data is stored in a BigQuery table. You need to complete the following steps: 1. Randomly split the data into training and evaluation datasets in a 65/35 ratio 2. Conduct feature engineering 3. Obtain metrics for the evaluation dataset 4. Compare models trained in different pipeline executions How should you execute these steps?
Community Votes
100% of anonymous learners picked answer A. Votes are pick records left by other test-takers — they are not the verified answer.
Community Insight
This question tests the ability to select the right Google Cloud services for end-to-end ML workflows, specifically distinguishing between Vertex AI Experiments (for model comparison) and Vertex ML Metadata, while avoiding the trap of using BigQuery ML for complex pipeline orchestration.
To build a scalable XGBoost training pipeline with custom feature engineering and model comparison, use Vertex AI Pipelines for orchestration and Vertex AI Experiments for tracking metrics across runs. The community agrees that BigQuery ML is insufficient for complex pipeline orchestration and that Vertex AI Experiments offer superior model comparison capabilities compared to ML Metadata alone.
Choosing BigQuery ML (Options C and D) is a common mistake because, while it handles data splits and training, it lacks the robust orchestration and advanced model comparison features required for a full pipeline workflow.
Community Discussion (8 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Why the Answer Is Correct
Option A correctly utilizes Vertex AI Pipelines to orchestrate the data splitting and feature engineering components. Crucially, it leverages Vertex AI Experiments to log metrics and visualize comparisons across multiple pipeline executions, fulfilling all four requirements of the scenario.Why the Other Options Are Wrong
Option B suggests using Vertex ML Metadata for comparison, which provides lineage but is less effective for direct performance comparison than Vertex AI Experiments. Options C and D rely on BigQuery ML; while efficient for training, they do not support the complex, multi-step pipeline orchestration or the granular experiment tracking needed for this specific workflow.Community Comment Notes
Commenters emphasized that the requirement to "compare models trained in different pipeline executions" is the deciding factor that points specifically to Vertex AI Experiments. Additionally, multiple users noted that BigQuery ML is limited regarding pipeline orchestration and custom feature engineering integration compared to Vertex AI Pipelines.Official Reference
Exam Strategy
When questions ask to "compare models" across different runs, immediately look for Vertex AI Experiments as the solution. Remember that while BigQuery ML is great for training, Vertex AI Pipelines is required for complex, multi-step workflows involving custom feature engineering.
Related Analysis
Practice All PMLE Questions
Access 65 questions with complete answers and detailed explanations.
View Full PMLE Practice Test →