Complete the code to define a source in dbt that includes a description for governance.
sources:
- name: my_source
description: [1]The description field should be a clear text explaining the source, which helps in governance by documenting data origins.
Complete the code to add a freshness check to ensure data trust.
sources:
- name: my_source
freshness:
[1]: {count: 24, period: hour}The warn_after key sets the threshold in hours after which dbt warns if data is stale, supporting data trust.
Fix the error in the dbt model config to enable governance tags.
models:
- name: my_model
[1]:
tags: ['governance', 'trusted']The correct key to configure model properties like tags is config.
Fill both blanks to create a test that ensures no nulls in a critical column for data trust.
tests: - [1]: column_name: [2]
The not_null test checks that the specified column has no null values, which is important for data trust.
Fill all three blanks to define a schema test with severity and tags for governance.
tests: - name: [1] severity: [2] tags: [[3]]
The test name is 'unique_customer_id', severity is set to 'error' to fail on issues, and the tag 'governance' marks it for governance tracking.