CertLumen

Databricks Data Engineer Professional · Section 1 · 23% of the exam

Apply troubleshooting techniques to dependency conflicts and installation failures for external libraries (PyPI, local wheels, source archives) across serverless, pipeline, and bundle-deployed environments.

One of the objectives of the Databricks Certified Data Engineer Professional exam, in the section “Developing Code for Data Processing using Python and SQL”. Here is what it covers, the points to remember and a question to try.

What it covers

Know where each kind of workload declares its Python dependencies, how serverless environment versions, base environments, performance mode, high memory and auto-optimization work, and how to diagnose and fix dependency conflicts and installation failures for PyPI packages, wheels and source archives.

Points to remember

  • Serverless: no compute-scoped libraries, init scripts or compute policies; dependencies go in environments (notebook Environment panel, job environments, pipeline environment).
  • Python script, Python wheel and dbt tasks on serverless require environment_key; notebook tasks use the notebook environment unless a job environment overrides it.
  • Environment version = Spark Connect client API + Python version + pinned packages; versions 1-6 supported in Oct 2026; use the latest.
  • Base environments: Standard (default), ML, AI (GPU), Custom YAML, or admin-curated workspace base environments.
  • performance_target: PERFORMANCE_OPTIMIZED (default) vs STANDARD (fewer DBUs, about 4-6 min startup); pipelines use the Performance optimized checkbox for triggered mode.

Try a question

Security blocks public PyPI access from serverless compute, and the company mirrors approved packages in an internal Artifactory index. Dozens of teams' serverless notebooks and jobs now fail to install their dependencies. The platform team wants installs to work again without every team editing its environments or code. What should a workspace admin do?

  1. AAdd a global init script that writes a pip.conf file pointing pip at the Artifactory index
  2. BAsk each team to put --index-url https://user:token@artifactory/... at the top of its dependency list
  3. CConfigure the workspace's default package repositories to use the mirror, with credentials stored as secrets
  4. DSwitch every environment's base environment from Standard to ML, which bundles the most common packages
Show the answer

C. Workspace admins can set a private or authenticated repository as the default package repository for serverless notebooks and jobs; the URL and credentials are stored as Databricks secrets, and users then install packages without specifying an index. An index URL set in code still overrides the default.

Written for practice in the style of the exam: never a question from the real exam.

In the course

The lesson Libraries, Serverless Environments and Compute Choices teaches this objective (about 55 minutes), and 11 practice questions test it. The course has lessons, exam-style questions, timed practice exams and an AI tutor for every objective, and a pass prediction that tells you when you're ready to book.

More in this section

← Previous objective · All 45 objectives · Next objective →