CertKeen

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?

  1. A.Hard-code each region in a separate copy of the pipeline file
  2. B.Ask analysts to edit the compiled YAML by hand before each run
  3. C.Store the values in the container image and rebuild it per run
  4. 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