Each key must be followed by a colon and a space before the value. Here, schema analytics misses the colon.
Step 2: Verify other parts
Indentation and version format are correct; project name uses correct key name.
Final Answer:
Missing colon after 'schema' key -> Option C
Quick Check:
YAML key-value needs colon [OK]
Hint: Check every key has a colon and space before value [OK]
Common Mistakes:
Forgetting colon after keys
Wrong indentation levels
Using wrong keys for project name
5. You want to configure your dbt project so that all models in the sales folder are materialized as incremental and use the schema sales_data. Which dbt_project.yml snippet correctly achieves this?
hard
A. models:
sales:
+materialized: incremental
+schema: sales_data
B. models:
sales:
materialized: incremental
schema: sales_data
C. models:
sales:
materialized: incremental
+schema: sales_data
D. models:
sales:
+materialized: incremental
schema: sales_data
Solution
Step 1: Understand dbt config syntax for folder-level overrides
To set configs for all models in a folder, use the '+' prefix before keys.
Step 2: Check which options use '+' for both keys
Both materialized and schema need '+' prefix to apply to all models in sales folder.
Final Answer:
models:
sales:
+materialized: incremental
+schema: sales_data -> Option A
Quick Check:
Folder configs use '+' prefix [OK]
Hint: Use '+' before keys to apply configs to all models in a folder [OK]
Common Mistakes:
Missing '+' prefix for folder-level configs
Using '+' on only one key instead of both
Confusing folder name with project name
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.