0
0
dbtdata~5 mins

dbt project structure - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the main purpose of the models directory in a dbt project?
The models directory holds SQL files that define transformations and create tables or views in your data warehouse.
Click to reveal answer
beginner
What file in a dbt project defines project-level configurations like name and version?
The dbt_project.yml file defines project-level settings such as the project name, version, and model configurations.
Click to reveal answer
intermediate
What is the role of the macros folder in a dbt project?
The macros folder contains reusable SQL snippets or functions that can be called inside models to avoid repetition.
Click to reveal answer
intermediate
Why do dbt projects include a tests directory?
The tests directory stores custom tests to check data quality and ensure models produce correct results.
Click to reveal answer
beginner
What is the purpose of the seeds directory in a dbt project?
The seeds directory holds CSV files that dbt can load as tables into the data warehouse for static or reference data.
Click to reveal answer
Which file in a dbt project controls the project name and version?
Adbt_project.yml
Bprofiles.yml
Cpackages.yml
Dmodels.sql
Where do you put SQL files that define data transformations in dbt?
Amodels directory
Bmacros directory
Ctests directory
Dseeds directory
What is stored in the seeds directory of a dbt project?
AProject configuration
BSQL macros
CTest scripts
DCSV files for static data
Which folder contains reusable SQL functions in dbt?
Amodels
Bmacros
Ctests
Dseeds
Why do dbt projects have a tests directory?
ATo store CSV files
BTo store project settings
CTo store data quality checks
DTo store SQL macros
Describe the main folders in a dbt project and their purposes.
Think about where you put SQL code, reusable parts, tests, static data, and settings.
You got /5 concepts.
    Explain how the dbt_project.yml file fits into the dbt project structure.
    It is the main settings file for the whole project.
    You got /3 concepts.