Exam dbt-Analytics-Engineering Topic 3 Question 39 Discussion

Actual exam question for dbt Labs's dbt-Analytics-Engineering exam
Question #: 39
Topic #: 3
Which command materializes my_model and only its first-degree parent model(s) in the data platform?
Choose 1 option.

Suggested Answer: D Vote an answer

The correct answer is D: dbt run --select +1 my_model.
In dbt's selection syntax, the + operator is used to include parents (upstream) and/or children (downstream) of a given node. When used as +my_model or my_model+, it means "include all ancestors" or "all descendants" respectively, with no limit on depth.
To limit how many levels of parents or children are included, dbt allows a numeric depth between the + and the resource name. +1 my_model (or my_model+1) means:
* Select my_model
* Plus only its first-degree parents (direct dependencies), and no further ancestors.
Because you want to materialize the models, you must use dbt run, not dbt compile. dbt compile only compiles SQL and does not create or update relations in the data platform.
So:
* Option A (dbt run --select +my_model) would include all upstream ancestors, not just first-degree parents.
* Options B and E use compile, so they don't materialize.
* Option C is just syntactically wrong.
Therefore, the only command that both runs models and limits selection to my_model plus its first-degree parents is dbt run --select +1 my_model.

by fabio.leon at Jan 14, 2026, 06:43 AM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
fabio.leon
2026-01-14 06:43:46
Selected Answer: C
The answer is C. The correct sintaxis is n+. Look this reference: https://docs.getdbt.com/reference/node-selection/graph-operators#the-n-plus-operator
upvoted 1 times
...
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

0
0
0
10