0
0
dbtdata~20 mins

PR review workflows for dbt changes - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
dbt PR Review Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Key Step in PR Review Workflow for dbt Model Changes

In a typical PR review workflow for dbt model changes, which step ensures that the new or modified models do not break existing data transformations?

AMerging the PR directly without any checks
BRunning dbt tests and validations on the changed models
CDeleting the existing models before merging
DIgnoring the PR and continuing development
Attempts:
2 left
💡 Hint

Think about how to verify that changes are safe before merging.

Predict Output
intermediate
1:30remaining
Output of dbt run in PR Workflow

What is the expected output when running dbt run during a PR review for a model that has no syntax errors and passes all dependencies?

dbt
dbt run
AAll models run successfully with status 'OK' and no errors
BSyntax errors reported and run aborted
CPartial models run with some failures
DNo output is shown
Attempts:
2 left
💡 Hint

Consider what happens when dbt runs models without issues.

🔧 Debug
advanced
2:00remaining
Identifying the Cause of a Failed dbt Test in PR Review

During a PR review, a dbt test fails with the error: unique key violation. What is the most likely cause?

AThe test syntax is incorrect
BThe dbt project configuration file is missing
CThe database connection is lost
DThe model contains duplicate values in a column that should be unique
Attempts:
2 left
💡 Hint

Think about what a unique key violation means in data.

🚀 Application
advanced
2:30remaining
Best Practice for Handling Schema Changes in PR Workflow

When a PR includes schema changes like adding a new column to a dbt model, what is the best practice to ensure smooth deployment?

AAdd the new column in the model and update tests and documentation accordingly before merging
BMerge the PR without updating tests or documentation
CDelete the old model and create a new one with the new schema
DIgnore schema changes and only update SQL logic
Attempts:
2 left
💡 Hint

Think about maintaining quality and clarity in your dbt project.

visualization
expert
3:00remaining
Interpreting a dbt DAG Graph in PR Review

You see a DAG graph generated by dbt during a PR review. The graph shows a model with multiple upstream dependencies and several downstream models. What does this imply about the impact of changes to this model?

AChanges to this model only affect itself and no other models
BThis model has no dependencies and is isolated
CChanges to this model can affect many other models both upstream and downstream
DThe graph is incorrect and should be ignored
Attempts:
2 left
💡 Hint

Consider what upstream and downstream dependencies mean in a DAG.