Exam dbt-Analytics-Engineering Topic 1 Question 331 Discussion

Actual exam question for dbt Labs's dbt-Analytics-Engineering exam
Question #: 331
Topic #: 1
Which two are true about dbt tests?
Choose 2 options.

Suggested Answer: C,D Vote an answer

The correct answers are C and D.
dbt supports two main categories of tests: generic tests and singular tests. Generic tests are defined in YAML and applied to models or columns, while singular tests are written as SQL files placed in the /tests/ directory.
This makes Option C correct-singular tests must be created as .sql files inside that folder, and dbt will execute each file as a test query.
Option D is also correct. dbt includes four built-in generic tests: unique, not_null, relationships, and accepted_values. These are considered "native" tests and are available without requiring any additional packages. They cover the most common data quality checks and are applied through YAML configurations on models or columns.
Option A is incorrect because dbt does not automatically apply any tests. All tests-native or custom-must be explicitly defined in YAML or created manually. Nothing is inferred from primary keys.
Option B is incorrect because dbt's package hub contains community packages, not the list of native tests.
Native tests are documented directly within dbt's core functionality.
Option E is incorrect because the constraints configuration is used to create database-level constraints on supported warehouses, not to run dbt tests. Tests still require YAML test definitions or .sql files.
Thus, only C and D accurately describe dbt's testing behavior.

by Nigel at Sep 03, 2026, 09:22 AM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

0
0
0
10