New Year Sale - Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70dumps

dbt-Analytics-Engineering Questions and Answers

Question # 6

Is this materialization supported by Python models in dbt?

Ephemeral

A.

Yes

B.

No

Full Access
Question # 7

You have created a model called stg_tasks and now you need to implement tests.

You provide this in schema.yml:

version: 2

models:

- name: stg_tasks

columns:

- name: completed_at

tests:

- not_null:

- config:

where: "state = 'completed'"

You receive this compilation error:

[WARNING]: Did not find matching node for patch with name 'stg_tasks' in the 'models' section of file 'models/example/schema.yml'

How can you change the configuration on the not_null test to fix this compiler error?

A.

tests:

- not_null:

- config:

where: "state = 'completed'"

B.

tests:

- not_null:

config:

where: "state = 'completed'"

C.

tests:

- not_null:

config:

where: "state = 'completed'"

D.

tests:

- not_null:

- config:

where: "state = 'completed'"

Choose 1 option.

Full Access
Question # 8

You want to run and test the models, tests, and snapshots you have added or modified in development.

Which will you invoke? Choose 1 option.

Options:

A.

dbt build --select state:modified --defer

B.

dbt run --select state:modified --defer --state

dbt test --select state:modified --defer --state

C.

dbt build --select state:modified --defer --state

D.

dbt run --select state:modified --state

dbt test --select state:modified --state

E.

dbt build --select state:modified --state

Full Access
Question # 9

Which two are true about version controlling code with Git?

Choose 2 options.

A.

Git automatically creates versions of files with suffixes.

B.

All the code changes along the lifecycle of a project are tracked.

C.

When bugs are raised, email notifications are automatically sent by Git to repository users.

D.

Git prevents any sensitive fields from being saved in code.

E.

Code can be reverted to a previous state.

Full Access
Question # 10

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:

+materialized: table

…and this warning when compiling your project:

[WARNING]: Configuration paths exist in your dbt_project.yml file which do not apply to any resources.

There are 1 unused configuration paths:

- models.jaffle-shop

What is the root cause?

A run hook in the jaffle_shop project was defined with an incorrect regular expression.

A.

Yes

B.

No

Full Access
Question # 11

Examine the configuration for the source:

sources:

- name: jaffle_shop

schema: jaffle_shop_raw_current

tables:

- name: orders

identifier: customer_orders

Which reference to the source is correct?

A.

{{ source('jaffle_shop_raw_current', 'customer_orders') }}

B.

{{ source('jaffle_shop_raw_current', 'orders') }}

C.

{{ source('jaffle_shop', 'orders') }}

D.

{{ source('jaffle_shop', 'customer_orders') }}

Full Access
Question # 12

Which two dbt commands work with dbt retry?

Choose 2 options.

A.

run-operation

B.

parse

C.

debug

D.

deps

E.

snapshot

Full Access
Question # 13

Full Access
Question # 14

You are working on a complex dbt model with many Common Table Expressions (CTEs) and decide to move some of those CTEs into their own model to make your code more modular.

Is this a benefit of this approach?

The new model can be documented to explain its purpose and the logic it contains.

A.

Yes

B.

No

Full Access
Question # 15

Which command materializes my_model and only its first-degree parent model(s) in the data platform?

Choose 1 option.

A.

dbt run --select +my_model

B.

dbt compile --select +my_model

C.

dbt run --select 1+my_model

D.

dbt run --select +1 my_model

E.

dbt compile --select +1 my_model

Full Access
Question # 16

Full Access
Question # 17

What must happen before you can build models in dbt?

Choose 1 option.

A.

Sources must have been defined in your dbt project.

B.

You must have created a service account in your data platform.

C.

Underlying data must be accessible on your data platform.

D.

Raw data must be cleaned.

Full Access
Question # 18

A dbt run failed with an error message.

Order these steps to fix your pipeline.

Full Access
Question # 19

Examine this query:

select *

from {{ ref('stg_orders') }}

where amount_usd < 0

You want to make this a generic test across multiple models.

Which set of two standard arguments should be used to replace {{ ref('stg_orders') }} and amount_usd? Choose 1 option.

A.

source and column

B.

model and column_name

C.

model_name and column_name

D.

model and field

Full Access