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-clipackage is the legacy CLI and has nobundlecommands. - 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 runsbundle deploy -t testandbundle run, thenbundle deploy -t prodbehind 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?
- ABundle commands run on Databricks Runtime clusters, so
bundle validatehas to be run from a notebook - BA workspace admin has to enable Declarative Automation Bundles in the admin settings before the command appears
- CThe
bundlecommand group is added whendatabricks auth logincreates an OAuth profile - 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
- Manage your code development workflow within the Databricks workspace UI, including creating and switching between branches in Databricks Git Folders (formerly Databricks Repos), committing and pushing changes, and creating pull requests using Databricks Git integration.
- Understand environment-specific configuration using Automation Bundle (formerly Databricks Asset Bundles) variables and overrides while promoting the same codebase across dev, test, and prod targets.
- Deploy Declarative Automation Bundles (formerly Databricks Asset Bundles) to package, configure, and promote Lakeflow Jobs, Lakeflow Spark Declarative Pipelines, and other workspace assets across dev, test, and prod environments.