CertLumen

Databricks Data Engineer Associate · Section 5 · 10% of the exam

Understand the Databricks CLI to validate, deploy, and manage Declarative Automation Bundles (formerly Databricks Asset Bundles) and other workspace assets in automated CI/CD workflows.

One of the objectives of the Databricks Certified Data Engineer Associate exam, in the section “Implementing CI/CD”. Here is what it covers, the points to remember and a question to try.

What it covers

The Databricks CLI authenticates people with OAuth U2M and automation with service principals, and its databricks bundle commands validate, deploy, run and tear down bundles. A CI/CD pipeline validates every pull request and promotes the same commit from test to prod.

Points to remember

  • Bundles need the current Databricks CLI (v0.218.0+). The pip databricks-cli package is the legacy CLI and has no bundle commands.
  • People log in with databricks auth login --host (OAuth U2M, profiles in ~/.databrickscfg). Automation uses a service principal with OAuth M2M or workload identity federation.
  • CLI authentication order: bundle settings, then environment variables, then .databrickscfg profiles.
  • Bundle lifecycle: init, validate, plan (optional), deploy -t, run, summary, destroy.
  • CI on a PR runs bundle validate. CD on merge runs bundle deploy -t test and bundle run, then bundle deploy -t prod behind an approval.

Try a question

A data engineer runs pip install databricks-cli, configures a token, and then finds that databricks bundle validate fails because the bundle command doesn't exist. What is the cause?

  1. ABundle commands run on Databricks Runtime clusters, so bundle validate has to be run from a notebook
  2. BA workspace admin has to enable Declarative Automation Bundles in the admin settings before the command appears
  3. CThe bundle command group is added when databricks auth login creates an OAuth profile
  4. DThe pip package is the legacy CLI; bundles need the current Databricks CLI, version 0.218.0 or above
Show the answer

D. The Python package databricks-cli is the legacy CLI, and it has no bundle commands. Declarative Automation Bundles are a feature of the current, standalone Databricks CLI, version 0.218.0 or above. Check your version with databricks -v.

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

In the course

The lesson Databricks CLI & CI/CD Workflows teaches this objective (about 45 minutes), and 12 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 29 objectives · Next objective →