Databricks Data Engineer Professional · Free practice question 12 of 12
Serverless environment dependencies
A Python task at Burwell Logistics is moving from classic job compute to serverless compute for jobs. On classic compute, it installed a private wheel and two PyPI packages with a cluster init script. How should the dependencies be provided on serverless?
- A.Keep the init script, because serverless runs it at start-up
- B.Install the packages with an apt-get command in the first notebook cell
- C.Ask a workspace admin to install the packages on the serverless control plane
- D.Declare the wheel and packages as dependencies in the job's serverless environment
Show answer and explanation
Correct answer: D. Declare the wheel and packages as dependencies in the job's serverless environment
Why: Serverless compute for jobs does not support init scripts; Python dependencies are declared in the task's environment, which specifies an environment version and a dependency list such as PyPI packages and wheel files in volumes or workspace files, and Databricks installs them when the environment is created. System-level installs such as apt-get are not a supported way to provide dependencies on serverless, and admins do not install packages on serverless infrastructure.
More free Databricks Data Engineer Professional questions
- Databricks SQL alerts with notifications
- Partitioning guidance for mid-size tables
- VACUUM retention duration safety check
- SQL warehouse sizing versus scaling
- BROWSE privilege for data discovery
- UNDROP TABLE for managed tables
- Workspace-catalog binding isolation
- Bundle generate and deployment bind
- Driver memory and toPandas
- Continuous job trigger for streaming
- Table update triggers for jobs