Bird
0
0

In which dbt configuration file do you specify the schema and constraints for a model contract?

easy🧠 Conceptual Q2 of 15
dbt - Governance and Collaboration
In which dbt configuration file do you specify the schema and constraints for a model contract?
Aprofiles.yml
Bdbt_project.yml
Cschema.yml
Dpackages.yml
Step-by-Step Solution
Solution:
  1. Step 1: Identify where model contracts are defined

    Model contracts specify schema and constraints for models and are defined in the schema.yml file.
  2. Step 2: Understand other files' purposes

    dbt_project.yml configures project settings, profiles.yml manages connection info, and packages.yml handles dependencies.
  3. Final Answer:

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

    Model contracts belong in schema.yml [OK]
Quick Trick: Model contracts go in schema.yml file [OK]
Common Mistakes:
MISTAKES
  • Confusing dbt_project.yml with schema.yml
  • Thinking profiles.yml defines model contracts
  • Assuming packages.yml handles model contracts

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More dbt Quizzes