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.
Question
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)- A14% (7)
- B8% (4)
- C24% (12)
- D55% (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.
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.
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.
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.
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
Community Discussion
No community discussion yet for this question.