0
0
dbtdata~5 mins

One model per source table rule in dbt - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does the 'One model per source table' rule mean in dbt?
It means creating one dbt model for each source table to keep transformations simple and organized.
Click to reveal answer
beginner
Why is it helpful to have one model per source table?
It makes debugging easier, improves clarity, and helps track data lineage clearly.
Click to reveal answer
intermediate
How does the 'One model per source table' rule affect complex transformations?
Complex transformations are built by layering simple models, each based on one source table, making the process easier to manage.
Click to reveal answer
beginner
What is a common mistake when not following the 'One model per source table' rule?
Combining multiple source tables in one model can make the code hard to read and maintain.
Click to reveal answer
intermediate
How does this rule help with testing in dbt?
Testing is simpler because each model corresponds to one source table, so tests can focus on one data set at a time.
Click to reveal answer
What is the main benefit of having one model per source table in dbt?
AReduces the number of models needed
BSimplifies debugging and improves clarity
CCombines all data into one place
DAvoids writing SQL code
What happens if you combine multiple source tables in one dbt model?
AThe code can become complex and hard to read
BIt automatically improves performance
CThe model becomes easier to maintain
DIt reduces the need for testing
How does the 'One model per source table' rule help with data lineage?
AIt hides the source tables
BIt makes data lineage unclear
CIt clearly shows how data flows from source to model
DIt removes the need for documentation
Which of these is a good practice when following the 'One model per source table' rule?
ACreate one model that joins all source tables
BWrite all transformations in one SQL file
CAvoid creating models for source tables
DCreate separate models for each source table
How does this rule affect testing in dbt?
ATesting can focus on one source table at a time
BTesting becomes more complicated
CTesting is not needed
DTesting must cover all tables together
Explain the 'One model per source table' rule and why it is important in dbt projects.
Think about how this rule helps keep your project clean and easy to understand.
You got /4 concepts.
    Describe how following the 'One model per source table' rule impacts testing and maintenance.
    Consider how simple models help you find and fix problems faster.
    You got /4 concepts.