Question 1
13 marks
School parent database system, input validation, and concurrent online lunch payments
- Databases
(a)
2 marks
- Identify two operational advantages of deploying a Database Management System (DBMS) over flat files or spreadsheets:
- 1) Structured querying and reporting: Enables rapid filtering, sorting, and extraction of parent records to generate customized invoices or administrative reports.
- 2) Data security and access control: Centralizes data organization with built-in authentication, validation constraints, and backup routines that minimize the risk of data loss.
Mentor tip
Focus on data querying, security, or modular extensibility rather than raw physical disk capacity.
(b)
1 mark
- State one relevant parent attribute stored in the school database:
- Parent full name, residential address, telephone number, or email address.
Mentor tip
Ensure the attribute specifically pertains to a parent record in a school context.
(c)
2 marks
- Identify an input error-reduction technique: Data validation (or data verification).
- Elaborate on its mechanism: Applies automated rules such as type checks, length checks, or format checks (for example, verifying that a phone number contains only digits or an email contains an '@' symbol) before permitting the record to be saved.
Mentor tip
State the specific validation technique and provide a concrete example of how it restricts malformed input.
(d)
5 marks
- Trace the sequential interaction between the parent and the DBMS during an online lunch payment:
- 1) Notification retrieval: The DBMS queries parent contact details and outstanding balances to trigger the automated billing email.
- 2) Authentication: The parent enters login credentials, which the DBMS validates and verifies against stored user accounts.
- 3) Partitioned data access: Upon verification, the DBMS grants restricted read access to the specific child's lunch balance and activity records.
- 4) Transaction execution and update: The parent submits payment credentials; once processed, the DBMS updates the accounting balance in an atomic transaction.
- 5) Confirmation and session termination: The DBMS passes session details to the mail server to dispatch a payment receipt and closes the database session upon logout or timeout.
Mentor tip
Follow the chronological lifecycle of the transaction from login authentication through balance update to email confirmation.
(e)
3 marks
- Explain how the DBMS manages simultaneous online payments from multiple parents:
- 1) Concurrent multi-user access: The DBMS supports concurrent read and write operations across multiple active sessions.
- 2) Record partitioning and row-level locking: Each parent is restricted to their own family's records, and the DBMS locks only the specific rows being updated.
- 3) Transaction isolation: Because updates occur on non-overlapping partitions of the table, transactions execute in isolation without race conditions or deadlocks.
Mentor tip
Highlight how row-level locking and workspace partitioning allow simultaneous transactions without data collisions.

