nerdexam
Google

PROFESSIONAL-MACHINE-LEARNING-ENGINEER · Question #188

You have created a Vertex AI pipeline that includes two steps. The first step preprocesses 10 TB data completes in about 1 hour, and saves the result in a Cloud Storage bucket. The second step uses th

The correct answer is D. Enable caching for the pipeline job, and disable caching for the model training step.. To reduce pipeline execution time and cost when repeatedly testing new model algorithms, enable caching for the stable preprocessing step and disable it for the frequently changing training step.

Submitted by amina.ke· Apr 18, 2026ML pipeline operationalization

Question

You have created a Vertex AI pipeline that includes two steps. The first step preprocesses 10 TB data completes in about 1 hour, and saves the result in a Cloud Storage bucket. The second step uses the processed data to train a model. You need to update the model's code to allow you to test different algorithms. You want to reduce pipeline execution time and cost while also minimizing pipeline changes. What should you do?

Options

  • AAdd a pipeline parameter and an additional pipeline step. Depending on the parameter value, the
  • BCreate another pipeline without the preprocessing step, and hardcode the preprocessed Cloud
  • CConfigure a machine with more CPU and RAM from the compute-optimized machine family for
  • DEnable caching for the pipeline job, and disable caching for the model training step.

How the community answered

(51 responses)
  • A
    14% (7)
  • B
    8% (4)
  • C
    24% (12)
  • D
    55% (28)

Why each option

To reduce pipeline execution time and cost when repeatedly testing new model algorithms, enable caching for the stable preprocessing step and disable it for the frequently changing training step.

AAdd a pipeline parameter and an additional pipeline step. Depending on the parameter value, the

Adding new pipeline parameters and steps increases complexity and does not directly address the efficiency of re-running the preprocessing step or the cost of redundant computations.

BCreate another pipeline without the preprocessing step, and hardcode the preprocessed Cloud

Creating another pipeline and hardcoding paths is a manual, non-reproducible, and unmanaged approach that bypasses pipeline lineage and introduces maintenance overhead, rather than leveraging pipeline features for efficiency.

CConfigure a machine with more CPU and RAM from the compute-optimized machine family for

While optimizing machine resources for training might speed up that specific step, it does not address the cost and time incurred by repeatedly re-running the 1-hour preprocessing step, which is the primary target for optimization here.

DEnable caching for the pipeline job, and disable caching for the model training step.Correct

Enabling caching for the pipeline job allows the expensive 10 TB preprocessing step to reuse its output if its inputs haven't changed, saving significant time and cost. Disabling caching specifically for the model training step ensures that each change to the model code (testing different algorithms) triggers a fresh training run, preventing outdated results from being served from the cache.

Concept tested: Vertex AI Pipelines, pipeline caching, MLOps

Source: https://cloud.google.com/vertex-ai/docs/pipelines/caching

Topics

#Vertex AI Pipelines#Pipeline Caching#ML Workflow Optimization#Cost Optimization

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-MACHINE-LEARNING-ENGINEER Practice