Clastify logo
Subjects
Features
Review
HOT
Tutoring

A3.4 Alternative databases and data warehouses

Practice exam-style IB Computer Science questions for Alternative databases and data warehouses, aligned with the syllabus and grouped by topic.

Paper
Difficulty
Status
Level
Java

This content can't be printed from the browser. Use Export PDF with Pro for an offline copy.

Question 1
HL • Paper 1
Medium
HL • Paper 1
Medium

BrindleBox delivers meal kits to customers in several regions. It stores recipe descriptions and customer orders, and plans to combine historical data from its regional systems to support business decisions.

A

Recipe records contain different attributes: some include allergen information, while others include preparation equipment or optional ingredient substitutions. Describe how a NoSQL database could accommodate these records.

[3]
B

The regional systems use different identifiers for the same meal kit and record delivered quantities in different units. A customer's current region field is overwritten when they move, but each delivery record retains the region to which that delivery was made. Explain how the design of a data warehouse could support reliable comparisons of meal-kit demand between regions over several years.

[5]
C

Describe how managers could use online analytical processing (OLAP) to investigate an increase in the total number of meal kits delivered.

[3]
D

Managers want to discover whether customers repeatedly buy a particular meal kit and then buy a different meal kit in a later order. Suggest a suitable data mining technique and justify its use.

[3]
Question 2
HL • Paper 1
Hard
HL • Paper 1
Hard

RillCharge operates electric-vehicle charging stations across several cities. Its application displays nearby stations and allows drivers to reserve charging sockets using a distributed database.

A

Describe how a spatial database could support a driver's search for available charging stations within a chosen distance of their current position.

[3]
B

RillCharge partitions reservation records by city and replicates station information at several database sites. Describe how these arrangements support the service and why the replicated information requires coordination.

[5]
C

Two drivers use different database sites to reserve the same socket for the same time interval. Explain how the isolation property of ACID can prevent both reservations from being confirmed.

[3]
D

Station-status readings arrive continuously, and the application must display changes with very little delay. Justify using an in-memory database for current status readings, while keeping confirmed reservations in storage that survives a power failure.

[3]

A3.3 Database programming