Recall & Review
beginner
What is the purpose of configuring sources in YAML in dbt?
Configuring sources in YAML in dbt helps define where your raw data lives. It tells dbt which tables or files to use as inputs for your transformations.
Click to reveal answer
beginner
In a dbt source configuration YAML, what key is used to list the tables or files?
The key
tables is used to list the tables or files under a source in the YAML configuration.Click to reveal answer
intermediate
How do you specify the database and schema for a source in dbt YAML?
You specify the
database and schema keys under the source name to tell dbt where to find the source data.Click to reveal answer
beginner
What is the benefit of adding descriptions to sources and tables in YAML?
Adding descriptions helps document your data sources clearly. It makes it easier for anyone reading the project to understand what each source and table represents.
Click to reveal answer
beginner
Show a simple example of a source configuration in YAML for a source named 'raw_data' with one table 'users'.
Example:
sources:
- name: raw_data
database: analytics_db
schema: public
tables:
- name: users
description: 'User information table'Click to reveal answer
Which key in a dbt YAML source config lists the tables?
✗ Incorrect
The
tables key lists the tables under a source.Where do you specify the schema for a source in dbt YAML?
✗ Incorrect
The
schema key is set under the source name to tell dbt where to find the source.Why add descriptions to sources and tables in YAML?
✗ Incorrect
Descriptions help document the data sources for better understanding.
What is the top-level key used to define sources in a dbt YAML file?
✗ Incorrect
The top-level key
sources holds all source definitions.In dbt, what does a source configuration NOT include?
✗ Incorrect
SQL transformation logic is written in model files, not in source YAML configurations.
Explain how to configure a source in dbt using YAML. Include keys you would use and why.
Think about how you tell dbt where your raw data lives and what tables it includes.
You got /5 concepts.
Describe the benefits of documenting sources and tables with descriptions in your YAML configuration.
Why is it good to add notes about your data?
You got /3 concepts.