Databricks-GenAI-Assoc Application Development Practice Question
Exhibit
bundle:
name: my_rag_app
include:
- resources/*.yml
targets:
dev:
default: true
workspace:
host: https://adb-123456789.azuredatabricks.net
prod:
workspace:
host: https://adb-987654321.azuredatabricks.net
root_path: /Shared/bundle_prodRefer to the exhibit. An AI engineer is configuring a Databricks Asset Bundle (DAB) to deploy a generative AI application. When executing 'databricks bundle deploy --target prod', which workspace host will the bundle resources be deployed to, and why?
⚠ Common exam trap
Candidates assume Databricks Asset Bundles always default to production configurations or local workspaces, ignoring the explicit role of the command-line target flag.
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
✓
It will deploy to the production workspace at https://adb-987654321.azuredatabricks.net because the target flag explicitly selects the prod configuration block.
Databricks Asset Bundles allow developers to define multiple deployment targets within the databricks.yml configuration file. When the user explicitly passes the --target prod flag to the CLI command, the bundle execution context switches from the default target to the specified target configuration, overriding default settings and directing deployment to the production workspace host URL defined under the prod block.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
The deployment will fail because the default target conflicts with the production target definition during workspace authentication initialization.
Why it's wrong here
Defining multiple targets in a Databricks Asset Bundle configuration is a standard, fully supported practice. The CLI does not throw conflict errors when multiple targets exist; instead, it selects the target matching the command-line argument or falls back to the default target if unspecified.
- ✗
It will deploy to the development workspace because the dev target is explicitly marked with 'default: true'.
Why it's wrong here
While the dev target has 'default: true', passing the '--target prod' flag explicitly overrides the default behavior. The Databricks CLI evaluates the command-line arguments and targets the specified environment configuration rather than defaulting to the development block.
- ✓
It will deploy to the production workspace at https://adb-987654321.azuredatabricks.net because the target flag explicitly selects the prod configuration block.
Why this is correct
The '--target prod' CLI argument instructs the bundle deployment engine to evaluate the corresponding YAML section under targets. Consequently, the workspace host URL defined in the prod block is utilized for provisioning all associated jobs, pipelines, and endpoints.
- ✗
It will deploy to both workspaces simultaneously to maintain synchronization between development and production environments.
Why it's wrong here
Databricks Asset Bundles do not support simultaneous multi-workspace deployments from a single CLI command execution without explicit scripting. Each deployment targets exactly one workspace host defined by the active target context to prevent unintended modifications.
About these practice questions
This Databricks-GenAI-Assoc question is part of Courseiva's 330-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
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-GenAI-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-GenAI-Assoc exam.