Winter Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: ecus65

dbt Labs dbt-Analytics-Engineering - dbt Analytics Engineering Certification Exam

Examine the code:

select

left(customers.id, 12) as customer_id,

customers.name as customer_name,

case when employees.employee_id is not null then true else false end as is_employee,

event_signups.event_name,

event_signups.event_date,

sum(case when visit_accomodations.type = 'hotel' then 1 end)::boolean as booked_hotel,

sum(case when visit_accomodations.type = 'car' then 1 end)::boolean as booked_ride

from customers

-- one customer can sign up for many events

left join event_signups

on left(customers.id, 12) = event_signups.customer_id

-- an event signup for a single customer can have many types of accommodations booked

left join visit_accomodations

on event_signups.signup_id = visit_accomodations.signup_id

and left(customers.id, 12) = visit_accomodations.customer_id

-- an employee can be a customer

left join employees

on left(customers.id, 12) = employees.customer_id

group by 1, 2

A developer imports a package from a private repository called timeformat for use within their project.

Which statement is correct? Choose 1 option.

Options:

A.

“The package can be added with this configuration in the packages.yml file:”

packages:

- local: /opt/dbt/timeformat

B.

“The package can be installed by running the command dbt build.”

C.

“The package default schema can be overridden in the dbt_project.yml file as:”

models:

timeformat:

+schema: timeseries

D.

“Including the package version/revision in the packages.yml file, for private git packages will result in an error.”

Match the macro to the appropriate hook so that the correct execution steps comply with these rules:

    macro_1() needs to be executed after every dbt run.

    macro_2() needs to be executed after a model runs.

    macro_3() needs to execute before every dbt run.

    macro_4() needs to be executed before a model runs.

Which explanation describes how dbt infers dependencies between models?

Choose 1 option.

A.

Information is gathered from the use of source and ref macros.

B.

All source and ref macros are resolved to database objects and dbt queries them for dependencies.

C.

The underlying SQL code is parsed and relationships are created from explicit table references.

D.

.yml configurations for sources and refs are parsed for dependency information.

28. Consider this DAG:

    model_a → model_c → model_e

    model_b → model_d → model_f

(With model_c and model_d both feeding into the final layer.)

You execute:

dbt run --fail-fast

in production with 2 threads. During the run, model_b and model_c are running in parallel when model_b returns an error.

Assume there are no other errors in the model files, and model_c was still running when model_b failed.

Which model or models will successfully build as part of this dbt run? Choose 1 option.

A.

model_a, model_c, model_d, model_e, model_f

B.

model_a, model_c

C.

model_a

D.

model_a, model_c, model_e

Which is true about writing generic tests?

Choose 1 option.

A.

They should accept one or both of these arguments: model and column_name.

B.

They must contain a {{ ref() }} snippet to a model.

C.

They do not need to be specified under a model's YAML configurations.

D.

They should always accept a column_name.

E.

They are written using the {% macro %} wrapper.

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

A developer has updated multiple models in their dbt project, materialized as tables and views.

They want to run and test all models upstream and downstream from the modified models that are materialized as views.

What command will achieve this? Choose 1 option.

A.

dbt build --select +state:modified, config.materialized:view+

B.

dbt build --select +state:modified+

C.

dbt build --select @state:modified+, @config.materialized:view+

D.

dbt build --select +state:modified +materialized:view+

E.

dbt build --select +state:modified, +config.materialized:view+