Courseiva
Implementing CI/CD →hardMultiple Choice

Databricks-DE-Assoc Implementing CI/CD Practice Question

A team is using Databricks Asset Bundles to manage a job that writes to a Unity Catalog table. The bundle is deployed to a staging workspace for testing and then to a production workspace. The team wants the job to use different catalog and schema names in each environment without duplicating the entire bundle. Which approach should they use?

⚠ Common exam trap

The trap here is thinking that runtime job parameters or secret scopes are the right place for environment-specific catalog names, when bundle variables and targets are designed exactly for this purpose.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

Define bundle variables for the catalog and schema, and set different values for each variable in the staging and production targets within the databricks.yml file.

Databricks Asset Bundles allow a single job definition to be deployed to multiple environments by using variables that are resolved differently per target. Defining catalog and schema variables and setting their values under the staging and production targets in databricks.yml keeps the bundle DRY and ensures each workspace uses the correct Unity Catalog objects.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✓

    Define bundle variables for the catalog and schema, and set different values for each variable in the staging and production targets within the databricks.yml file.

    Why this is correct

    Databricks Asset Bundles support variables that can be overridden per target. By defining catalog and schema variables and assigning environment-specific values under each target in databricks.yml, the same job definition can deploy to staging and production with the correct Unity Catalog names. This is the intended way to parameterize bundles across environments.

  • ✗

    Store the catalog and schema names in a Databricks secret scope and reference them in the job's notebook using dbutils.secrets.get.

    Why it's wrong here

    Secret scopes are for sensitive values like passwords and tokens, not for environment configuration such as catalog names. Referencing secrets inside a notebook does not change the bundle's deployed resource definitions, and it adds unnecessary complexity. The bundle's target-specific variables are the correct mechanism for environment-specific non-sensitive configuration.

  • ✗

    Use a single target and pass the catalog and schema names as job parameters at runtime through the Databricks Jobs API.

    Why it's wrong here

    While job parameters can be passed at runtime, the bundle deployment itself needs to know which Unity Catalog objects to reference for permissions and lineage. Using a single target would deploy identical configuration to both workspaces, and runtime parameters alone do not handle environment-specific resource bindings. This approach also bypasses the bundle's declarative configuration model.

  • ✗

    Create two separate bundle configuration files, one for staging and one for production, and manually copy the job definition into each.

    Why it's wrong here

    Duplicating the job definition across two files creates a maintenance burden and risks configuration drift. Databricks Asset Bundles are designed to avoid this duplication through variables and targets. Manually copying definitions also makes it easy to forget updates in one environment, undermining CI/CD reliability.

Visual reference

Client Recursive Resolver Root DNS (13 root servers) TLD DNS (.com, .org, …) Authoritative example.com query IP addr answer

About these practice questions

Courseiva writes every Databricks-DE-Assoc question from scratch — 276 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official Databricks exam blueprint

This Databricks-DE-Assoc practice question is part of Courseiva's free Databricks certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the Databricks-DE-Assoc exam.