Databricks Certified Machine Learning Professional — Question 5
Which of the following describes the purpose of the context parameter in the predict method of Python models for MLflow?
Answer options
- A. The context parameter allows the user to specify which version of the registered MLflow Model should be used based on the given application's current scenario
- B. The context parameter allows the user to document the performance of a model after it has been deployed
- C. The context parameter allows the user to include relevant details of the business case to allow downstream users to understand the purpose of the model
- D. The context parameter allows the user to provide the model with completely custom if-else logic for the given application's current scenario
- E. The context parameter allows the user to provide the model access to objects like preprocessing models or custom configuration files
Correct answer: E
Explanation
The correct answer is E because the context parameter indeed enables the model to access necessary external objects like preprocessing models or custom configuration files. Options A, B, C, and D describe different functionalities that are not related to the context parameter's purpose in MLflow's predict method.