Beyond Relational: Master NoSQL & Data Warehousing

Alternative Databases & Data Warehouses (HL)

Relational databases power transactions, but modern applications demand flexible schemas, horizontal scale, and analytical speed. This HL topic equips you to choose, design, and justify the right data platform — from graph databases for social networks to columnar warehouses for business intelligence.

  • IBDP CS HL ONLY

This topic

Computer Science
Notes
4

Overview

A3.4 Alternative databases and data warehouses (HL only)

This HL-only topic extends the relational model into the diverse world of alternative databases. Students examine the CAP theorem, BASE consistency, and the structural differences between document stores (MongoDB), key-value stores (Redis), graph databases (Neo4j), and wide-column stores (Cassandra). The second half covers data warehousing: dimensional modelling (star and snowflake schemas), OLAP operations (slice, dice, drill-down, roll-up), and the ETL pipeline that feeds analytical workloads.

Assessment appears in Paper 1 (structured questions) and Paper 2 (scenario-based system design). Expect to justify database selection for a given use case, compare consistency models, design a star schema from requirements, or explain how ETL transforms operational data into analytical insight. HL students must also evaluate trade-offs between SQL and NoSQL in distributed environments.

Key ideas

What A3.4 Alternative databases and data warehouses (HL only) covers

  1. 01

    NoSQL Database Families

    Document, key-value, graph, and wide-column stores — their data models, query patterns, and ideal use cases.

  2. 02

    CAP Theorem & Consistency Models

    Understanding the trade-offs between consistency, availability, and partition tolerance; ACID vs BASE.

  3. 03

    Data Warehouse Architecture

    Dimensional modelling with star and snowflake schemas; fact tables, dimension tables, and surrogate keys.

  4. 04

    OLAP & Analytical Processing

    Cube operations — slice, dice, drill-down, roll-up, pivot — and the difference between MOLAP, ROLAP, and HOLAP.

  5. 05

    ETL Pipelines

    Extract, transform, load processes: staging, cleansing, conforming dimensions, and incremental loading strategies.

Outcomes

Learning outcomes

  • Select the Right Database ParadigmGiven a scenario, recommend and justify a NoSQL type or relational approach based on data structure, scale, and consistency needs.
  • Design a Dimensional ModelCreate a star schema from business requirements, identifying facts, dimensions, hierarchies, and slowly changing dimension strategies.
  • Analyse CAP Trade-offsExplain how a distributed database prioritises consistency or availability, and the impact on application behaviour.
  • Map OLAP Operations to Business QuestionsTranslate analytical queries into cube operations and choose the appropriate OLAP storage mode for performance.
  • Describe ETL Workflow StagesOutline the steps to move data from operational sources into a warehouse, handling data quality and schema transformation.

Exam tips

How this is examined

Examiner's view

  • Justify, Don't Just NameWhen asked to choose a database, always link features (schema flexibility, graph traversal, write throughput) to the scenario's requirements.
  • Know Your Schema DiagramsBe ready to draw or annotate a star schema: fact table in the centre, dimension tables radiating out, with primary/foreign keys marked.
  • CAP Is Not a MenuYou cannot pick two of three in a live partition; explain what the system sacrifices during a network split, not just the theoretical triangle.
  • ETL vs ELT DistinctionModern cloud warehouses (Snowflake, BigQuery) often use ELT — load raw data first, transform in situ. Know when each pattern applies.

FAQs

Common questions

Is this topic assessed at Standard Level?

No. Alternative databases and data warehouses are Higher Level only. SL students cover relational databases, SQL, and basic normalization in A3.1–A3.3.

Do I need to write NoSQL queries in the exam?

Paper 1 may show pseudo-code or JSON snippets for document/key-value operations, but you won't write full MongoDB or Cypher queries. Focus on concepts: embedding vs referencing, index usage, and query patterns.

How does this connect to the Internal Assessment?

If your IA solution involves large-scale or analytical data, choosing a NoSQL store or designing a warehouse schema can demonstrate HL extension. Document the rationale in your design overview.

What's the difference between a data lake and a data warehouse?

A data lake stores raw, unstructured data in native format (schema-on-read). A warehouse stores processed, structured data optimised for SQL analytics (schema-on-write). Both can coexist in a modern data platform.

Ready to master A3.4 Alternative databases and data warehouses (HL only)?

Relational databases power transactions, but modern applications demand flexible schemas, horizontal scale, and analytical speed. This HL topic equips you to choose, design, and justify the right data platform — from graph databases for social networks to columnar warehouses for business intelligence.