Quiz: Advanced dbt Concepts

Test your knowledge of advanced dbt concepts.

1

What’s the correct way to use a generic test?

A)

In a property file:

version: 2

models:
  - name: good_orders
    columns:
      - name: order_id
        tests:
          - unique
B)

In a test file:

{% test unique() % }
SELECT COUNT(DISTINCT id)
FROM {{ model }}
{% endtest %}
C)

In a config block in a model:

{{ config(
 test="unique"
)
}}
D)

Directy in the terminal:

dbt test -s good_orders --column unique_id --test_name unique
Question 1 of 70 attempted

Get hands-on with 1400+ tech skills courses.