Question 108 of 506
Automating and orchestrating ML pipelineshardMultiple ChoiceObjective-mapped

Quick Answer

The correct approach is to split the training component into multiple smaller steps that process data in chunks, reducing peak memory usage. This directly addresses the root cause of the OOMKilled error—when a Vertex AI custom training job’s memory consumption exceeds the fixed limit of the chosen machine type, the pod is terminated. Since the team has already maxed out memory for that machine type, the only viable path is to lower the per-step memory footprint, often by batching data or refactoring the training loop to avoid loading the entire dataset at once. On the Google Professional Machine Learning Engineer exam, this scenario tests your understanding of Vertex AI resource constraints and the principle that machine type memory caps are absolute—you cannot exceed them, so you must optimize the workload. A common trap is assuming you can simply request more memory, but the exam emphasizes working within fixed limits. Memory tip: “Chunk to duck the OOM truck.”

PMLE Automating and orchestrating ML pipelines Practice Question

This PMLE practice question tests your understanding of automating and orchestrating ml pipelines. 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.

A large e-commerce company uses Vertex AI Pipelines to orchestrate its recommendation model training. The pipeline has several parallel components: feature engineering, model training, and model evaluation. Recently, they noticed that the pipeline often fails due to resource exhaustion in the Vertex AI custom training job for the model training component. The training job consumes significant memory and occasionally exceeds the allocated memory limit, causing the pod to be OOMKilled. The team has already increased the memory to the maximum allowed for the chosen machine type. They need to prevent the pipeline from failing while still using the same machine type. Which approach should they take?

Question 1hardmultiple choice
Full question →

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

Split the training component into multiple smaller steps that process data in chunks to reduce peak memory usage.

Option A is correct because splitting the training component into smaller steps that process data in chunks directly addresses the root cause of OOMKilled failures—peak memory usage exceeding the allocated limit. By reducing the memory footprint per step, the pipeline can stay within the maximum memory of the existing machine type without requiring a larger instance. This approach aligns with best practices for Vertex AI custom training jobs, where resource limits are fixed per machine type and cannot be exceeded.

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.

  • Split the training component into multiple smaller steps that process data in chunks to reduce peak memory usage.

    Why this is correct

    This reduces memory footprint and avoids exceeding the limit, allowing successful completion.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Use a larger machine type with more memory to accommodate the peaks.

    Why it's wrong here

    The team explicitly wants to keep the same machine type.

  • Add a memory check step before training that estimates memory usage and skips training if it exceeds the limit.

    Why it's wrong here

    Skipping training is not a valid solution; the model must be trained.

  • Implement a retry policy with exponential backoff for the training component, so it automatically retries on failure.

    Why it's wrong here

    Retrying does not solve the memory issue; the job will still OOM.

Common exam traps

Common exam trap: answer the scenario, not the keyword

Google Cloud often tests the misconception that retry policies or pre-checks can solve resource exhaustion, but the correct approach is to redesign the component to reduce peak memory usage, as retries do not fix the underlying OOM condition.

Detailed technical explanation

How to think about this question

Vertex AI custom training jobs run on Kubernetes pods with strict resource limits defined by the chosen machine type (e.g., n1-standard-16 with 60 GB memory). When a training job exceeds the memory limit, the kernel’s Out-Of-Memory (OOM) killer terminates the pod, causing a non-retryable failure. Splitting the training into smaller steps—such as processing data in mini-batches or using tf.data.Dataset with prefetching—reduces peak memory usage by ensuring that only a subset of data is held in memory at any time, which is a common pattern for large-scale model training on Vertex AI.

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?

Automating and orchestrating ML pipelines — This question tests Automating and orchestrating ML pipelines — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Split the training component into multiple smaller steps that process data in chunks to reduce peak memory usage. — Option A is correct because splitting the training component into smaller steps that process data in chunks directly addresses the root cause of OOMKilled failures—peak memory usage exceeding the allocated limit. By reducing the memory footprint per step, the pipeline can stay within the maximum memory of the existing machine type without requiring a larger instance. This approach aligns with best practices for Vertex AI custom training jobs, where resource limits are fixed per machine type and cannot be exceeded.

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 →

How Courseiva writes practice questions · Editorial policy

Keep practising

More PMLE practice questions

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.