Question 337 of 1,000
hardMultiple ChoiceObjective-mapped

GPU Acceleration to Reduce Inference Latency on Vertex AI — Ensemble Models

This PMLE practice question tests your understanding of pmle exam topics. 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 are a machine learning engineer at a financial technology company. You have deployed a complex ensemble model consisting of three sub-models (XGBoost, TensorFlow, and PyTorch) for real-time fraud detection. The model is served on Vertex AI online prediction with a custom container that orchestrates the three models sequentially. The endpoint currently uses n1-highmem-8 machines with no accelerators. You are experiencing high latency (avg 500ms) during peak trading hours (9:30 AM - 4:00 PM EST), exceeding the 200ms SLA. The container is CPU-bound, and memory usage is around 60%. The model weights total 500 MB. You have already tried increasing the batch size per request from 1 to 4, which reduced latency slightly but not enough. The traffic pattern is very spiky, with sudden bursts of up to 1000 requests per second. Your goal is to meet the latency SLA without significantly increasing cost. Which action should you take?

Quick Answer

The answer is to add a NVIDIA T4 GPU accelerator to the existing machine type. This directly addresses the GPU acceleration inference latency Vertex AI bottleneck because the TensorFlow and PyTorch sub-models in the ensemble are deep learning models that benefit massively from parallelized GPU compute, while the XGBoost component runs efficiently on the existing CPU. On the Google Professional Machine Learning Engineer exam, this scenario tests your understanding of when to use accelerators versus scaling vertically—a common trap is to increase CPU cores, but that only marginally helps when the bottleneck is matrix operations in neural networks. The key insight is that GPU acceleration reduces inference latency on Vertex AI without the cost explosion of adding many high-CPU machines, especially for spiky traffic where a single GPU-equipped node can handle bursts. Memory tip: think “GPU for deep nets, CPU for trees” to avoid over-provisioning the wrong resource.

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

Add a NVIDIA T4 GPU accelerator to the existing machine type.

Adding a GPU accelerator (e.g., NVIDIA T4) to the instances can significantly speed up the TensorFlow and PyTorch components, which are deep learning models. The XGBoost part runs on CPU but the overall latency bottleneck is likely the deep learning models. GPU will accelerate inference of those models, reducing total latency. Increasing CPUs will help only marginally as the main bottleneck is compute. Reducing min replicas may increase cold start and queue. Switching to batch prediction changes the model from real-time to batch, which does not meet the latency requirement.

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.

  • Add a NVIDIA T4 GPU accelerator to the existing machine type.

    Why this is correct

    GPU accelerates the deep learning parts, reducing total latency.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Reduce the min_replica_count to 0 to allow scaling down aggressively and add more replicas during spikes.

    Why it's wrong here

    min=0 increases cold start latency, not reducing overall latency.

  • Increase the machine type to n1-highmem-16 with more vCPUs.

    Why it's wrong here

    More CPU may help but the deep learning models will still be slow on CPU.

  • Switch the model to Vertex AI batch prediction and run predictions every hour.

    Why it's wrong here

    Batch prediction does not meet real-time 200ms SLA.

Common exam traps

Common exam trap: answer the scenario, not the keyword

Many certification questions include familiar terms but test a specific constraint. Read the exact wording before choosing an answer that is generally true but wrong for this case.

Detailed technical explanation

How to think about this question

This question should be treated as a scenario, not a definition check. Identify the problem, the constraint and the best action. Then compare each option against those facts.

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.
  • Use explanations to understand the rule behind the answer.

TExam Day Tips

  • Underline the problem statement mentally.
  • 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 PMLE exam domain this question belongs to, then review the specific concept being tested. Practise related questions in that domain and focus on understanding why each wrong answer is tempting — not just why the correct answer is right.

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?

Read the scenario before looking for a memorised answer.

What is the correct answer to this question?

The correct answer is: Add a NVIDIA T4 GPU accelerator to the existing machine type. — Adding a GPU accelerator (e.g., NVIDIA T4) to the instances can significantly speed up the TensorFlow and PyTorch components, which are deep learning models. The XGBoost part runs on CPU but the overall latency bottleneck is likely the deep learning models. GPU will accelerate inference of those models, reducing total latency. Increasing CPUs will help only marginally as the main bottleneck is compute. Reducing min replicas may increase cold start and queue. Switching to batch prediction changes the model from real-time to batch, which does not meet the latency requirement.

What should I do if I get this PMLE question wrong?

Identify which PMLE exam domain this question belongs to, then review the specific concept being tested. Practise related questions in that domain and focus on understanding why each wrong answer is tempting — not just why the correct answer is right.

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 PMLE

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 deploys a custom TensorFlow model to Vertex AI Endpoint for online predictions. After deployment, prediction latency is consistently high (over 500ms) even under low traffic. The model is CPU-only and the default machine type (n1-standard-2) is used. Which action will most likely reduce prediction latency?

medium
  • A.Increase the max_replica_count to 10 to allow more parallel requests.
  • B.Change the machine type to n1-highcpu-16 with a GPU accelerator.
  • C.Set min_replica_count to 3 to ensure always-on capacity.
  • D.Increase the batch size in the prediction request.

Why B: Option B is correct because changing the machine type to n1-highcpu-16 with a GPU accelerator provides significantly more compute resources for the custom TensorFlow model. The n1-highcpu-16 offers 16 vCPUs (vs. 2 in n1-standard-2), which reduces CPU-bound inference time, and adding a GPU accelerates matrix operations common in TensorFlow models, directly reducing latency per request. Option A is wrong because increasing max_replica_count allows more parallel requests but does not improve the processing time of a single request. Option C is wrong because setting min_replica_count ensures always-on capacity to avoid cold starts, but does not reduce steady-state latency. Option D is wrong because increasing batch size in the prediction request increases throughput by processing multiple inputs together, but does not reduce latency for a single prediction—it may actually increase the time to return a result for a given request.

Keep practising

More PMLE practice questions

Last reviewed: Jun 24, 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.