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

Quick Answer

The answer is that the model was saved in a format other than SavedModel, or the artifact path does not contain the expected directory structure. This is the most likely cause of the Vertex AI TensorFlow model upload error because Vertex AI’s model registry specifically requires a SavedModel directory containing a `saved_model.pb` file and a `variables/` subfolder. When using `model.save('model/')` in TensorFlow 2.11, the default format is SavedModel, but if the engineer inadvertently saved in HDF5 format (e.g., by passing `save_format='h5'`) or if the `gcloud` command points to a parent directory rather than the exact folder holding those artifacts, the upload fails. On the Google Professional Machine Learning Engineer exam, this tests your understanding of Vertex AI’s strict artifact requirements and common pitfalls in model deployment workflows. A frequent trap is assuming any TensorFlow save format works, but Vertex AI only accepts the full SavedModel structure. Memory tip: think “PB plus Variables” — if you don’t see both, Vertex AI won’t load.

PMLE Scaling prototypes into ML models Practice Question

This PMLE practice question tests your understanding of scaling prototypes into ml models. The scenario asks you to isolate a root cause — eliminate options that address a different problem before choosing. 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.

Network Topology
region=us-central1display-name=my_modelcontainer-image-uri=us-docker.pkg.dev/cloud-aiplatform/prediction/tf2-cpu.2-11:latestartifact-uri=gs://my-bucket/modelcontainer-ports=8501Refer to the exhibit.```Deploying model...

An ML engineer is trying to upload a TensorFlow model to Vertex AI using the gcloud command shown. The model was trained using TensorFlow 2.11 and saved with model.save('model/'). The engineer sees the error. What is the most likely cause?

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 →
Network Topology
region=us-central1display-name=my_modelcontainer-image-uri=us-docker.pkg.dev/cloud-aiplatform/prediction/tf2-cpu.2-11:latestartifact-uri=gs://my-bucket/modelcontainer-ports=8501Refer to the exhibit.```Deploying model...

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 model was saved in a format other than SavedModel (e.g., HDF5) or the artifact path does not contain the expected directory structure.

Option D is correct because the error indicates that Vertex AI cannot find the expected SavedModel artifacts (saved_model.pb and variables/ directory) at the specified path. When using model.save('model/') with TensorFlow 2.11, the default format is the SavedModel format, but the artifact path must point to the directory containing the saved_model.pb file, not a parent directory or a model saved in HDF5 format. The gcloud command likely references a path that does not contain the required SavedModel structure, causing the upload to fail.

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 container port should be 8080 instead of 8501.

    Why it's wrong here

    Port 8501 is standard for TF Serving; port mismatch would not cause this error.

  • The service account does not have permission to access the bucket.

    Why it's wrong here

    Permissions issues would yield a different error (e.g., PERMISSION_DENIED).

  • The container image is for TensorFlow 2.11 but the model was saved with an older version.

    Why it's wrong here

    The container image matches TF2.11; version mismatch usually gives a different error.

  • The model was saved in a format other than SavedModel (e.g., HDF5) or the artifact path does not contain the expected directory structure.

    Why this is correct

    The error explicitly states no saved_model.pb found, indicating the model is not in SavedModel format.

    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.

Common exam traps

Common exam trap: answer the scenario, not the keyword

Google Cloud often tests the distinction between SavedModel and HDF5 formats, and candidates mistakenly assume that any model.save() call produces a valid SavedModel, overlooking that the artifact path must point to the correct directory structure with saved_model.pb.

Detailed technical explanation

How to think about this question

Vertex AI expects the model artifact to be a SavedModel directory containing a saved_model.pb file and a variables/ subdirectory. When model.save() is called without specifying a format, TensorFlow 2.x defaults to SavedModel, but if the engineer saved the model as an HDF5 file (e.g., model.save('model.h5')) or pointed the artifact URI to a parent directory, the required structure is missing. The gcloud ai models upload command's --artifact-uri must point to the exact directory containing the SavedModel, not a compressed archive or a different format.

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 media company stores terabytes of video archives that are accessed once a year for audit purposes. Moving these objects to a cold storage tier (Azure Archive, S3 Glacier, or Google Nearline) costs a fraction of hot storage. Questions like this test whether you understand storage tiers, access frequency tradeoffs, and retrieval latency requirements.

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 model was saved in a format other than SavedModel (e.g., HDF5) or the artifact path does not contain the expected directory structure. — Option D is correct because the error indicates that Vertex AI cannot find the expected SavedModel artifacts (saved_model.pb and variables/ directory) at the specified path. When using model.save('model/') with TensorFlow 2.11, the default format is the SavedModel format, but the artifact path must point to the directory containing the saved_model.pb file, not a parent directory or a model saved in HDF5 format. The gcloud command likely references a path that does not contain the required SavedModel structure, causing the upload to fail.

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.