- A
Configure a Cloud Monitoring uptime check on the endpoint URL.
Why wrong: Uptime checks only detect if the endpoint is reachable, not error rates.
- B
Create a Cloud Monitoring alert based on the metric 'prediction/failed_request_count' with a condition on 5xx errors.
Built-in metric directly reflects HTTP errors.
- C
Add a logging statement in the custom prediction routine to count errors manually.
Why wrong: Not scalable or standard.
- D
Export Cloud Logging to BigQuery and run a scheduled query for 503s.
Why wrong: Too complex and not real-time.
Quick Answer
The answer is to create a Cloud Monitoring alert based on the metric 'prediction/failed_request_count' with a condition on 5xx errors. This is correct because Vertex AI Endpoints automatically export this metric to Cloud Monitoring, which includes a label for HTTP status codes, allowing you to filter specifically for 503 errors without any custom code or additional infrastructure. On the Google Professional Machine Learning Engineer exam, this scenario tests your understanding of Vertex AI’s built-in observability integration with Cloud Monitoring, a common pattern for operationalizing ML models. A frequent trap is overcomplicating the solution by suggesting custom logging or application-level error handling, when the simplest path leverages pre-existing metrics. Remember the key tip: Vertex AI endpoints ship the failed_request_count metric by default, so always check for native Cloud Monitoring metrics before building custom solutions. Think “503 = failed_request_count with a 5xx filter” for a quick recall.
PMLE Monitoring ML solutions Practice Question
This PMLE practice question tests your understanding of monitoring ml solutions. 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.
You have deployed a text classification model using Vertex AI Endpoints. The model is performing well, but the operations team wants to be alerted if the endpoint returns an excessive number of HTTP 503 errors. What is the simplest way to achieve this?
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
Create a Cloud Monitoring alert based on the metric 'prediction/failed_request_count' with a condition on 5xx errors.
Option B is correct because Vertex AI Endpoints automatically export the 'prediction/failed_request_count' metric to Cloud Monitoring, which includes a label for HTTP status codes. By creating an alert on this metric with a filter for 5xx errors, you can directly monitor excessive 503 responses without additional infrastructure or custom code.
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.
- ✗
Configure a Cloud Monitoring uptime check on the endpoint URL.
Why it's wrong here
Uptime checks only detect if the endpoint is reachable, not error rates.
- ✓
Create a Cloud Monitoring alert based on the metric 'prediction/failed_request_count' with a condition on 5xx errors.
- ✗
Add a logging statement in the custom prediction routine to count errors manually.
Why it's wrong here
Not scalable or standard.
- ✗
Export Cloud Logging to BigQuery and run a scheduled query for 503s.
Why it's wrong here
Too complex and not real-time.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates often confuse uptime checks (which measure availability from external probes) with metric-based alerts (which track internal error counts), leading them to choose Option A despite its inability to specifically detect 503 errors.
Detailed technical explanation
How to think about this question
Vertex AI Endpoints automatically emit the 'prediction/failed_request_count' metric to Cloud Monitoring, where each failed request is tagged with a 'response_code' label (e.g., 503). You can create a metric-based alert with a filter like 'metric.type="aiplatform.googleapis.com/prediction/failed_request_count" AND metric.labels.response_code=503' to trigger when the count exceeds a threshold over a specified window. This approach avoids the overhead of log-based solutions and provides sub-minute alerting granularity.
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.
- →
Monitoring ML solutions — study guide chapter
Learn the concepts, then practise the questions
- →
Monitoring ML solutions 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?
Monitoring ML solutions — This question tests Monitoring ML solutions — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: Create a Cloud Monitoring alert based on the metric 'prediction/failed_request_count' with a condition on 5xx errors. — Option B is correct because Vertex AI Endpoints automatically export the 'prediction/failed_request_count' metric to Cloud Monitoring, which includes a label for HTTP status codes. By creating an alert on this metric with a filter for 5xx errors, you can directly monitor excessive 503 responses without additional infrastructure or custom code.
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.
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 24, 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.