โ† All DBT Flashcard Decks

DBT Testing & Data Quality Flashcards

6 cards from real DBT practice questions. Tap to flip, then mark Knew It or Still Learning โ€” missed cards come back until you master them.

Read the first 6 DBT Testing & Data Quality flashcards as text
  1. Which built-in dbt generic test checks that all values in a column are unique?

    Answer: unique

    The `unique` generic test asserts that every row in a column has a distinct value.

  2. What dbt command runs all tests defined in your project?

    Answer: dbt test

    `dbt test` executes all schema and data tests and reports pass/fail results.

  3. Which YAML key is used to define generic tests on a column inside a schema.yml file?

    Answer: tests

    Under each column definition you add a `tests:` list to attach generic tests.

  4. A `relationships` test in dbt verifies what condition?

    Answer: Column values exist in a referenced model's column

    The `relationships` test is a referential-integrity check ensuring every foreign-key value exists in the parent table.

  5. Which dbt package is the most widely adopted for extending the set of generic tests beyond the four built-in ones?

    Answer: dbt-utils

    `dbt-utils` ships dozens of reusable macros and generic tests such as `expression_is_true` and `recency`.

  6. How do you limit `dbt test` to only tests on a specific model named `orders`?

    Answer: dbt test --select orders

    The `--select` flag (or `-s`) accepts node selectors including model names, tags, and paths.

How this page was made: written with AI tools. We have not yet matched this exam's facts to an official source, so confirm fees, dates and rules with the exam body. Not reviewed by a subject-matter expert. Editorial policy