CertLumen

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

Implement scalable Python project structures for Declarative Automation Bundles (formerly Databricks Asset Bundles / DABs) to support modular development and CI/CD integration.

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

Lay out a Declarative Automation Bundle so business logic lives in an importable Python package that is built as a wheel and deployed to every target from one codebase, and prove that code correct with pytest, DataFrame.transform, assertDataFrameEqual and assertSchemaEqual before CI/CD promotes it.

Points to remember

  • Bundle layout: databricks.yml + resources/*.yml for jobs and pipelines, a package under src/<name>/, tests/ with conftest.py, and pyproject.toml.
  • default-python requires uv and builds the wheel with artifacts: <key>: {type: whl, build: uv build --wheel}; bundle deploy builds and uploads it.
  • python_wheel_task needs package_name and entry_point (a [project.scripts] name); on serverless it also needs environment_key pointing to environments[].spec.
  • Environment spec: environment_version (replaces deprecated client) and pip-style dependencies, e.g. ../dist/*.whl; paths are relative to the declaring YAML file.
  • Changed wheel, same version can keep running old code: bump the version or use presets.artifacts_dynamic_version: true.

Try a question

In a bundle, databricks.yml builds a wheel into dist/ at the bundle root. A job is declared in resources/jobs/ingest.job.yml, two folders below the root, and its task runs on a classic job cluster. Which libraries entry installs the wheel that the bundle builds?

  1. A- whl: ./dist/*.whl, because library paths in bundle resource files are always resolved relative to the bundle root
  2. B- whl: ../../dist/*.whl, because library paths are resolved relative to the YAML file that declares the task
  3. C- whl: ${workspace.artifact_path}/dist/*.whl, because local file paths are not allowed in a task's libraries
  4. D- pypi: {package: ingest}, because bundle-built wheels are published to the workspace's default PyPI index
Show the answer

B. Bundle paths in a resource file are relative to that file. From resources/jobs/, the root's dist/ folder is ../../dist/. During deploy the CLI uploads the local wheel and rewrites the path to its workspace location, so local paths are exactly what you write.

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

In the course

The lesson Bundle Python Projects and Tested Transformation Code teaches this objective (about 55 minutes), and 13 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

All 45 objectives · Next objective →