Question 449 of 506
Scaling prototypes into ML modelshardMultiple ChoiceObjective-mapped

Quick Answer

The answer is that the min replica count is set to 0, which is not allowed for online prediction. Vertex AI requires at least one replica for any online prediction deployment because the endpoint must always have a running instance to serve live traffic; setting `min_replica_count` to 0 is only valid for batch prediction, where no persistent serving infrastructure is needed. On the Google Professional Machine Learning Engineer exam, this error scenario tests your understanding of the fundamental difference between online and batch serving configurations, often appearing as a trick where a candidate mistakenly applies batch prediction settings to an online endpoint. A common trap is assuming zero replicas means “auto-scale down to zero,” but Vertex AI online endpoints cannot scale to zero—they must always maintain a minimum of one. Remember the mnemonic: “Online needs one, batch can be none.”

PMLE Scaling prototypes into ML models Practice Question

This PMLE practice question tests your understanding of scaling prototypes into ml models. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. 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.

Exhibit

gcloud ai endpoints deploy-model \
    --endpoint=projects/my-project/locations/us-central1/endpoints/456 \
    --model=projects/my-project/locations/us-central1/models/789 \
    --display-name=my-deployment \
    --machine-type=n1-standard-4 \
    --min-replica-count=0 \
    --max-replica-count=10 \
Error: (gcloud.beta.ai.endpoints.deploy-model) INVALID_ARGUMENT: min_replica_count must be at least 1 for online prediction.

Refer to the exhibit. A Machine Learning Engineer attempts to deploy a model to a Vertex AI Endpoint for online predictions but receives an error. What is the most likely cause of this error?

Clue words in this question

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

  • Clue: "most likely"

    Why it matters: Probability qualifier — the question wants the most probable cause or outcome, not a guaranteed one. Eliminate low-probability options.

Question 1hardmultiple choice
Full question →

Exhibit

gcloud ai endpoints deploy-model \
    --endpoint=projects/my-project/locations/us-central1/endpoints/456 \
    --model=projects/my-project/locations/us-central1/models/789 \
    --display-name=my-deployment \
    --machine-type=n1-standard-4 \
    --min-replica-count=0 \
    --max-replica-count=10 \
Error: (gcloud.beta.ai.endpoints.deploy-model) INVALID_ARGUMENT: min_replica_count must be at least 1 for online prediction.

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

The min replica count is set to 0, which is not allowed for online prediction.

Vertex AI online prediction endpoints require at least one replica to serve traffic. Setting `min_replica_count` to 0 is only valid for batch prediction, not for online prediction, because the endpoint must always have a running instance to handle incoming requests. The error occurs because the deployment request violates this constraint, causing the API to reject the configuration.

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.

  • The model is not compatible with the selected machine type.

    Why it's wrong here

    Model compatibility issues typically produce errors about unsupported framework or architecture, not replica count.

  • The machine type does not support GPU acceleration.

    Why it's wrong here

    The error does not mention GPU; it is about replica count.

  • The min replica count is set to 0, which is not allowed for online prediction.

    Why this is correct

    The error clearly states that min_replica_count must be at least 1.

    Clue confirmation

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

    Related concept

    Read the scenario before looking for a memorised answer.

  • The endpoint is not in the same region as the model.

    Why it's wrong here

    The exhibit shows both resources in us-central1; region mismatch would produce a different error.

Common exam traps

Common exam trap: answer the scenario, not the keyword

Google Cloud often tests the distinction between batch and online prediction configuration requirements, specifically that `min_replica_count = 0` is valid for batch but invalid for online, leading candidates to overlook this subtle but critical constraint.

Trap categories for this question

  • Command / output trap

    The exhibit shows both resources in us-central1; region mismatch would produce a different error.

Detailed technical explanation

How to think about this question

Under the hood, Vertex AI online prediction endpoints use a managed instance group that must maintain a minimum number of healthy replicas to ensure high availability. Setting `min_replica_count` to 0 effectively tells the autoscaler to scale down to zero, which is disallowed for online serving because it would cause a cold start delay or complete unavailability for incoming requests. This is enforced by the Vertex AI API at deployment time, returning an error like 'min_replica_count must be at least 1 for online prediction'.

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 PMLE 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 PMLE 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 PMLE question test?

Scaling prototypes into ML models — This question tests Scaling prototypes into ML models — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: The min replica count is set to 0, which is not allowed for online prediction. — Vertex AI online prediction endpoints require at least one replica to serve traffic. Setting `min_replica_count` to 0 is only valid for batch prediction, not for online prediction, because the endpoint must always have a running instance to handle incoming requests. The error occurs because the deployment request violates this constraint, causing the API to reject the configuration.

What should I do if I get this PMLE 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: "most likely". Probability qualifier — the question wants the most probable cause or outcome, not a guaranteed one. Eliminate low-probability options.

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

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 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.