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:
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.
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.
Which is true about writing generic tests?
Choose 1 option.
Which command materializes my_model and only its first-degree parent model(s) in the data platform?
Choose 1 option.
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.




