In dbt, what is the main purpose of running the command dbt docs generate?
Think about what kind of output you want to see after running dbt docs generate.
The dbt docs generate command creates a static documentation site that shows your models, their columns, and how they relate. It does not run models or install packages.
After running dbt docs generate, you run dbt docs serve. What happens next?
Consider what serve usually means for documentation tools.
dbt docs serve starts a local web server that lets you view the documentation generated by dbt docs generate in your browser.
Which of the following data is included in the documentation site generated by dbt docs generate?
Think about what information helps you understand your models and their relationships.
The documentation site includes metadata like model names, descriptions, columns, tests, and a graph showing how models depend on each other. It does not include raw data or sensitive info.
You ran dbt docs generate but when you run dbt docs serve, it fails with an error saying documentation files are missing. What is the most likely cause?
Think about where the documentation files are saved and where you run commands.
The docs files are saved in the target directory of the project where dbt docs generate was run. Running dbt docs serve in a different directory will not find these files.
You want to add clear descriptions to your dbt models and columns so they appear in the generated documentation site. Which file do you edit to add these descriptions?
Think about where dbt stores metadata about models and columns.
Descriptions for models and columns are added in schema.yml files using YAML syntax. These descriptions then appear in the documentation site.