Home / dbt Analytics Engineering Certification / Mock exam
dbt Analytics Engineering Certification Exam-style mock test

dbt Analytics Engineering Certification Practice Exams|Practice test

Full explanations Exam format Pass line 65%
33 USD One-time · lifetime access
Enroll →

Sample questions

Example1 · dbt Fundamentals & Project Structure
An analytics engineer at a B2B SaaS company initializes a new dbt project to model subscription data. A teammate asks which file dbt uses to recognize the directory as a valid project and to read top-level settings like the project name and model paths. Which file serves this purpose?
・The profiles.yml file, which stores the warehouse connection credentials used at runtime
Incorrect. profiles.yml holds connection and credential details, but it is not what marks a directory as a dbt project.
✓The dbt_project.yml file, which defines the project name, version, and configuration paths
Correct. dbt_project.yml is the required configuration file that identifies the directory as a dbt project and sets top-level settings.
・The packages.yml file, which declares external dependencies installed via dbt deps
Incorrect. packages.yml lists third-party packages to install, but its absence does not prevent dbt from recognizing the project.
・The schema.yml file placed in the models directory to document columns and tests
Incorrect. schema.yml files document and test models, yet they are optional and do not define the project itself.
Explanation
Every dbt project must contain a dbt_project.yml file at its root; dbt reads it to locate models, seeds, and other resources and to apply project-wide configuration.
Sample questions
Example2 · Models, Materializations & refs
At a healthcare services firm, an analytics engineer creates a file models/stg_patients.sql containing a single SELECT statement over a raw source table. What does dbt treat this file as when the project is run?
✓A model whose compiled SELECT statement dbt wraps in DDL to build a database object
Correct. A .sql file with a SELECT in the models directory is a model; dbt wraps the compiled query in the appropriate DDL/DML to materialize a database object.
・A seed file that dbt loads from the local CSV directory into a warehouse table
Incorrect. Seeds come from CSV files in the seeds directory, not from SELECT statements placed in the models directory.
・A snapshot that captures row changes in the source over time using a strategy
Incorrect. Snapshots live in the snapshots directory and use a snapshot block with a strategy, not a plain SELECT model file.
・A reusable macro that other models can call to generate SQL at parse time
Incorrect. Macros are defined with Jinja macro blocks in the macros directory and generate SQL; a SELECT file is a model, not a macro.
Explanation
A dbt model is simply a SQL SELECT statement in the models directory; dbt compiles it and wraps it in DDL/DML to build the object.
Example3 · Testing, Documentation & Sources
At the retailer UrbanThread, every row in the stg_orders model must carry a populated customer_id so downstream revenue attribution never drops orders. Which generic test should the analytics engineer add to the customer_id column in the model's YAML properties?
・Add the unique generic test, because it guarantees every customer_id value appears only once
Incorrect. unique only enforces no duplicates; a null customer_id would still slip through because nulls are not treated as duplicate values.
✓Add the not_null generic test to the customer_id column entry in the model YAML
Correct. not_null fails the build whenever any customer_id is null, which is exactly the populated-value guarantee required here.
・Add a relationships generic test pointing customer_id to the orders source table
Incorrect. relationships verifies referential integrity against another model, not that the column itself is free of nulls.
・Add the accepted_values generic test listing the full set of valid customer_id values
Incorrect. accepted_values checks membership in a fixed list and is impractical for an unbounded identifier like customer_id.
Explanation
The requirement is that the column is never null, which maps directly to dbt's built-in not_null generic test.
Example4 · Jinja, Macros & Packages
An analytics engineer at a financial services firm is templating a model that loops over a list of loan product codes. The loop control logic should run without printing anything to the compiled SQL, while the individual product codes should be rendered into the query. Which delimiter pairing achieves this correctly?
・Wrap the whole for-loop body including the control line inside double curly braces so the entire block renders directly into the final compiled SQL
Incorrect. Expression delimiters render output, so wrapping the loop control line in them would print unwanted text and produce invalid SQL.
・Use expression delimiters with double curly braces on the loop control lines and statement delimiters with curly-brace-percent on the product code values
Incorrect. This reverses the delimiters: control statements need curly-brace-percent and value output needs double curly braces, not the other way around.
✓Use statement delimiters on the for and endfor lines, and expression delimiters on the product code values
Correct. Statement delimiters execute control logic silently while expression delimiters render the loop variable values into the compiled SQL.
・Use comment delimiters with curly-brace-hash around every line of the loop so that nothing at all is rendered into the compiled output
Incorrect. Comment delimiters suppress all rendering, so the product codes would never appear in the query at all.
Explanation
Jinja statement delimiters (curly-brace-percent) run logic without output; expression delimiters (double curly braces) render values. Loop control uses statements; emitted values use expressions.
Example5 · Deployment, Jobs & Orchestration
At a manufacturing distributor, the analytics team needs their nightly inventory models refreshed every day at 02:00 UTC after the ERP extract lands. Which approach configures this recurring refresh in dbt Cloud?
✓Create a scheduled job in a deployment environment with commands and a cron-style schedule of 02:00 UTC
Correct. Scheduled dbt Cloud jobs live in a deployment environment, hold the run commands, and support cron-style timing like 02:00 UTC daily.
・Run the models manually from the dbt Cloud IDE every night after confirming the ERP extract has finished loading
Incorrect. Manual IDE runs are for development and ad hoc work; they cannot provide an unattended recurring nightly schedule.
・Add a cron expression to the dbt_project.yml file so the project self-triggers the run at 02:00 UTC each day
Incorrect. dbt_project.yml defines project configuration, not scheduling; it has no cron trigger mechanism for runs.
・Set a run-interval variable inside the model's config block so dbt re-executes the model automatically overnight
Incorrect. A model config block controls materialization and tags, not run cadence; there is no self-scheduling interval setting.
Explanation
Recurring runs in dbt Cloud are defined as scheduled jobs within a deployment environment, where a cron schedule and the job commands are configured together.
Measure your readiness with a full mock exam
All questions · full explanations · lifetime access
Enroll(33 USD)