Docsity

DBT Analytics Engineering Certification: Questions and Solutions, Exams of Advanced Data Analysis

Toggle sidebar
bg1
DBT Analytics Engineering Certification
Questions with Complete Solutions
Which is the right order in which dbt prioritizes configurations Correct
Answer-in-file config() block > takes priority over properties defined in
a .yml file > takes priority over config defined in the project file
Choose two valid snapshot strategies in dbt Correct Answer-check and
timestamp
Which is a task which is achieved by ref function Correct Answer-
automatically build the dependency graph
Given the following model code:
Select col_1, col_2 From {{ ref('model_a') }}
While running dbt run, following error occurred: table does not exist
What is the most likely error (Choose 2) Correct Answer-wrong
database or schema and not enough permissions
Given the snapshot config, how check_cols will be used
{{ config(
target_schema='history',
target_database='analytics',
strategy='timestamp',
unique_key='id',
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download DBT Analytics Engineering Certification: Questions and Solutions and more Exams Advanced Data Analysis in PDF only on Docsity!

DBT Analytics Engineering Certification

Questions with Complete Solutions

Which is the right order in which dbt prioritizes configurations Correct Answer-in-file config() block > takes priority over properties defined in a .yml file > takes priority over config defined in the project file Choose two valid snapshot strategies in dbt Correct Answer-check and timestamp Which is a task which is achieved by ref function Correct Answer- automatically build the dependency graph Given the following model code: Select col_1, col_2 From {{ ref('model_a') }} While running dbt run, following error occurred: table does not exist What is the most likely error (Choose 2) Correct Answer-wrong database or schema and not enough permissions Given the snapshot config, how check_cols will be used {{ config( target_schema='history', target_database='analytics', strategy='timestamp', unique_key='id',

updated_at='updated_at', check_cols=["col_1", "col_2"]) }} Correct Answer-check_cols will be ignored Which 2 are valid property for Metrics Correct Answer- calculation_method and meta Arrange resolution of environment variables in dbt from least preceedence to highest preceedence

  1. Job level value
  2. Environment level default
  3. Project level default
  4. Optional default values in jinja code Correct Answer-1,2,3,
  5. Given the below properties, how marts/model_a.sql will be materialized models: my_project: dwh: # materialize all models in models/events as tables +materialized: incremental marts: # this is redundant, and does not need to be set +materialized: table Correct Answer-Table
  6. What is the most likely reason of following error

And following config are defined in events/base/model_a.sql {{ config( schema=base) }} While running dbt run events/base/model_a.sql as issue occurred: "Object Not Found or Permission Denied". What is the most likely reason (Assume the system is set up such that if a custom schema is provided, a model's schema name should match the custom schema) Correct Answer-a. No write access on schema "base"

  1. Given a dbt project has target schema as "analytics". Following configuration is provided in dbt_projects.yml. models: my_project: marketing: +schema: marketing Where will marketing models will be created: Correct Answer-a. analytics_marketing
  2. Given the following .yml file section models:
  • name: stg_jaffle_shop__customers config: tags: ['pii'] columns:
  • name: customer_id
  • tests:
  • unique
  • not_null

An error was raised during compile time. Identify the error: Correct Answer-a. tests is not a list property - as in, it should not have the - before it

  1. Match materialization options with use cases A. Table B.View C. Ephemeral D. Incremental 1. best suited for models that do not do significant transformation 2. Use for any models being queried by BI tools, to give your end user a faster experience 3. when your dbt runs are becoming too slow 4. do not need to be queried directly Correct Answer- a. A โ†’ 2, B โ†’ 1, C โ†’ 4, D โ†’ 3
  2. Given the following .yml file section models:
  • name: stg_jaffle_shop__customers config: tags: ['pii'] columns:
  • name: customer_id tests:
  • unique
  • not_null
  • name: stg_jaffle_shop__orders config: materialized: view
  1. Some of the report users reported the data is stale. Identify most likely issue: Correct Answer-a. Source not refreshed
  2. Given following configuration in project.yml file: target-path: compiled-target where will the artefacts be generated if dbt compile command is issued: Correct Answer-a. /compiled-target
  3. Given following config, if table_1 is not refreshed for 7 days, how dbt will report source freshness for table_ version: 2 sources: - name: source_1 freshness: warn_after: count: 6 period: ho Correct Answer-a. error
  4. Which 2 features are NOT provided by dbt: Correct Answer-a. Migrate from SVN to GIT and design Facts and Dimensions
  5. Identify 2 jinja context methods which are available in generate_schema_name macro: Correct Answer-a. env_var and exceptions
  6. The requirement is to provide an environment variable to configure how models are materialized for project_a, but if the variable is not set then all models should be materialized as table. Will following code handle the requirement

...models: project_a: +materialized: "{{ env_var('DBT_MATERIALIZATION', 'table') }}" Correct Answer- a. yes

  1. Which is a mandatory property of an metrics resource: Correct Answer-a. label
  2. Identify 2 mandatory config for a snapshot: Correct Answer-a. unique_key and target_schema
  3. Choose 3 resource types can be documented using description key in a .yml file: Correct Answer-a. sources, models, and seeds
  4. A requirement to run CI jobs is to run only modified resources. Will following statement running on every pull request solve the need: dbt build Correct Answer-a. no
  5. What is the most likely reason of following error Completed with 1 error and 0 warnings: Encountered an error:Found a cycle: model.jaffle_shop.customers --> model.jaffle_shop.stg_customers --> model.jaffle_shop.customers Correct Answer-a. There is a circular reference identified
  6. What is the most likely reason of following error