Question 377 of 499
Operationalizing machine learning modelsmediumMultiple ChoiceObjective-mapped

Quick Answer

The answer is to use a Vertex AI batch prediction job that reads from BigQuery and writes results back to BigQuery or Cloud Storage. This is correct because batch prediction is the most cost-effective approach for generating recommendations for millions of users every few hours, as it processes large datasets in parallel without maintaining always-on infrastructure, directly minimizing compute costs while easily meeting the latency requirement of "every few hours." On the Google Professional Data Engineer exam, this scenario tests your understanding of the trade-off between batch prediction vs online prediction on Vertex AI cost, with the common trap being to choose online prediction for its lower latency, forgetting that always-on endpoints are far more expensive for periodic bulk workloads. A key memory tip is "batch for bulk, online for on-demand"—if the latency window is hours, not milliseconds, batch is the cheaper and correct choice.

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.

A retail company needs to generate product recommendations for millions of users every few hours. The model is a small scikit-learn model. Which prediction method should be used to minimize infrastructure cost while meeting the latency requirements?

Clue words in this question

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

  • Clue: "minimum / minimize"

    Why it matters: Asks for the least resource use — fewest addresses, smallest subnet, lowest overhead. Eliminate over-provisioned options even if they would technically work.

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

Use a Vertex AI batch prediction job that reads from BigQuery and writes results back to BigQuery or Cloud Storage.

Option D is correct because batch prediction is the most cost-effective approach for generating recommendations for millions of users every few hours. Vertex AI batch prediction jobs process large datasets in parallel without maintaining always-on infrastructure, and they can read from BigQuery and write results directly to BigQuery or Cloud Storage, minimizing compute costs while meeting the latency requirement of 'every few hours' (not real-time).

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 Run to host the model and invoke it for each user request.

    Why it's wrong here

    Cloud Run is for real-time requests; processing millions of users individually would be inefficient and costly.

  • Export the model as a container and run on Google Kubernetes Engine with cluster autoscaling.

    Why it's wrong here

    This adds unnecessary complexity and cost for a simple scikit-learn model that can be served via built-in containers.

  • Deploy the model to a Vertex AI endpoint with a single replica for online predictions.

    Why it's wrong here

    Online prediction would be more expensive and unnecessary for periodic bulk processing.

  • Use a Vertex AI batch prediction job that reads from BigQuery and writes results back to BigQuery or Cloud Storage.

    Why this is correct

    Batch prediction is designed for such use cases and is cost-efficient for large datasets processed periodically.

    Clue confirmation

    The clue word "minimum / minimize" 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 distinction between online (real-time) and batch (asynchronous) prediction patterns, and the trap here is that candidates assume 'predictions' always require a live endpoint, overlooking that batch jobs are the correct choice when latency requirements are in hours and the workload is massive and periodic.

Detailed technical explanation

How to think about this question

Vertex AI batch prediction jobs use distributed processing across multiple machines automatically, leveraging the same model artifact used for online predictions but without provisioning dedicated endpoints. The job reads input data from BigQuery or Cloud Storage, processes it in parallel shards, and writes predictions to a destination table or bucket, with billing based only on the compute time used during the job run. This is ideal for scenarios like nightly recommendation refreshes where latency tolerance is minutes to hours, not milliseconds.

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 startup's cloud architect reviews their monthly bill and notices costs are higher than expected for a long-running batch job. Switching from on-demand instances to Reserved Instances — or using Spot/Preemptible VMs — can reduce compute costs by up to 72 %. Questions like this test whether you understand the tradeoffs between commitment, flexibility, and cost across cloud pricing models.

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: Use a Vertex AI batch prediction job that reads from BigQuery and writes results back to BigQuery or Cloud Storage. — Option D is correct because batch prediction is the most cost-effective approach for generating recommendations for millions of users every few hours. Vertex AI batch prediction jobs process large datasets in parallel without maintaining always-on infrastructure, and they can read from BigQuery and write results directly to BigQuery or Cloud Storage, minimizing compute costs while meeting the latency requirement of 'every few hours' (not real-time).

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: "minimum / minimize". Asks for the least resource use — fewest addresses, smallest subnet, lowest overhead. Eliminate over-provisioned options even if they would technically work.

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 company needs to serve predictions for a model that runs an expensive computation on each request. The model is used by a batch job that processes millions of records each night, and also by a real-time API for a few thousand queries per hour. Which prediction strategy minimizes cost and latency for both use cases?

hard
  • A.Deploy two identical models, one on a Compute Engine VM for batch, one on Vertex AI for online, and synchronize updates.
  • B.Use Vertex AI batch prediction for the nightly job and a separate online endpoint with auto-scaling for the real-time API.
  • C.Use Vertex AI batch prediction for both workloads.
  • D.Use a single online Vertex AI endpoint with auto-scaling to handle both workloads.

Why B: Using batch prediction for the batch job and a separate online endpoint with a smaller machine or auto-scaling for real-time queries optimizes cost and latency. Option D is correct. Option A is wrong because batch prediction alone doesn't serve real-time. Option B is wrong because online endpoint for millions of records is expensive. Option C is wrong because using the same endpoint for both may cause interference.

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.