Question 1
Which files typically make up a Declarative Automation Bundle project?
- A Unity Catalog metastore export
- Only a single exported .dbc archive of the workspace
- databricks.yml, resource definitions and source code — Correct
- A Dockerfile and a Kubernetes manifest
Correct answer
databricks.yml, resource definitions and source code
Explanation
A bundle has a databricks.yml file (and optional included YAML files) defining resources and targets, along with the code it deploys.
Question 2
Which Databricks CLI command checks a bundle's configuration for errors before deploying?
- databricks bundle validate — Correct
- databricks jobs check
- databricks workspace verify
- databricks bundle deploy --dry-run-only
Correct answer
databricks bundle validate
Explanation
bundle validate checks the configuration and resolves variables. deploy then uploads files and creates or updates resources in the target workspace.
Question 3
A data engineer pulls the latest changes in a Git folder and sees that a notebook has been modified upstream. What does pull do?
- It deletes uncommitted local changes without warning
- It merges remote commits into the local branch — Correct
- It creates a pull request automatically
- It pushes local changes to the remote
Correct answer
It merges remote commits into the local branch
Explanation
Pull updates the local branch with remote commits. Pushing sends local commits; pull requests are created in the provider.
Question 4
A team wants production deployments to run as a service principal rather than as an individual engineer. Where is this configured?
- In the cluster init script for the job cluster
- In the prod target, with run_as set to the service principal — Correct
- In each notebook's first cell with a SET USER statement
- It cannot be configured; jobs always run as their creator
Correct answer
In the prod target, with run_as set to the service principal
Explanation
Bundles support run_as per target so that production jobs execute as a service principal, independent of who deployed them.
Question 5
A bundle defines a job with tasks that use a cluster. The prod target must use a larger node type. Which bundle feature is designed for this?
- An If/else task that checks the node type
- A separate Git branch per environment with different code
- A compute policy that changes size at runtime
- Target overrides for prod — Correct
Correct answer
Target overrides for prod
Explanation
Targets can override resource definitions (for example cluster settings) so one bundle serves multiple environments.
Question 6
Two engineers changed the same notebook in different branches. When pulling main into the feature branch in a Git folder, a merge conflict appears. What should the engineer do?
- Resolve the conflict, then commit the merge — Correct
- Delete the Git folder and clone the repository again to make the conflict disappear
- Force push the feature branch to main to overwrite the other change
- Rename the notebook so that both versions exist
Correct answer
Resolve the conflict, then commit the merge
Explanation
Conflicts must be resolved by choosing or combining changes, then committing. Force pushing would discard a teammate's work.
Question 7
Which command initializes a new bundle project from a template?
- databricks bundle init — Correct
- databricks workspace import
- databricks bundle create
- databricks repos create
Correct answer
databricks bundle init
Explanation
bundle init creates a new project from a default or custom template.
Question 8
A bundle defines a job with a cluster size variable. Dev should use 2 workers and prod 10 workers. How is this expressed in a Declarative Automation Bundle?
- Hard-code 10 workers and scale down manually in dev
- A variable with per-target overrides in databricks.yml — Correct
- Create two separate repositories, one per environment
- Use an If/else task that reads the workspace URL at runtime
Correct answer
A variable with per-target overrides in databricks.yml
Explanation
Bundle variables can have defaults and per-target overrides, so the same definitions deploy with environment-specific values.
Question 9
How does a CI system authenticate the Databricks CLI to deploy a bundle in production?
- With a developer's personal password
- With a cluster's init script
- With no authentication, because bundles are public
- A service principal with OAuth secrets in CI — Correct
Correct answer
A service principal with OAuth secrets in CI
Explanation
Automated deployments should use service principals with OAuth (machine-to-machine) credentials stored as secrets in the CI system.
Question 10
Which principal type is recommended for running production jobs and CI/CD deployments?
- A shared user account whose password is stored in the job
- A service principal — Correct
- An anonymous token
- The workspace admin's personal account
Correct answer
A service principal
Explanation
Service principals are non-human identities for automation, decoupling production from individual user accounts.