Bird
0
0

You want to consolidate failure data from multiple tests on a single model for comprehensive analysis. Which strategy best supports efficient querying and storage?

hard📝 Application Q8 of 15
dbt - Advanced Testing
You want to consolidate failure data from multiple tests on a single model for comprehensive analysis. Which strategy best supports efficient querying and storage?
ACreate individual failure tables per test and build a union view combining them
BConfigure all tests to write failures into a single shared failure table
CExport failure data to external CSV files and analyze outside dbt
DDisable <code>store_failures</code> and rely on test logs for failure details
Step-by-Step Solution
Solution:
  1. Step 1: Understand dbt failure storage

    dbt stores failures in separate tables per test by design.
  2. Step 2: Combine failure data

    To analyze failures across tests, create a SQL view that unions all failure tables for the model.
  3. Step 3: Avoid unsupported approaches

    Writing all failures to one table is not supported; exporting to CSV or disabling failure storage reduces analysis capabilities.
  4. Final Answer:

    Create individual failure tables per test and build a union view combining them -> Option A
  5. Quick Check:

    Union views enable combined querying of separate failure tables [OK]
Quick Trick: Use union views to combine separate failure tables [OK]
Common Mistakes:
MISTAKES
  • Trying to store all failures in one table (unsupported)
  • Ignoring failure tables and relying on logs
  • Exporting data externally instead of querying in dbt

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More dbt Quizzes