Google Cloud Professional Machine Learning Engineer — Question 92
You are the Director of Data Science at a large company, and your Data Science team has recently begun using the Kubeflow Pipelines SDK to orchestrate their training pipelines. Your team is struggling to integrate their custom Python code into the Kubeflow Pipelines SDK. How should you instruct them to proceed in order to quickly integrate their code with the Kubeflow Pipelines SDK?
Answer options
- A. Use the func_to_container_op function to create custom components from the Python code.
- B. Use the predefined components available in the Kubeflow Pipelines SDK to access Dataproc, and run the custom code there.
- C. Package the custom Python code into Docker containers, and use the load_component_from_file function to import the containers into the pipeline.
- D. Deploy the custom Python code to Cloud Functions, and use Kubeflow Pipelines to trigger the Cloud Function.
Correct answer: A
Explanation
The correct answer is A, as using the func_to_container_op function allows the team to directly convert their Python functions into components that can be used in Kubeflow Pipelines. Options B, C, and D involve more complex processes that do not directly address the integration of custom Python code with the SDK as efficiently as option A.