0
0
dbtdata~20 mins

dbt in CI/CD pipelines - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
dbt CI/CD Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate
1:30remaining
dbt run command output in CI
You run dbt run in a CI pipeline. Which output indicates a successful model build?
dbt
dbt run
AWarning: Some models skipped due to config
BError: Model 'sales' not found
CCompleted successfully: 5 models executed, 0 errors
DSyntaxError: Unexpected token in SQL
Attempts:
2 left
💡 Hint
Look for messages indicating no errors and models executed.
Configuration
intermediate
1:30remaining
Configuring dbt test in CI pipeline
Which dbt command configuration is correct to run tests in a CI pipeline?
Adbt compile --run-tests
Bdbt run --test
Cdbt build --skip-tests
Ddbt test --models tag:ci
Attempts:
2 left
💡 Hint
Tests are run with the dbt test command.
🔀 Workflow
advanced
2:00remaining
dbt CI/CD pipeline step order
What is the correct order of steps in a dbt CI/CD pipeline?
A1,2,3,4
B2,1,3,4
C1,3,2,4
D3,2,1,4
Attempts:
2 left
💡 Hint
Think about loading data first, then building, testing, and documenting.
Troubleshoot
advanced
2:00remaining
dbt test failure in CI pipeline
A dbt test fails in CI with this error: Database Error: relation 'stg_customers' does not exist. What is the most likely cause?
AThe model 'stg_customers' was not built before tests ran
BThe test SQL syntax is incorrect
CThe database connection credentials are wrong
DThe dbt version is incompatible with the database
Attempts:
2 left
💡 Hint
Check if the model exists before testing.
Best Practice
expert
2:30remaining
Best practice for dbt artifacts in CI/CD
Which practice is best for handling dbt artifacts (manifest.json, run_results.json) in a CI/CD pipeline?
AIgnore artifacts to save storage space
BStore artifacts as pipeline artifacts for debugging and documentation
CDelete artifacts immediately after dbt run to avoid clutter
DOnly generate artifacts locally, not in CI
Attempts:
2 left
💡 Hint
Artifacts help understand pipeline results and failures.