TECHNOLOGIESTieInn Technologies

Warehouse layers

Data Warehousing · 12 questions

Short notes

Key idea

Warehouses are built in layers so raw data is kept, cleaning happens in one place, and reports read tidy models. Common names: raw/bronze → staging/silver → marts/gold.

Syntax

  • Raw (bronze): an exact copy of the source, append-only, never edited. Lets you replay.
  • Staging (silver): cleaned, typed, renamed, deduplicated; one model per source table.
  • Marts (gold): business-ready facts and dimensions, built for a team or a question.
  • Each layer reads only from the one before it.

Example

raw.orders holds JSON as it arrived. stg_orders casts the amount to a number, converts timestamps to IST, removes test orders and duplicates. fct_orders joins staging tables into the star schema that dashboards use.

Traps

  • Cleaning inside dashboards: every report fixes data differently.
  • Editing raw data removes your ability to rebuild after a bug.
  • Marts reading straight from raw skip the shared cleaning.
  • Too many layers add cost and delay without benefit; three is usually enough.

Want the full lesson with step-by-step examples, a project and a certificate? Data Warehousing course, ₹120 →

Questions

5 free questions
5 questions

    Warehouse layers

  1. Question 1easy

    Why keep the raw layer as an untouched copy of the source?

  2. Warehouse layers

  3. Question 2medium

    Which belongs in the staging layer?

  4. Warehouse layers

  5. Question 3easy

    In the medallion architecture, which layer holds business-ready, aggregated tables?

  6. Warehouse layers

  7. Question 4medium

    Finance and marketing show different revenue totals. What's the likely cause?

  8. Warehouse layers

  9. Question 5easy

    What's the main benefit of building a warehouse in layers?

7 more questions on this topic, with hints, and tests

Sign up free for 21 days of every question and test.