PMLE Scaling Prototypes into ML Models Practice Question
A company wants to use Vertex AI Vizier to tune hyperparameters for a PyTorch model. They have a limited budget of 50 training jobs. The objective metric is validation accuracy, and they want to find the best configuration efficiently. Which algorithm should they choose?
⚠ Common exam trap
The trap is underestimating the efficiency of Bayesian optimization. Candidates might think random search is sufficient with 50 trials, but Bayesian optimization is designed for sample efficiency, which is critical when the budget is limited.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Bayesian optimization using Vertex AI Vizier.
Vertex AI Vizier is a hyperparameter tuning service that uses Bayesian optimization to efficiently search the hyperparameter space. With a limited budget of 50 trials, Bayesian optimization is more sample-efficient than random or grid search, making it the best choice.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Bayesian optimization using Vertex AI Vizier.
Why this is correct
Bayesian optimisation builds a probabilistic surrogate model of validation accuracy and selects each configuration to maximise expected improvement, converging in far fewer trials than grid or random search. This suits the 50-job budget while targeting the stated objective metric.
- ✗
Random search with 50 random configurations.
Why it's wrong here
Random search samples configurations independently, ignoring results from completed trials, so it cannot concentrate the 50-job budget around promising regions of the search space. It suits cheap, high-dimensional tuning where exhaustive coverage matters. Vertex AI Vizier's Bayesian optimisation uses prior trial outcomes to guide sampling, which is what efficient tuning under a fixed budget requires.
- ✗
Use a custom algorithm implemented in the training code.
Why it's wrong here
Vizier runs its own Bayesian optimisation loop; a custom algorithm inside the training code cannot feed trial results back to the Vizier service, so the 50-job budget is spent without guided search. Custom logic suits bespoke pipelines where no managed tuning service exists.
- ✗
Grid search with 50 evenly spaced points.
Why it's wrong here
Grid search evaluates a fixed lattice, so with 50 jobs across several hyperparameters most dimensions get only a few values and promising regions between grid points are missed. It suits very low-dimensional spaces where exhaustive coverage is affordable.
Go deeper
Related to this question
About these practice questions
This PMLE question is part of Courseiva's 775-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official Google Cloud exam blueprint
This PMLE practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the PMLE exam.