- A
The container port should be 8080 instead of 8501.
Why wrong: Port 8501 is standard for TF Serving; port mismatch would not cause this error.
- B
The service account does not have permission to access the bucket.
Why wrong: Permissions issues would yield a different error (e.g., PERMISSION_DENIED).
- C
The container image is for TensorFlow 2.11 but the model was saved with an older version.
Why wrong: The container image matches TF2.11; version mismatch usually gives a different error.
- D
The model was saved in a format other than SavedModel (e.g., HDF5) or the artifact path does not contain the expected directory structure.
The error explicitly states no saved_model.pb found, indicating the model is not in SavedModel format.
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.
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.
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.
- →
Scaling prototypes into ML models — study guide chapter
Learn the concepts, then practise the questions
- →
Scaling prototypes into ML models practice questions
Targeted practice on this topic area only
- →
All PMLE questions
506 questions across all exam domains
- →
Google Professional Machine Learning Engineer study guide
Full concept coverage aligned to exam objectives
- →
PMLE practice test guide
How to use practice tests most effectively before exam day
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.
Scaling prototypes into ML models practice questions
Practise PMLE questions linked to Scaling prototypes into ML models.
Automating and orchestrating ML pipelines practice questions
Practise PMLE questions linked to Automating and orchestrating ML pipelines.
Collaborating within and across teams to manage data and models practice questions
Practise PMLE questions linked to Collaborating within and across teams to manage data and models.
Architecting low-code ML solutions practice questions
Practise PMLE questions linked to Architecting low-code ML solutions.
Collaborating to manage data and models practice questions
Practise PMLE questions linked to Collaborating to manage data and models.
Serving and scaling models practice questions
Practise PMLE questions linked to Serving and scaling models.
Monitoring ML solutions practice questions
Practise PMLE questions linked to Monitoring ML solutions.
Solving business challenges with ML practice questions
Practise PMLE questions linked to Solving business challenges with ML.
PMLE fundamentals practice questions
Practise PMLE questions linked to PMLE fundamentals.
PMLE scenario practice questions
Practise PMLE questions linked to PMLE scenario.
PMLE troubleshooting practice questions
Practise PMLE questions linked to PMLE troubleshooting.
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 →
Last reviewed: Jun 30, 2026
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.
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.
Sign in to join the discussion.