Challenge - 5 Problems
Seed Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ Predict Output
intermediate2:00remaining
Output of a dbt seed CSV import
Given a seed CSV file named
and a dbt project configured to load this seed, what will be the output of the SQL query
countries.csv with the following content:country_code,country_name US,United States CA,Canada MX,Mexico
and a dbt project configured to load this seed, what will be the output of the SQL query
select * from {{ ref('countries') }}?Attempts:
2 left
💡 Hint
Think about what dbt seeds do with CSV files and how they become tables.
✗ Incorrect
dbt seeds load CSV files as tables in the data warehouse. The query selects all rows from the seeded table, so all three rows appear.
❓ data_output
intermediate1:00remaining
Number of rows in a seeded table after dbt seed
If you have a seed CSV file with 10 rows (excluding header) and run
dbt seed, how many rows will the resulting table contain?Attempts:
2 left
💡 Hint
Remember that the header row is not counted as data.
✗ Incorrect
dbt seeds create tables with the exact number of data rows from the CSV, excluding the header.
🔧 Debug
advanced2:00remaining
Why does dbt seed fail to load a CSV with inconsistent columns?
You have a seed CSV file where some rows have fewer columns than the header row. Running
dbt seed results in an error. What is the most likely cause?Attempts:
2 left
💡 Hint
Think about how CSV parsers handle rows with missing columns.
✗ Incorrect
dbt seed uses CSV parsing that expects each row to have the same number of columns as the header. Missing columns cause errors.
🚀 Application
advanced2:30remaining
Using seeds for static lookup tables in dbt models
You want to use a static lookup table for country codes in your dbt models. Which approach correctly uses a seed for this purpose?
Attempts:
2 left
💡 Hint
Seeds are designed to load static CSV data as tables for easy reference.
✗ Incorrect
Seeds allow you to maintain static reference data in CSV files and use them as tables in your dbt models via refs.
🧠 Conceptual
expert3:00remaining
Best practice for updating static reference data with dbt seeds
You have a seed CSV file used for static reference data in production. What is the best practice to update this data safely?
Attempts:
2 left
💡 Hint
Think about how dbt manages seed tables and refreshing data.
✗ Incorrect
Using
dbt seed --full-refresh reloads the seed table fully with updated CSV data, ensuring consistency.