Challenge - 5 Problems
dbt Workflow Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate2:00remaining
Key Benefit of dbt in Data Transformation
Which of the following best explains why dbt transformed data transformation workflows?
Attempts:
2 left
💡 Hint
Think about how dbt helps teams work together on SQL code.
✗ Incorrect
dbt transformed workflows by enabling analysts to write modular SQL with version control, making collaboration easier and code more maintainable.
❓ Predict Output
intermediate2:00remaining
Output of a dbt Model SQL
Given this dbt model SQL code, what is the output table content?
dbt
select user_id, count(*) as order_count from orders group by user_id
Attempts:
2 left
💡 Hint
Count orders per user_id grouped correctly.
✗ Incorrect
The query counts orders per user_id, so the output shows each user with their total orders.
❓ data_output
advanced2:00remaining
Result of dbt Incremental Model Run
If a dbt incremental model runs twice, first with 100 rows and then with 50 new rows, what will be the total rows in the model table?
Attempts:
2 left
💡 Hint
Incremental models add new data without deleting old data.
✗ Incorrect
Incremental models append new rows, so total rows after two runs is 100 + 50 = 150.
🔧 Debug
advanced2:00remaining
Identify the Error in dbt Model SQL
What error will this dbt model SQL produce?
select user_id, sum(amount) as total from sales where date > '2023-01-01'
select user_id, sum(amount) as total from sales where date > '2023-01-01'
dbt
select user_id, sum(amount) as total from sales where date > '2023-01-01'
Attempts:
2 left
💡 Hint
Check if aggregation columns are grouped properly.
✗ Incorrect
The query uses sum(amount) but does not group by user_id, causing a SQL error.
🚀 Application
expert3:00remaining
Choosing dbt Features for Workflow Improvement
A data team wants to improve their transformation workflow by enabling testing, documentation, and modular code reuse. Which dbt features should they use together?
Attempts:
2 left
💡 Hint
Think about testing, documentation, and reusable code.
✗ Incorrect
dbt tests validate data, dbt docs generate documentation, and dbt macros enable reusable SQL code.