A. Because the indentation for 'users' is incorrect under 'my_project'
B. Because '+materialized' cannot be set in YAML
C. Because tags must be a string, not a list
D. Because 'models' key is missing
Solution
Step 1: Check YAML indentation rules for dbt configs
In dbt, model configs under a project must be indented properly; 'users' should be at the same level as '+materialized'.
Step 2: Identify the indentation error
'users' is indented too far, making it a child of '+materialized' which is invalid.
Final Answer:
Because the indentation for 'users' is incorrect under 'my_project' -> Option A
Quick Check:
YAML indentation matters for nested configs [OK]
Hint: Check YAML indentation carefully for nested configs [OK]
Common Mistakes:
Ignoring YAML indentation importance
Thinking '+materialized' is invalid syntax
Assuming tags cannot be lists
5. You want to create a dbt model that selects only active users from a table, but the 'active' flag is stored in a YAML config. Which approach correctly combines SQL, Jinja, and YAML to achieve this?
hard
A. Use Jinja to read YAML directly inside SQL without defining variables
B. Write WHERE active = true directly in SQL without YAML or Jinja
C. Define 'active_flag: true' in YAML, then use WHERE active = {{ var('active_flag') }} in SQL with Jinja
D. Set 'active_flag' in YAML but forget to use Jinja in SQL, so filter is missing
Solution
Step 1: Store the filter value in YAML as a variable
Define 'active_flag: true' in YAML under vars or config to make it accessible.
Step 2: Use Jinja to insert the variable in SQL WHERE clause
Use WHERE active = {{ var('active_flag') }} so the SQL filters active users dynamically.
Final Answer:
Define 'active_flag: true' in YAML, then use WHERE active = {{ var('active_flag') }} in SQL with Jinja -> Option C
Quick Check:
YAML vars + Jinja in SQL = dynamic filters [OK]
Hint: Use YAML vars + Jinja {{ var() }} in SQL WHERE [OK]
Common Mistakes:
Hardcoding filter in SQL ignoring YAML
Not using Jinja to insert YAML vars
Trying to read YAML directly in SQL without var()
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.