Google Cloud Professional Machine Learning Engineer · Free practice question 7 of 12
Runtime parameters for compiled pipelines
An ML engineer at Kelderwood Health compiled a training pipeline once and wants analysts to rerun it for different regions and date ranges without editing or recompiling code. How should the pipeline be designed?
- A.Hard-code each region in a separate copy of the pipeline file
- B.Ask analysts to edit the compiled YAML by hand before each run
- C.Store the values in the container image and rebuild it per run
- D.Declare region and date range as pipeline parameters and supply their values when each run is submitted
Show answer and explanation
Correct answer: D. Declare region and date range as pipeline parameters and supply their values when each run is submitted
Why: Pipeline functions can declare input parameters that are set at submission time, so one compiled template runs with different values for each run. Copies per region multiply maintenance, rebuilding images per run is slow, and hand-editing compiled YAML is error-prone.
More free Google Cloud Professional Machine Learning Engineer questions
- BigQuery ML k-means customer segments
- Speech-to-Text for call recordings
- AutoML object detection annotations
- Scheduled notebook runs with the executor
- TensorBoard Profiler for input bottlenecks
- TFX InfraValidator before pushing
- CPU machines for scikit-learn serving
- Model cards for responsible AI documentation
- tf.data prefetch and parallel map
- Grounding with Google Search
- Point-in-time joins for training data