A data engineering team wants to ensure their Databricks Asset Bundle deployment process follows CI/CD best practices. They are setting up a GitHub Actions pipeline. In the CI step (on pull request), they want to validate that the bundle configuration is syntactically correct and all referenced files exist, WITHOUT actually deploying any resources to the Databricks workspace. In the CD step (on merge to main), they want to deploy to production. Which pair of databricks bundle commands should be used for the CI and CD steps respectively?
Show answer & explanation
Correct answer: B
WHY B: databricks bundle validate is the correct command for CI validation—it checks YAML syntax, schema compliance, variable references, and file existence without making any API calls to a Databricks workspace. databricks bundle deploy -t prod is the correct CD command that uploads artifacts, resolves variables for the production target, and creates/updates all defined resources. WHY NOT A: databricks bundle plan and databricks bundle apply are not valid DAB commands. DAB does not use a plan/apply pattern like Terraform. WHY NOT C: databricks bundle test --dry-run and databricks bundle deploy --confirm are not valid commands. There is no dry-run or --confirm flag in the standard DAB CLI. WHY NOT D: databricks bundle lint and databricks bundle release are not valid DAB commands. WHY NOT E: databricks bundle check and databricks bundle push / bundle activate are not valid DAB commands. The correct upload+deploy command is simply databricks bundle deploy.