Bundles, deployment modes, and Git folders
Databricks Data Engineer Professional · Lesson 20 of 21 · 2:40:32
YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗
Learning with these videos? Subscribe for new courses and exam-style questions.
Subscribe on YouTube (opens in a new tab)In this lesson
Prepare for the Databricks Certified Data Engineer Professional exam. In this lesson: Declarative Automation Bundles (formerly Databricks Asset Bundles), targets and deployment modes, and Git folders. Includes three original practice questions.
Study notes
The text of this lesson, to read at your own pace. Information as of November 2026.
Copied by hand
At Quayside Eats, engineers copy notebooks into production by hand, and a job edited in the UI no longer matches anything in Git. The team wants every change reviewed, and the same definitions deployed to development, staging, and production. This lesson covers bundles, deployment modes, and Git folders.
Declarative Automation Bundles
Declarative Automation Bundles, formerly Databricks Asset Bundles, describe jobs, pipelines, and other resources as source files, with a databricks.yml file at the root of the project. Its targets, like dev, staging, and prod, each point to a workspace, and the settings of a target override those at the top level, like a cluster size or a catalog name. Variables let one definition take a different value in each target, such as the catalog to write to. From the bundle root, databricks bundle validate checks the configuration, bundle deploy with dash t and a target deploys it, and bundle run starts a job or a pipeline. And bundle destroy deletes the jobs, pipelines, and files that the bundle deployed.
Deployment modes
Each target can set a mode. In development mode, deployed resources get a prefix with dev and the user name, and schedules and triggers are paused, so each engineer can deploy a personal copy safely. Production mode adds checks before deploying, and Databricks recommends that production jobs run as a service principal, set with run as, rather than as a person. In CI/CD, a workflow like GitHub Actions authenticates as a service principal with OAuth, runs validate, then deploys to staging, and to production once the tests pass. So nobody edits production jobs by hand: a change goes through Git, then the bundle deploys it.
Git folders
Git folders, formerly Repos, connect a folder of the workspace to a remote Git repository. In the user flow, each developer creates a Git folder under their own user folder, works on a personal branch, and pushes commits to the remote. In the merge flow, the developer opens a pull request in the Git provider, and when it is merged, automation pulls the changes into a production Git folder, through the Repos API. Admins create those production Git folders outside user folders, give most users run only access, and let only admins and service principals edit them. Databricks recommends bundles to package and deploy CI/CD workflows, and a production Git folder when you only need to deploy code.
Recap
Let's recap. A bundle describes jobs and pipelines in databricks.yml, with targets that override the top level settings. Validate checks it, deploy with a target deploys it, run starts a resource, and destroy removes what was deployed. Development mode prefixes resources and pauses schedules, and production jobs should run as a service principal. Developers work on their own branches in Git folders, and open pull requests in the Git provider. And after a merge, automation pulls the changes into production Git folders, through the Repos API.
Quick checks for this lesson
The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.
A data engineer changed a job definition in the bundle, and wants to check that the configuration is valid, before anything reaches a workspace. Which command should run?
- databricks bundle deploy -t dev
- databricks bundle run
- databricks bundle validate
- databricks bundle destroy
Show the answer
databricks bundle validate
Bundle validate checks the configuration files, without deploying anything. “databricks bundle deploy -t dev” would deploy the bundle to the dev workspace. “databricks bundle run” would start a job or a pipeline. And “databricks bundle destroy” would delete what the bundle deployed.
Two engineers deploy the same bundle to the shared development workspace. They cannot tell their jobs apart, and the schedules of both copies run every night. What should be set on the dev target?
- mode: development
- mode: production
- run_as with a service principal
- default: true
Show the answer
mode: development
Development mode prefixes each resource with dev and the user name, and pauses its schedules. “mode: production” would add production checks, and would not pause anything. “run_as with a service principal” would change who runs the jobs, not tell the copies apart. And “default: true” only makes dev the target used when none is given.
Quayside Eats keeps its job notebooks in a production Git folder. After a pull request is merged into the main branch, the folder must show the new code, with no one editing it by hand. What should the data engineer set up?
- CAN EDIT on the production folder for every developer
- A reminder to pull in the production folder after each merge
- A copy of the notebooks from a user folder into production
- Automation that pulls the branch through the Repos API
Show the answer
Automation that pulls the branch through the Repos API
Automation that calls the Repos API pulls the merged branch into the production Git folder, with no manual step. “CAN EDIT on the production folder for every developer” would let anyone change production code, outside of any review. “A reminder to pull in the production folder after each merge” would depend on people, and on their memory, after every merge. And “A copy of the notebooks from a user folder into production” would copy code by hand, which is exactly what Git folders avoid.