CertLumen

Databricks Data Engineer Professional · Section 8 · 10% of the exam

Configure Git-based CI/CD workflows using Databricks Git folders (formerly Repos) to deploy notebooks and code.

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 with generate job --existing-job-id --bind or deployment bind.
  • deploy uploads to root_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-approve for no prompts, --fail-on-active-runs to protect running jobs, --force-lock only 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 principal run_as recommended.
  • 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?

  1. Adatabricks bundle plan -t prod
  2. Bdatabricks bundle summary -t prod
  3. Cdatabricks bundle deploy -t prod --dry-run
  4. Ddatabricks 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

← Previous objective · All 45 objectives · Next objective →