0
0
dbtdata~5 mins

Naming conventions at scale in dbt - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the main purpose of naming conventions in dbt projects?
Naming conventions help keep your project organized, make it easier to understand, and allow teams to work together smoothly by using consistent names for models, tests, and sources.
Click to reveal answer
beginner
Why should you avoid using spaces and special characters in dbt model names?
Spaces and special characters can cause errors or confusion in SQL queries and file systems. Using underscores (_) or camelCase keeps names simple and safe to use everywhere.
Click to reveal answer
intermediate
What is a common pattern for naming dbt models to show their purpose?
A common pattern is to use prefixes or suffixes like 'stg_' for staging models, 'int_' for intermediate models, and 'fct_' for fact tables. This helps quickly identify the role of each model.
Click to reveal answer
intermediate
How do naming conventions help when your dbt project grows larger?
They make it easier to find and understand models, avoid name clashes, and support automation tools that rely on predictable names. This saves time and reduces mistakes.
Click to reveal answer
beginner
What should you consider when naming sources in dbt?
Use clear, descriptive names that match the original data source names or business terms. This helps everyone know where data comes from and keeps documentation clear.
Click to reveal answer
Which of the following is a good naming convention for a staging model in dbt?
Acustomers staging
BCustomers Staging
Cstg_customers
Dstg-customers!
Why is it important to have consistent naming conventions in large dbt projects?
ATo confuse new team members
BTo make the project look colorful
CTo make SQL queries longer
DTo help team members understand and find models easily
Which character is recommended to separate words in dbt model names?
A_
B-
CSpace
D!
What prefix might you use for a fact table model in dbt?
Adim_
Bfct_
Cstg_
Dtmp_
When naming sources in dbt, you should:
AMatch names to original data sources or business terms
BUse random abbreviations
CUse very long names with spaces
DUse special characters to stand out
Explain why consistent naming conventions are important when your dbt project grows.
Think about how many people and models are involved in a big project.
You got /4 concepts.
    Describe a simple naming pattern you could use for different types of dbt models.
    Consider how to quickly tell what a model does just by its name.
    You got /3 concepts.