Winter Sale Flat 65% Limited Time Discount offer - Ends in 0d 00h 00m 00s - Coupon code: netdisc

dbt Labs dbt-Analytics-Engineering dbt Analytics Engineering Certification Exam Exam Practice Test

dbt Analytics Engineering Certification Exam Questions and Answers

Testing Engine

  • Product Type: Testing Engine
$43.75  $124.99

PDF Study Guide

  • Product Type: PDF Study Guide
$38.5  $109.99
Question 1

Which two code snippets result in a lineage line being shown in the DAG? Choose 2 options.

Options:

A.

{{ source('source', 'table') }}

B.

{{ ref('stg_jaffle_shop__customers') }}

C.

dbt_jsmith.stg_jaffle_shop__customers

D.

{{ target.schema }}

E.

{{ source('jaffle_shop.customers') }}

Question 2

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:

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

Question 3

Options:

Question 4

You want to restrict which models can refer to a specific model.

How can this be done?

Choose 1 option.

Options:

A.

Add model groups and set access to private.

B.

Modify your data warehouse's permissions to restrict usage of the object.

C.

Set access to protected for that specific model.

D.

Create another version with a _v2 suffix and set the latest version to 2 in the model’s configuration.

Question 5

Which statement is true regarding source freshness checks?

Choose 1 option.

Options:

A.

The freshness check can be disabled with freshness: null.

B.

A source freshness check will always exit immediately after the first failure.

C.

dbt source freshness should always be the final command in a run.

D.

dbt build will automatically run source freshness checks.

Question 6

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.

Options:

A.

Invoke the command: dbt source freshness.

B.

Invoke either dbt run or dbt build.

C.

Add generic tests to your sources.

D.

Define a freshness block on your source(s).

E.

Test your sources with dbt test.

Question 7

You run the command:

dbt test --select 'test_type:singular'

What will the command run?

Options shown:

Options:

A.

furniture_customers_test

B.

furniture_customers_test

macro_stg_tpch_orders_assert_pos_price

macro_stg_tpch_suppliers_assert_pos_acct_bal

stg_tpch_orders_assert_positive_price

C.

macro_stg_tpch_orders_assert_pos_price

macro_stg_tpch_suppliers_assert_pos_acct_bal

stg_tpch_orders_assert_positive_price

D.

furniture_customers_test

stg_tpch_orders_assert_positive_price

Choose 1 option.

Question 8

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.

Options:

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+

Question 9

You work at an e-commerce company and a vendor provides their inventory data via CSV file uploads to an S3 bucket.

How do you prep the data for dbt transformations?

Choose 1 option.

Options:

A.

Create a dbt model with a view querying the external table directly.

B.

Run a pre-hook to create a temporary table and query from it in a staging model.

C.

Use dbt seed to stage the data in your data platform.

D.

Declare the external table as a source using the external configuration.

Question 10

Consider this DAG for a dbt project. You have configured your environment to use one thread.

When running dbt run, you determine that model_d fails to materialize.

How will changing the command from dbt run to dbt run --fail-fast impact the execution of dbt run when model_d fails to materialize? Choose 1 option.

Options:

Options:

A.

dbt will attempt to materialize the rest of the models.

B.

dbt will drop the existing version of model_d in the data platform.

C.

dbt will attempt to materialize everything else except for model_f.

D.

dbt will stop building any additional nodes in the DAG.

Question 11

Which two configurations can be applied to a dbt test?

Choose 2 options.

Options:

A.

on_schema_change

B.

tags

C.

enabled

D.

materialized

E.

persist_docs

Question 12

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.

Options:

A.

source and column

B.

model and column_name

C.

model_name and column_name

D.

model and field

Question 13

You want to add new columns to an existing model with a new version.

What will trigger warnings for removal of older model versions?

Choose 1 option.

Options:

A.

Create a new version of the model

B.

Provide a configuration for deprecation_date

C.

Configure the old model as enabled: false

D.

Include “deprecated” in the description of the model

Question 14

In development, you want to avoid having to re-run all upstream models when refactoring part of your project.

What could you do to save time rebuilding models without spending warehouse credits in your next command?

Options:

A.

Replace your {{ ref() }} functions with hard-coded references.

B.

Refer to a manifest and utilize the --defer and --state flags.

C.

Clone your upstream models from the production schema to the development schema.

D.

Leverage artifacts from a prior invocation by passing only the --state flag.

Question 15

You are working with git to version control the dbt logic.

Order these steps to add or modify transformations to your dbt project.

Options:

Question 16

Match the desired outcome to the dbt command or argument.

Options:

Question 17

Which two are true about version controlling code with Git?

Choose 2 options.

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.

Question 18

Which two statements about Exposures are true?

Choose 2 options.

Options:

A.

Models, sources, and metrics are downstream from Exposures.

B.

Exposures are materialized in the database.

C.

Exposures describe a downstream use of your dbt project.

D.

Exposures are defined in .sql files.

E.

You can run, test, and list resources that feed into your Exposure.

Question 19

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 "", line 7, column 21

What is the cause of this error?

Options:

A.

tests should be a dictionary key, not a list

B.

tests should be wrapped in double quotes (")

C.

unique and not_null should not be elements in a list

D.

unique and not_null should be indented at the same level as tests