Bird
0
0

Which file in a dbt project typically contains the definitions for unit tests on models?

easy📝 Conceptual Q2 of 15
dbt - Advanced Testing
Which file in a dbt project typically contains the definitions for unit tests on models?
Adbt_project.yml
Bschema.yml
Cprofiles.yml
Dpackages.yml
Step-by-Step Solution
Solution:
  1. Step 1: Identify where tests are defined in dbt

    Tests on models and columns are defined in schema.yml files.
  2. Step 2: Differentiate from other config files

    dbt_project.yml configures the project, profiles.yml manages connections, packages.yml manages dependencies.
  3. Final Answer:

    schema.yml -> Option B
  4. Quick Check:

    Test definitions file = schema.yml [OK]
Quick Trick: Tests live in schema.yml files in dbt projects [OK]
Common Mistakes:
MISTAKES
  • Confusing schema.yml with dbt_project.yml
  • Thinking profiles.yml holds test definitions
  • Assuming packages.yml defines tests

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More dbt Quizzes