Data Storage and Relational Databases: Warehouse vs Lake vs Mart, Star vs Snowflake, Normalization and Data Dictionary
1) What You Need to Know
You’re expected to distinguish where data lives (warehouse vs lake vs mart), how analytics databases are modeled (star vs snowflake), how transactional databases avoid redundancy (normalization), and how organizations document/control data (data dictionary/metadata). In ISC terms, these choices affect data quality, reporting reliability, access controls, change management, and auditability.
Core definitions (exam-tight)
- Data warehouse (DW): A central, integrated, curated repository optimized for analytics/reporting (OLAP); typically structured, historical, and governed.
- Data lake: A repository that stores raw data (structured + semi/unstructured) at scale; schema-on-read (you interpret/structure when you query).
- Data mart: A subset of a DW (or standalone) focused on a single business line (e.g., sales, HR) for faster, targeted reporting.
- Star schema: Dimensional model with a central fact table connected to denormalized dimension tables.
- Snowflake schema: Like star, but dimensions are normalized into multiple related tables (more joins).
- Normalization: Process of structuring relational tables to reduce redundancy and prevent update/insert/delete anomalies.
- Data dictionary: A managed catalog of metadata about data elements (names, definitions, types, allowed values, lineage/ownership, etc.).
When/why you use each (high yield)
- Use a DW when you need trusted, consistent reporting (“single source of truth”) and strong governance.
- Use a data lake when you need flexibility for diverse/raw data and exploratory analytics/ML, accepting higher governance effort.
- Use a data mart when a department needs speed and focus, but you must manage version-of-the-truth risk.
- Use star/snowflake to model analytics data (BI). Use normalization primarily for OLTP transactional design.
Critical ISC angle: Warehouses/marts typically have stronger controls and standardization; lakes increase risk of inconsistent definitions, uncontrolled access, and “data swamp” if governance is weak.
2) Step-by-Step Breakdown
A) How to choose: Lake vs Warehouse vs Mart
- Clarify primary use case
- Operational transactions? (Usually OLTP database, not DW/lake.)
- Analytics/reporting? Continue.
- Assess structure & variability of data
- Mostly structured and consistent KPIs? Favor DW.
- Mixed/unknown structure (logs, text, images) or rapid ingestion? Favor lake.
- Decide on governance needs
- Need certified metrics, reconciliations, audit trail? DW (or tightly governed lakehouse approach).
- Need quick capture first, curate later? lake.
- Scope the audience
- Enterprise-wide reporting? DW.
- Single function/department needs? data mart (ideally sourced from DW).
- Confirm control implications
- For financial reporting, prioritize consistent definitions, change control, access provisioning, and lineage.
B) How to pick: Star vs Snowflake (dimensional modeling)
- Identify the business process (e.g., sales orders, claims).
- Define the grain of the fact table (the single most tested point):
- Example: “one row per invoice line item per day.”
- Choose the facts (measures)
- Additive (sales amount), semi-additive (account balance), non-additive (ratios).
- Identify dimensions (who/what/when/where/how): customer, product, date, region.
- Decide star vs snowflake
- If you want simplicity and BI performance → star (denormalized dimensions).
- If you need reduced redundancy in dimensions and can accept more joins → snowflake.
C) How to normalize a transactional table to 3NF (typical exam workflow)
- List attributes and the candidate primary key.
- Ensure 1NF: all fields are atomic (no repeating groups/multi-valued columns).
- Ensure 2NF: remove partial dependencies (non-key attribute depending on part of a composite key).
- Ensure 3NF: remove transitive dependencies (non-key attribute depending on another non-key attribute).
- Validate dependencies using notation like:
- Re-check anomalies: can you update one fact in one place without inconsistencies?
3) Key Formulas, Rules & Facts
A) Warehouse vs Lake vs Mart (compare fast)
| Concept | What it is | Typical data | Schema approach | Best for | Key risks/controls |
|---|---|---|---|---|---|
| Data Warehouse | Curated, integrated analytics repository | Mostly structured, cleansed, historical | Schema-on-write (model before load) | Standard reporting, KPI consistency, audit support | ETL controls, reconciliations, change management, role-based access, data quality rules |
| Data Lake | Large-scale raw storage | Structured + semi/unstructured | Schema-on-read (interpret at query time) | Data science, exploration, rapid ingestion | “Data swamp,” inconsistent definitions, metadata gaps, overbroad access; needs cataloging/lineage |
| Data Mart | Department-focused subset | Subject-area curated data | Usually dimensional | Fast departmental analytics | Multiple marts can create conflicting numbers; requires governance & conformed dimensions |
ETL vs ELT (often tied to DW vs lake):
- ETL: Extract → Transform → Load (common in classic DW; transform before loading to curated store).
- ELT: Extract → Load → Transform (common when raw lands first—lakes/lakehouses; transform inside platform).
B) Star vs Snowflake (dimensional modeling essentials)
| Item | Star schema | Snowflake schema |
|---|---|---|
| Dimension tables | Denormalized (wider) | Normalized into sub-dimensions |
| Query complexity | Lower (fewer joins) | Higher (more joins) |
| Storage | More redundant | Less redundant |
| BI performance | Often faster/easier for tools | Can be slower due to joins |
| Governance | Simpler for end users | Can model hierarchies more explicitly |
Fact vs Dimension (must-know):
- Fact table: numeric measures + foreign keys to dimensions; typically very large.
- Dimension table: descriptive context (customer, product, date); used for filtering/grouping.
- Conformed dimensions: shared dimensions used consistently across marts (critical to avoid conflicting reports).
C) Normalization (high-yield rules)
| Normal form | Rule (what must be true) | What it prevents | Quick tell |
|---|---|---|---|
| 1NF | No repeating groups; attributes are atomic | Weird arrays/multiple values in a column | “Multiple phone numbers in one field” violates 1NF |
| 2NF | In 1NF and every non-key attribute depends on the whole key | Partial dependency anomalies | Only matters when key is composite |
| 3NF | In 2NF and no transitive dependency among non-key attributes | “Update in two places” issues | Non-key determining non-key |
| BCNF (bonus) | Every determinant is a candidate key | Edge-case dependency anomalies | Tested less; know the idea |
Dependency notation (conceptual):
- Functional dependency: means A determines B.
- Partial dependency example (composite key): but (bad for 2NF).
- Transitive dependency example: and (bad for 3NF if B and C are non-key).
OLTP vs OLAP tie-in:
- OLTP (transactional): normalized to reduce redundancy and anomalies.
- OLAP (analytics): often denormalized (star) to speed reads and simplify queries.
D) Data dictionary (metadata) must-know contents
A data dictionary commonly documents:
- Data element name (business + technical), definition, and purpose
- Data type/length/format (e.g., date format), units, precision/scale
- Allowed values / domains (code lists), defaults, null rules
- Keys and relationships (primary key, foreign key, referential integrity constraints)
- Source system and lineage (where it came from; transformations)
- Data owner/steward and sensitivity classification
- Update frequency and retention
Audit/controls angle: A maintained dictionary supports change control, impact analysis, data governance, and consistent reporting definitions.
4) Examples & Applications
Example 1: Warehouse vs Lake vs Mart (which is best?)
- Scenario: Company needs quarterly financial dashboards with consistent revenue definitions across regions.
- Best fit: Data warehouse (curated, controlled definitions; strong reconciliations).
- Scenario: Company ingests clickstream logs, social text, and IoT sensor feeds for future ML.
- Best fit: Data lake (raw, varied formats; schema-on-read).
- Scenario: Marketing needs a fast campaign ROI dashboard, but enterprise DW exists.
- Best fit: Data mart sourced from the DW (prevents “two truths”).
Example 2: Star schema (identify tables)
- Process: Retail sales
- Grain: one row per receipt line item
- Fact_Sales: DateKey, StoreKey, ProductKey, CustomerKey, Qty, NetSales
- Dim_Date: DateKey, Year, Quarter, Month
- Dim_Product: ProductKey, Brand, Category, Size
- Dim_Store: StoreKey, Region, City
Exam insight: If measures are in dimension tables (e.g., NetSales in Dim_Product), that’s a red flag—measures belong in facts.
Example 3: Snowflake (when it shows up)
- Dim_Product split into:
- Product (ProductKey, SKU, Description, BrandKey)
- Brand (BrandKey, BrandName, ParentCompany)
- Category (CategoryKey, CategoryName)
Exam insight: Snowflaking can model hierarchies cleanly but increases joins; many BI tools prefer star for simplicity.
Example 4: Normalize to 3NF (classic anomaly)
Unnormalized/poor design table:
- OrderLine(OrderID, OrderDate, CustomerID, CustomerName, CustomerAddress, ProductID, ProductName, UnitPrice, Quantity)
Issues
- CustomerName/Address repeat for every line → update anomaly.
- ProductName/UnitPrice repeat → update anomaly.
3NF breakdown (typical outcome)
- Customer(CustomerID, CustomerName, CustomerAddress)
- Product(ProductID, ProductName, UnitPrice)
- OrderHeader(OrderID, OrderDate, CustomerID)
- OrderLine(OrderID, ProductID, Quantity)
Key insight: Put attributes where they depend on the key:
- Customer attributes depend on CustomerID.
- Product attributes depend on ProductID.
5) Common Mistakes & Traps
Confusing a data mart with a data warehouse
- Wrong move: Calling any reporting database a “warehouse.”
- Why wrong: Marts are narrower (department/subject) and can create multiple “truths.”
- Fix: Remember DW = enterprise integrated; mart = subset/department.
Assuming a data lake is automatically “worse controlled”
- Wrong move: Treating “lake” as inherently uncontrolled.
- Why wrong: Lakes can be governed (catalogs, access controls, zones like raw/curated), but require disciplined metadata.
- Fix: Frame it as higher governance burden, not impossible control.
Mixing up schema-on-write vs schema-on-read
- Wrong move: Saying lakes enforce schema before loading.
- Why wrong: Lakes typically land raw first; schema applied at query/processing time.
- Fix: DW = schema-on-write; lake = schema-on-read.
Forgetting the grain of the fact table
- Wrong move: Building a fact table without clearly stating the row-level meaning.
- Why wrong: Grain drives which dimensions and measures fit; wrong grain causes double counting.
- Fix: Always define grain in one sentence before choosing measures.
Putting descriptive attributes in the fact table (or measures in dimensions)
- Wrong move: Storing ProductName in FactSales, or NetSales in DimProduct.
- Why wrong: Facts store measures + keys; dimensions store descriptions.
- Fix: Facts = numbers; dimensions = context.
Thinking normalization is “always best”
- Wrong move: Normalizing an analytics model into many tables.
- Why wrong: BI queries become join-heavy; star schemas are intentionally denormalized.
- Fix: Normalize OLTP; denormalize OLAP (usually).
Missing that 2NF only matters for composite keys
- Wrong move: Trying to “fix 2NF” when the primary key is a single attribute.
- Why wrong: Partial dependency requires a composite key.
- Fix: If key isn’t composite, 2NF is typically satisfied once 1NF holds.
Treating a data dictionary as just a list of field names
- Wrong move: Ignoring ownership, allowed values, lineage, or sensitivity.
- Why wrong: ISC cares about governance, control, and auditability.
- Fix: Dictionary = definitions + rules + stewardship + relationships + lineage.
6) Memory Aids & Quick Tricks
| Trick / mnemonic | Helps you remember | When to use |
|---|---|---|
| Warehouse = “W” for “Well-defined” | Curated, integrated, controlled reporting | When comparing DW vs lake |
| Lake = “Load it all” | Raw data lands first; schema later | Schema-on-read recall |
| Mart = “Marketing/Manager’s slice” | Department/subject subset | Identify marts on questions |
| STAR = “Simple Tables And Reporting” | Star is simpler for BI (fewer joins) | Star vs snowflake |
| Snowflake = “Splits dimensions” | Normalized dimensions → more joins | Spot snowflake patterns |
| 1-2-3 NF = Atomic → Whole key → Nothing but key | 1NF atomic, 2NF whole key, 3NF no transitive | Normalization sequence |
| “Facts are FUNdamental numbers” | Fact tables store numeric measures | Fact vs dimension classification |
7) Quick Review Checklist
- Know DW vs lake vs mart definitions and schema-on-write vs schema-on-read.
- Be able to state why DWs support reliable reporting (curation, governance, reconciliations).
- Remember marts should ideally use conformed dimensions from the DW to avoid conflicting metrics.
- For dimensional models: define grain first, then facts, then dimensions.
- Star = denormalized dimensions, fewer joins; snowflake = normalized dimensions, more joins.
- Normalization goals: reduce redundancy and prevent update/insert/delete anomalies.
- 2NF issues require a composite key; 3NF removes transitive dependencies.
- Data dictionary = metadata: definitions, types, allowed values, keys/relationships, ownership, lineage.
You’ve got this—if you can explain each choice in one sentence and name the main trade-off, you’re exam-ready.