Databricks Certified Machine Learning Professional — Question 43
Which of the following is an advantage of using the python_function(pyfunc) model flavor over the built-in library-specific model flavors?
Answer options
- A. python_function provides no benefits over the built-in library-specific model flavors
- B. python_function can be used to deploy models in a parallelizable fashion
- C. python_function can be used to deploy models without worrying about which library was used to create the model
- D. python_function can be used to store models in an MLmodel file
- E. python_function can be used to deploy models without worrying about whether they are deployed in batch, streaming, or real-time environments
Correct answer: C
Explanation
The correct answer, C, highlights that python_function allows for model deployment irrespective of the library used, providing flexibility. Options A and B are incorrect as they either state no benefits or focus on parallelization, which is not a unique feature of pyfunc. Option D is specific to storage, which doesn't address deployment, and option E mentions deployment environments, which is not the primary advantage of python_function.