
Answer-first summary for fast verification
Answer: Use the Databricks Library management system to install the library at the workspace scope and attach it to your cluster.
Option B is the correct approach as it uses the Databricks Library management system to install the library at the workspace or cluster scope, ensuring it is available across all notebooks without the need for manual installation in each one. This is more efficient and reduces the risk of version conflicts.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You are a data scientist working on a project that requires the use of a specific Python library for data preprocessing. You have been provided with a Databricks environment with the Databricks Runtime for Machine Learning. How would you ensure that this library is available for use in your notebooks?
A
Install the library in each notebook using a cell with !pip install library-name.
B
Use the Databricks Library management system to install the library at the workspace scope and attach it to your cluster.
C
Assume the library is already installed in the Databricks Runtime for Machine Learning and start using it without verification.
D
Contact the Databricks administrator and request them to install the library on your behalf.
No comments yet.