Bird
0
0

You want to combine failure data from multiple models and tests into one table for dashboarding. Which approach best achieves this?

hard📝 Application Q9 of 15
dbt - Advanced Testing
You want to combine failure data from multiple models and tests into one table for dashboarding. Which approach best achieves this?
ASet <code>store_failures = false</code> and export test logs to CSV.
BCreate a dbt model that unions all failure tables into one consolidated table.
CModify each test to write failures directly to the dashboard database.
DUse dbt's built-in combined failure table feature.
Step-by-Step Solution
Solution:
  1. Step 1: Understand dbt's failure storage capabilities

    dbt does not provide a built-in combined failure table.
  2. Step 2: Use a dbt model to union failure tables

    You can create a model that unions all failure tables for analysis and dashboarding.
  3. Final Answer:

    Create a dbt model that unions all failure tables into one consolidated table. -> Option B
  4. Quick Check:

    Union failure tables via model for combined analysis [OK]
Quick Trick: Union failure tables in a model to combine data [OK]
Common Mistakes:
MISTAKES
  • Expecting built-in combined failure table
  • Disabling failure storage and relying on logs
  • Modifying tests to write outside dbt

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More dbt Quizzes