Bird
0
0

Given this dbt_project.yml snippet:

medium📝 Predict Output Q4 of 15
dbt - Project Organization
Given this dbt_project.yml snippet:
models:
  analytics:
    materialized: table
    schema: analytics_schema

What will be the schema and materialization of models under the analytics folder when run?
ASchema: default, Materialization: view
BSchema: analytics_schema, Materialization: view
CSchema: analytics, Materialization: table
DSchema: analytics_schema, Materialization: table
Step-by-Step Solution
Solution:
  1. Step 1: Examine the provided snippet

    The configuration under analytics lacks + prefix before materialized and schema.
  2. Step 2: Understand dbt parsing

    Without +, these are treated as directory names, not configs. Models use defaults: view materialization and default schema from profiles.yml.
  3. Final Answer:

    Schema: default, Materialization: view -> Option A
  4. Quick Check:

    Missing + = defaults apply [OK]
Quick Trick: Without + prefix, configs don't override defaults [OK]
Common Mistakes:
MISTAKES
  • Thinking configs apply without + prefix
  • Assuming materialization is table from snippet
  • Confusing schema setting with directory name

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More dbt Quizzes