Databricks Data Engineer Professional · Section 1 · 23% of the exam
Choose appropriate compute and configuration for environments and dependencies — including serverless compute (serverless environments, dependency management, performance mode), high-memory notebook tasks, and auto-optimization settings (e.g., disallowing retries).
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, pipelineenvironment). - 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) vsSTANDARD(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?
- AAdd a global init script that writes a
pip.conffile pointing pip at the Artifactory index - BAsk each team to put
--index-url https://user:token@artifactory/...at the top of its dependency list - CConfigure the workspace's default package repositories to use the mirror, with credentials stored as secrets
- 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
- Implement scalable Python project structures for Declarative Automation Bundles (formerly Databricks Asset Bundles / DABs) to support modular development and CI/CD integration.
- Apply troubleshooting techniques to dependency conflicts and installation failures for external libraries (PyPI, local wheels, source archives) across serverless, pipeline, and bundle-deployed environments.
- Develop User-Defined Functions (UDFs) using Pandas, Python, and SQL, including Unity Catalog functions for the given constraints.
- Create production-ready data pipelines for streaming data using Lakeflow Pipelines and Auto Loader.
- Create and automate ETL workloads using Lakeflow Jobs via the UI, API, and CLI.
- Choose between a streaming table and a materialized view for a given latency, cost, and refresh requirement.
- Implement CDC pipelines using AUTO CDC APIs (formerly APPLY CHANGES) in Lakeflow Pipelines, including SCD Type 1 and Type 2 via stored_as_scd_type.
- Choose between Spark Structured Streaming and Apache Spark™ Declarative Pipelines for scalable ETL given operational constraints.
- Create Lakeflow Jobs that use control-flow operators such as If/Else conditions and For Each loops.
- Develop unit and integration tests using assertDataFrameEqual, assertSchemaEqual, DataFrame.transform, and testing frameworks to ensure code correctness.
- Apply Structured Streaming stateful-processing semantics, including watermarks, output modes, foreachBatch, and checkpoints for fault-tolerant exactly-once state recovery.