0
0
dbtdata~5 mins

Built-in tests (unique, not_null, accepted_values, relationships) in dbt - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does the unique test check in dbt?
The unique test checks that all values in a column are different, with no duplicates.
Click to reveal answer
beginner
Explain the purpose of the not_null test in dbt.
The not_null test ensures that a column has no missing or NULL values, meaning every row has a value.
Click to reveal answer
beginner
What does the accepted_values test verify?
It checks that all values in a column are within a specific list of allowed values, like checking answers fit expected options.
Click to reveal answer
intermediate
Describe the relationships test in dbt.
The relationships test checks if values in one column match values in another table's column, ensuring data links are correct.
Click to reveal answer
beginner
Why are built-in tests important in dbt projects?
They help catch data problems early by automatically checking data quality rules, making data trustworthy and reliable.
Click to reveal answer
Which dbt test ensures no duplicate values in a column?
Arelationships
Bnot_null
Caccepted_values
Dunique
What does the not_null test check for?
ANo missing or NULL values
BValues link to another table
CValues are within a list
DValues are unique
The accepted_values test is used to:
ACheck values belong to a set list
BCheck for duplicates
CCheck for NULLs
DCheck relationships between tables
Which test verifies that values in one table exist in another table?
Aaccepted_values
Bnot_null
Crelationships
Dunique
Why use built-in tests in dbt?
ATo speed up queries
BTo check data quality automatically
CTo create new tables
DTo write SQL code
Describe the four main built-in tests in dbt and what each one checks.
Think about data quality rules like uniqueness, completeness, valid values, and correct links.
You got /4 concepts.
    Explain why built-in tests are useful in managing data projects with dbt.
    Consider how automatic checks help keep data clean and reliable.
    You got /4 concepts.