
Answer-first summary for fast verification
Answer: Use the Databricks Library management system to install the library at the cluster scope, ensuring it's available for model inference.
Option C is the correct approach for a production environment as it ensures the library is available at the cluster level, reducing the risk of errors during model inference. Manual installations or user scripts may not be as reliable or consistent as the Library management system.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You are responsible for deploying a machine learning model in a production environment using Databricks Runtime for Machine Learning. You need to ensure that the production cluster has access to a specific Python library required for model inference. How should you proceed?
A
Install the library in the production cluster using a user script executed upon cluster start.
B
Manually install the library in each production notebook using a pip command.
C
Use the Databricks Library management system to install the library at the cluster scope, ensuring it's available for model inference.
D
Assume the library is pre-installed in the Databricks Runtime for Machine Learning and proceed without verification.
No comments yet.