Question 1 of 499
Operationalizing machine learning modelsmediumMultiple ChoiceObjective-mapped

Quick Answer

The answer is to run validation scripts in the Cloud Build pipeline after training, then deploy to a staging endpoint for manual approval before promoting to production. This is correct because it embeds model validation directly into the CI/CD pipeline for model validation in Vertex AI, using Cloud Build as the orchestration engine to enforce automated gatekeeping—such as accuracy thresholds and fairness metrics—while preserving a human-in-the-loop for final sign-off. On the Google Professional Data Engineer exam, this scenario tests your understanding of MLOps deployment strategies, specifically how to balance automation with governance; a common trap is choosing a fully automated promotion without manual approval, which violates production safety best practices. Remember the memory tip: “Validate, Stage, Approve, Promote”—the four-step chain that ensures only validated models reach production.

PDE Operationalizing machine learning models Practice Question

This PDE practice question tests your understanding of operationalizing machine learning models. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

Your team uses a CI/CD pipeline with Cloud Build to train and deploy ML models on Vertex AI. You want to ensure that only models that pass validation checks (e.g., accuracy threshold, fairness metrics) are promoted to production. What is the best way to implement this?

Clue words in this question

Noticing these words before you look at the options changes how you read each choice.

  • Clue: "best"

    Why it matters: Signals that multiple options may be partially correct. Choose the option that most directly solves the exact problem described, not the one that sounds most complete.

Question 1mediummultiple choice
Full question →

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

In the Cloud Build pipeline, after training, run validation scripts. If validation passes, deploy to a staging endpoint for manual approval, then promote to production.

Option D is correct because it integrates validation directly into the CI/CD pipeline using Cloud Build, ensuring that only models passing specific checks (e.g., accuracy threshold, fairness metrics) are promoted. By running validation scripts after training and requiring manual approval before production promotion, this approach provides both automated gatekeeping and human oversight, aligning with MLOps best practices for safe model deployment.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Use Cloud Scheduler to trigger retraining and only deploy if the new model outperforms the previous one on a holdout set.

    Why it's wrong here

    Cloud Scheduler runs on a schedule, not as part of CI/CD; it would deploy without immediate validation in the pipeline.

  • Use Vertex AI Model Registry's automatic promotion feature that moves models to production based on evaluation results.

    Why it's wrong here

    Vertex AI Model Registry does not have automatic promotion; you must manually or programmatically promote.

  • Configure Cloud Functions to re-evaluate the model daily and promote if it passes.

    Why it's wrong here

    This would be after deployment, not before; it doesn't prevent bad models from being deployed initially.

  • In the Cloud Build pipeline, after training, run validation scripts. If validation passes, deploy to a staging endpoint for manual approval, then promote to production.

    Why this is correct

    This ensures automated validation before any deployment, with optional manual gate for production.

    Clue confirmation

    The clue word "best" in the question point toward this answer.

    Related concept

    Read the scenario before looking for a memorised answer.

Common exam traps

Common exam trap: answer the scenario, not the keyword

Google Cloud often tests the misconception that Vertex AI Model Registry has built-in automatic promotion based on evaluation metrics, but in reality, it requires external orchestration (like Cloud Build) to implement such logic.

Detailed technical explanation

How to think about this question

In a Cloud Build pipeline, you can use custom build steps to run validation scripts (e.g., using Python with TensorFlow Model Analysis) that check metrics against predefined thresholds. If validation fails, the build step exits with a non-zero code, halting the pipeline and preventing deployment to the staging endpoint. This approach ensures that only models passing all checks are promoted, and manual approval adds a safety net for edge cases like data drift or unexpected model behavior.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A cloud solutions architect for a retail company is evaluating services for a new workload. The correct answer here reflects best practice for the specific scenario described — not a general cloud recommendation. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Cloud exam questions reward reading the constraint carefully: the same technology can be right or wrong depending on the use case.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related PDE practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free PDE practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this PDE question test?

Operationalizing machine learning models — This question tests Operationalizing machine learning models — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: In the Cloud Build pipeline, after training, run validation scripts. If validation passes, deploy to a staging endpoint for manual approval, then promote to production. — Option D is correct because it integrates validation directly into the CI/CD pipeline using Cloud Build, ensuring that only models passing specific checks (e.g., accuracy threshold, fairness metrics) are promoted. By running validation scripts after training and requiring manual approval before production promotion, this approach provides both automated gatekeeping and human oversight, aligning with MLOps best practices for safe model deployment.

What should I do if I get this PDE question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Are there clue words in this question I should notice?

Yes — watch for: "best". Signals that multiple options may be partially correct. Choose the option that most directly solves the exact problem described, not the one that sounds most complete.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

1 more ways this is tested on PDE

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. A data engineering team is building a CI/CD pipeline for machine learning models using Cloud Build and AI Platform. Which TWO practices are essential for ensuring reproducible and safe model deployments?

medium
  • A.Use Cloud Functions to trigger retraining on new data arrival.
  • B.Tag each model version with the Git commit hash of the training code.
  • C.Run integration tests against the model on a staging endpoint before promoting to production.
  • D.Use the same environment for training and serving, possibly via custom containers.
  • E.Directly deploy from the development environment using gcloud commands.

Why B: Options A and C are correct. A ensures every model version is linked to source and training process; C ensures validation before production. B is not about reproducibility; D might be useful but not essential for reproducibility; E is anti-pattern.

Last reviewed: Jun 30, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This PDE 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 PDE exam.