0
0
dbtdata~5 mins

Test severity levels in dbt - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What are the common test severity levels in dbt?
The common test severity levels in dbt are error and warn. <br> - error: Fails the run if the test fails. <br> - warn: Logs a warning but does not fail the run.
Click to reveal answer
beginner
How does setting a test severity to 'warn' affect a dbt run?
Setting a test severity to 'warn' means that if the test fails, dbt will log a warning message but will not stop or fail the entire run. This allows the pipeline to continue while highlighting potential issues.
Click to reveal answer
beginner
What happens when a dbt test with severity 'error' fails?
When a dbt test with severity 'error' fails, the entire dbt run stops and fails. This is used for critical tests where failure means the data or model is not reliable.
Click to reveal answer
intermediate
How do you specify test severity in a dbt schema.yml file?
In the schema.yml file, you specify severity inside the test configuration like this:<br>
tests:<br>  - unique:<br>      severity: warn
<br>This sets the test severity to 'warn' for that test.
Click to reveal answer
intermediate
Why is it useful to have different test severity levels in dbt?
Different severity levels let you control how strict your data quality checks are.<br> - Use 'error' for critical checks that must pass.<br> - Use 'warn' for less critical checks to monitor issues without stopping the pipeline.<br>This helps balance reliability and workflow continuity.
Click to reveal answer
What does a test severity of 'warn' do in dbt?
AAutomatically fixes the data issue
BFails the run if the test fails
CIgnores the test completely
DLogs a warning but continues the run
Which severity level causes dbt to stop the run on test failure?
Awarn
Berror
Cinfo
Ddebug
Where do you set the severity level for a dbt test?
AIn the schema.yml file under the test configuration
BIn the dbt run command
CIn the model SQL file
DIn the dbt_project.yml file
Why might you use 'warn' instead of 'error' for some tests?
ATo allow the pipeline to continue while monitoring issues
BTo speed up the dbt run
CTo ignore the test results
DTo automatically fix data errors
What is the default severity level if none is specified in dbt tests?
Ainfo
Bwarn
Cerror
Ddebug
Explain the difference between 'warn' and 'error' severity levels in dbt tests.
Think about how each severity affects the dbt run behavior.
You got /4 concepts.
    Describe how to set a test severity level in a dbt schema.yml file with an example.
    Look at the test configuration block in schema.yml.
    You got /3 concepts.