Databricks Data Engineer Professional · Section 8 · 10% of the exam
Deploy Databricks resources using Declarative Automation Bundles (formerly Databricks Asset Bundles).
One of the objectives of the Databricks Certified Data Engineer Professional exam, in the section “Debugging and Deploying”. Here is what it covers, the points to remember and a question to try.
What it covers
Deploy jobs, pipelines and other resources with Declarative Automation Bundles: the validate, plan, deploy and run lifecycle, targets, modes, variables and run identities, adopting existing resources, and CI/CD as a service principal. Then use Git folders for development and production checkouts, and know when a job should pull its code straight from Git.
Points to remember
- Lifecycle:
validate,plan,deploy,run,summary,destroy; adopt existing jobs withgenerate job --existing-job-id --bindordeployment bind. deployuploads toroot_path(default /Workspace/Users/<user>/.bundle/<bundle>/<target>) and creates or updates resources; the direct engine is the default and the Terraform engine was removed in CLI 1.20.0.- CI flags:
--auto-approvefor no prompts,--fail-on-active-runsto protect running jobs,--force-lockonly for a stale lock. - Development mode:
[dev user]prefix, paused schedules, no lock, cluster override allowed. Production mode: Git branch check, non-development pipelines, no cluster override, service principalrun_asrecommended. - Variable precedence:
--var>BUNDLE_VAR_> variable-overrides.json > target variables > default; variables are deploy-time, job parameters are run-time (bundle run --params).
Try a question
Before anyone runs databricks bundle deploy -t prod, a reviewer wants to see exactly which jobs and pipelines the deployment would create, update or delete, without changing the workspace. Which command should be run?
- A
databricks bundle plan -t prod - B
databricks bundle summary -t prod - C
databricks bundle deploy -t prod --dry-run - D
databricks bundle sync -t prod --dry-run
Show the answer
A. databricks bundle plan previews the actions a deploy would take without making changes; with -o json the direct deployment engine reports per-field details of what triggers each action. It is the natural review step in a pull request or before a production deploy.
Written for practice in the style of the exam: never a question from the real exam.
In the course
The lesson Deploying with Bundles and Git-Based CI/CD teaches this objective (about 50 minutes), and 17 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
- Identify pertinent diagnostic information using Spark UI, cluster logs, system tables, and query profiles to troubleshoot errors.
- Analyze the errors and remediate the failed job runs with job repairs and parameter overrides.
- Configure Git-based CI/CD workflows using Databricks Git folders (formerly Repos) to deploy notebooks and code.