Bird
0
0

You need to assign different group owners to multiple dbt models within the same project YAML file. Which YAML structure correctly applies group-based ownership to each model separately?

hard🚀 Application Q8 of 15
dbt - Governance and Collaboration
You need to assign different group owners to multiple dbt models within the same project YAML file. Which YAML structure correctly applies group-based ownership to each model separately?
A<pre>models: - name: model_a owners: ['group:team_alpha'] - name: model_b owners: ['group:team_beta']</pre>
B<pre>models: owners: - 'group:team_alpha' - 'group:team_beta'</pre>
C<pre>owners: - model_a: 'group:team_alpha' - model_b: 'group:team_beta'</pre>
D<pre>models: - name: model_a - name: model_b owners: ['group:team_alpha', 'group:team_beta']</pre>
Step-by-Step Solution
Solution:
  1. Step 1: Understand YAML structure for models

    Each model should be an item under 'models' with its own properties.
  2. Step 2: Assign owners per model

    Owners must be specified inside each model's config as a list with 'group:' prefix.
  3. Step 3: Evaluate options

    models:
      - name: model_a
        owners: ['group:team_alpha']
      - name: model_b
        owners: ['group:team_beta']
    correctly assigns owners per model; others misuse YAML keys or structure.
  4. Final Answer:

    Option A -> Option A
  5. Quick Check:

    Owners are per model, not global or incorrectly nested [OK]
Quick Trick: Assign owners inside each model block [OK]
Common Mistakes:
MISTAKES
  • Assigning owners globally instead of per model
  • Incorrect YAML indentation or keys
  • Listing owners outside model definitions

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More dbt Quizzes