You define a new generic test on model customers in a YAML file:
version: 2
models:
- name: customers
columns:
- name: customer_id
tests:
- unique
- not_null
The next time your project compiles you get this error:
Raw Error:
mapping values are not allowed in this context
in "
What is the cause of this error?
You want to configure dbt to prevent tests from running if one or more of their parent models is unselected.
Which test command should you execute?
Choose 1 option.
Which explanation describes how dbt infers dependencies between models?
Choose 1 option.
Which two statements about Exposures are true?
Choose 2 options.

Consider this DAG:
app_data.detail_categories -> stg_detail_categories -> skills_with_details
app_data.details -> stg_details -> lessons_with_details
What will support making this DAG more modular? Choose 1 option.
Choose a correct command for each statement.

13. An analyst on your team has informed you that the business logic creating the is_active column of your stg_users model is incorrect.
You update the column logic to:
case
when state = 'Active'
then true
else false
end as is_active
Which test can you add on the state column to support your expectations of the source data? Choose 1 option.
Which two are true about dbt tests?
Choose 2 options.
Given this dbt_project.yml:
name: "jaffle_shop"
version: "1.0.0"
config-version: 2
profile: "snowflake"
model-paths: ["models"]
macro-paths: ["macros"]
snapshot-paths: ["snapshots"]
target-path: "target"
clean-targets:
- "logs"
- "target"
- "dbt_modules"
- "dbt_packages"
models:
jaffle_shop:
orders:
materialized: table
When executing a dbt run your models build as views instead of tables:
19:36:14 Found 1 model, 0 tests, 0 snapshots, 0 analyses, 179 macros, 0 operations, 0 seed files, 0 sources, 0 exposures, 0 metrics
19:36:16 Concurrency: 1 threads (target='default')
19:36:17 Finished running 1 view model in 3.35s.
19:36:17 Completed successfully
19:36:17 Done. PASS=1 WARN=0 ERROR=0 SKIP=0 TOTAL=1
Which could be a root cause of why the model was not materialized as a table?
The target-path is incorrectly configured.
|
PDF + Testing Engine
|
|---|
|
$49.5 |
|
Testing Engine
|
|---|
|
$37.5 |
|
PDF (Q&A)
|
|---|
|
$31.5 |
dbt Labs Free Exams |
|---|
|