0
0
dbtdata~20 mins

Group-based ownership in dbt - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Group Ownership Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding group-based ownership in dbt

In dbt, group-based ownership helps manage access and responsibilities for models. Which statement best describes the main benefit of using group-based ownership?

AIt enables version control integration for group-owned models.
BIt automatically generates documentation for all models owned by a group.
CIt restricts model execution to only one user at a time within a group.
DIt allows assigning ownership to multiple users collectively, simplifying permission management.
Attempts:
2 left
💡 Hint

Think about how managing permissions for many users can be easier when grouped.

data_output
intermediate
2:00remaining
Output of ownership YAML configuration

Given this dbt ownership YAML snippet, what is the list of owners for the model sales_summary?

models:
  - name: sales_summary
    owners:
      - group: analytics_team
      - user: alice
A["analytics_team", "alice"]
B["analytics_team"]
C["alice"]
D[]
Attempts:
2 left
💡 Hint

Look at both group and user keys under owners.

Predict Output
advanced
2:00remaining
Result of dbt ownership query

Consider this SQL query to list owners of models with group ownership in dbt metadata:

SELECT model_name, owner
FROM ownership
WHERE owner_type = 'group';

If the ownership table contains:

| model_name    | owner           | owner_type |
|---------------|-----------------|------------|
| sales_summary | analytics_team  | group      |
| sales_summary | alice           | user       |
| user_data     | data_engineers  | group      |
| user_data     | bob             | user       |

What is the query output?

A
| sales_summary | analytics_team |
| sales_summary | alice |
B
| sales_summary | alice |
| user_data     | bob |
C
| sales_summary | analytics_team |
| user_data     | data_engineers |
D
| user_data     | data_engineers |
| user_data     | bob |
Attempts:
2 left
💡 Hint

Filter only rows where owner_type is 'group'.

🔧 Debug
advanced
2:00remaining
Identify error in group ownership YAML

Which option shows the error in this dbt ownership YAML snippet?

models:
  - name: customer_data
    owners:
      - group: data_team
      - group: analytics_team
      - user: john
AThe YAML is valid; multiple groups and users can be owners.
BOnly one owner is allowed per model; multiple owners cause an error.
CDuplicate 'group' keys under owners cause a syntax error.
DThe 'user' key must come before any 'group' keys.
Attempts:
2 left
💡 Hint

Check if YAML allows multiple entries with the same key inside a list.

🚀 Application
expert
3:00remaining
Assigning group ownership with dbt permissions

You want to assign ownership of the finance_reports model to the finance_team group so that all members can edit and run it. Which YAML snippet correctly sets this group-based ownership?

A
models:
  - name: finance_reports
    owners:
      - user: finance_team
B
models:
  - name: finance_reports
    owners:
      - group: finance_team
C
models:
  - name: finance_reports
    owners:
      - group: finance_team
      - user: finance_team
D
models:
  - name: finance_reports
    owners:
      - group: finance_team
    permissions:
      - edit
      - run
Attempts:
2 left
💡 Hint

Ownership is assigned under owners with group key; permissions are managed separately.