0
0
dbtdata~5 mins

Source freshness checks in dbt - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a source freshness check in dbt?
A source freshness check in dbt is a way to monitor how up-to-date your source data is by checking the age of the newest data record against defined thresholds.
Click to reveal answer
beginner
Which configuration key in dbt defines the freshness thresholds for a source?
The key freshness defines thresholds like warn_after and error_after to set limits on acceptable data age.
Click to reveal answer
intermediate
What happens if the source data is older than the error_after threshold in a freshness check?
dbt will mark the freshness check as failed and raise an error, signaling that the source data is too old and may need attention.
Click to reveal answer
intermediate
How do you define a freshness check for a source table in the sources.yml file?
You add a freshness block under the source with warn_after and error_after times, and specify the column to check for freshness.
Click to reveal answer
beginner
Why are source freshness checks important in data pipelines?
They help ensure that data is updated on time, so downstream analysis and reports use fresh and reliable data, preventing decisions based on stale information.
Click to reveal answer
What does the warn_after threshold in a freshness check do?
AAutomatically refreshes the source data
BStops the dbt run immediately
CDeletes old data from the source
DTriggers a warning if data is older than this time
Where do you define source freshness checks in dbt?
AIn the <code>profiles.yml</code> file
BIn the <code>sources.yml</code> file
CIn the model SQL files
DIn the <code>dbt_project.yml</code> file
What column type is typically used for freshness checks?
AInteger column
BText column
CTimestamp or date column
DBoolean column
If a freshness check fails with an error, what should you do?
AInvestigate why the source data is stale and fix the data pipeline
BIgnore the error and continue
CDelete the source table
DChange the <code>warn_after</code> threshold to a higher value
Which dbt command runs source freshness checks?
A<code>dbt source freshness</code>
B<code>dbt run</code>
C<code>dbt test</code>
D<code>dbt compile</code>
Explain how to set up a source freshness check in dbt and why it is useful.
Think about configuration and the purpose of freshness checks.
You got /5 concepts.
    Describe what happens when source data exceeds the error_after threshold in a freshness check.
    Focus on the consequences of stale data detection.
    You got /4 concepts.