1. A developer configures `persist_docs` in `dbt_project.yml` as follows: ```yaml models: my_project: +persist_docs: relation: true columns: true ``` What is the effect of this configuration?
- A. dbt generates a static documentation site that includes model and column descriptions
- B. dbt writes model-level and column-level descriptions as comments or metadata directly on the warehouse objects (tables/views)✓ Correct
- C. dbt stores model descriptions in the `manifest.json` but not in the warehouse
- D. dbt fails to run if any model or column is missing a description
Explanation
`persist_docs` with `relation: true` and `columns: true` causes dbt to apply the descriptions from YAML files as metadata (e.g., table comments and column comments) directly on the warehouse objects such as tables and views. This is distinct from dbt's documentation site generation, which is triggered by `dbt docs generate` and is always available regardless of `persist_docs`. Descriptions are always stored in `manifest.json` regardless of this setting — `persist_docs` specifically controls whether they also go to the warehouse. dbt does not fail if descriptions are missing; descriptions are optional metadata.