Explain it in 60 seconds
Model contracts
Data Engineering · dbt · Intermediate
What are model contracts in dbt and why use them?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- A contract defines column names and data types a model must produce.
- With contract enforced, dbt fails the build if the output doesn't match.
- Constraints like not_null and primary key can be declared, enforced where the platform supports it.
- Useful for public models that other teams or tools depend on.
- Combine with model versions for breaking changes.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.