Bird
0
0

In dbt metric definitions, which YAML key specifies the model where the metric is calculated?

easy🧠 Conceptual Q2 of 15
dbt - Advanced Patterns
In dbt metric definitions, which YAML key specifies the model where the metric is calculated?
Aname
Btype
Cmodel
Dexpression
Step-by-Step Solution
Solution:
  1. Step 1: Review metric YAML keys

    Common keys include name, model, type, and expression.
  2. Step 2: Identify the key for model reference

    The 'model' key points to the dbt model where the metric is defined or calculated.
  3. Final Answer:

    model -> Option C
  4. Quick Check:

    Model key in metric YAML = model [OK]
Quick Trick: Model key points to calculation source in metric YAML [OK]
Common Mistakes:
MISTAKES
  • Confusing 'name' with model reference
  • Using 'expression' to specify model
  • Assuming 'type' defines the model

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More dbt Quizzes