Which component of a Databricks Asset Bundle (DAB) allows you to define different configurations (e.g., instance sizes, variables) for development versus production environments?
Targets allow you to define environment-specific overrides for a deployment. You can specify a different workspace, job cluster configuration, or variable values for 'dev', 'staging', and 'prod'. This mechanism ensures the bundle remains portable while allowing the necessary infrastructure adjustments required for each distinct environment's performance and cost profile.
Why this answer
The 'targets' block in the 'databricks.yml' file allows developers to define environment-specific configurations. This enables a single bundle to adapt to different workspaces or compute needs. By using targets, you can ensure that development deployments are lightweight and cost-effective, while production deployments are scaled for high availability and performance, all while keeping the underlying application code identical across all deployment stages.
Exam trap
Candidates often look for 'environment' or 'config' blocks. They fail to identify 'targets' as the specific section in the DAB schema used for environment-specific infrastructure overrides.