31. Your entire DAG looks like the image shown.

(Several stg_ models appear upstream, feeding into int_ and fct_ models.)
The question asks:
“Was this modeling rule violated?
Staging models dependent on other staging models”
Which two code snippets result in a lineage line being shown in the DAG? 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.

You have written this new agg_completed_tasks dbt model:
with tasks as (
select * from {{ ref('stg_tasks') }}
)
select
user_id,
{% for task in tasks %}
sum(
case
when task_name = '{{ task }}' and state = 'completed'
then 1
else 0
end
) as {{ task }}_completed
{% endfor %}
from tasks
group by 1
The dbt model compiles to:
with tasks as (
select * from analytics.dbt_user.stg_tasks
)
select
user_id,
from tasks
group by 1
The case when statement did not populate in the compiled SQL. Why?
The dbt_project.yml file contains this configuration:
models:
+grants:
select: ['reporter']
How can you grant access to the object in the data warehouse to both reporter and bi?
You run this command:
dbt build --select "source_status:fresher+" --state path/to/prod/artifacts
Which two need to happen before it can be executed successfully?
Choose 2 options.

Match the desired outcome to the dbt command or argument.

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?
Choose a correct command for each statement.

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.
Which two are true for a dbt retry command?
Choose 2 options.
You are building an incremental model.
Identify the circumstances in which is_incremental() would evaluate to True or False.

Ignoring indentation, arrange these YAML code snippets in the correct order to generate descriptions on the source, table, and column:

How can you overwrite configurations for models within a package?
Choose 1 option.
Consider these SQL and YAML files for the model model_a:
models/staging/model_a.sql
{{ config(
materialized = "view"
) }}
with customers as (
...
)
dbt_project.yml
models:
my_new_project:
+materialized: table
staging:
+materialized: ephemeral
Which is true about model_a? Choose 1 option.
Options:
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.