Question 94 of 506
Solving business challenges with MLhardMultiple ChoiceObjective-mapped

Quick Answer

The answer is to use Dataflow with Apache Beam to build a parallel preprocessing pipeline. This is correct because Dataflow provides a fully managed, serverless framework that automatically scales compute resources to handle large-scale data transformations, such as decompressing, resizing to 512x512, normalizing, and augmenting 500 GB of chest X-ray images stored in Cloud Storage. By decoupling preprocessing from Vertex AI training, the pipeline can be rerun independently to fix the resize step, and the corrected dataset can then feed directly into a new TPU training job, minimizing retraining time without manual infrastructure management. On the Google Professional Machine Learning Engineer exam, this scenario tests your ability to choose the right data engineering approach for large-scale image preprocessing, often contrasting Dataflow with alternatives like Cloud Functions or running preprocessing inside the training container—a common trap is assuming preprocessing must be tightly coupled with training. Memory tip: think “Dataflow decouples and scales” to remember that preprocessing should be a separate, parallelizable pipeline for large datasets.

PMLE Solving business challenges with ML Practice Question

This PMLE practice question tests your understanding of solving business challenges with ml. 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.

A healthcare startup is using Vertex AI to train a deep learning model for detecting anomalies in chest X-rays. The training dataset is 500 GB of images stored in Cloud Storage (GCS). They use a custom training container with TPU v3-32. The training job completes successfully, but the model performance is poor. On investigation, they discover that the input images were not preprocessed correctly: the images were resized to 256x256 instead of the required 512x512. They need to fix the preprocessing and retrain as quickly as possible. The preprocessing pipeline involves decompressing, resizing, normalizing, and augmenting images. They have a small team and limited time. 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

Use Dataflow with Apache Beam to build a parallel preprocessing pipeline

Option C is correct because Dataflow with Apache Beam provides a fully managed, serverless, and highly parallel preprocessing pipeline that can efficiently process 500 GB of images in Cloud Storage. This approach decouples preprocessing from training, allowing the team to fix the resize step (256x256 to 512x512) and run the pipeline independently, then feed the corrected data into a new training job. Dataflow automatically scales resources to handle large datasets, minimizing retraining time without requiring infrastructure management.

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.

  • Use Vertex AI Batch Transform to preprocess the images

    Why it's wrong here

    Batch Transform is for model inference on batch data, not preprocessing.

  • Run another Vertex AI Training job with a modified container that preprocesses and trains

    Why it's wrong here

    This would require the training job to handle preprocessing, which is inefficient and not scalable.

  • Use Dataflow with Apache Beam to build a parallel preprocessing pipeline

    Why this is correct

    Dataflow scales to process large volumes of data quickly in parallel.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Use Cloud Data Fusion to orchestrate the preprocessing steps

    Why it's wrong here

    Data Fusion is for data integration, not optimized for image processing at scale with custom logic.

Common exam traps

Common exam trap: answer the scenario, not the keyword

Google Cloud often tests the misconception that Vertex AI Training should handle preprocessing inline, but the trap here is that decoupling preprocessing with a scalable, serverless pipeline like Dataflow is faster and more maintainable than modifying the training container or using prediction-oriented services like Batch Transform.

Detailed technical explanation

How to think about this question

Under the hood, Dataflow uses the Apache Beam SDK to define a pipeline that reads images from GCS, applies transformations (e.g., using `tf.image.resize` or custom DoFns for decompression and augmentation), and writes the preprocessed images back to GCS. Dataflow automatically autoscales workers based on the backlog of unprocessed elements, and for 500 GB of images, it can leverage hundreds of workers to complete preprocessing in minutes. A subtle behavior is that Dataflow's shuffle operation can become a bottleneck if images are not partitioned correctly; using `Reshuffle` or key-based grouping can optimize throughput.

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?

Solving business challenges with ML — This question tests Solving business challenges with ML — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Use Dataflow with Apache Beam to build a parallel preprocessing pipeline — Option C is correct because Dataflow with Apache Beam provides a fully managed, serverless, and highly parallel preprocessing pipeline that can efficiently process 500 GB of images in Cloud Storage. This approach decouples preprocessing from training, allowing the team to fix the resize step (256x256 to 512x512) and run the pipeline independently, then feed the corrected data into a new training job. Dataflow automatically scales resources to handle large datasets, minimizing retraining time without requiring infrastructure management.

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

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.