Question 1
14 marks
Database transactions, ACID durability, relationship cardinalities, data dictionaries, and DBA roles
- Databases
(a)
2 marks
- Define a database transaction:
- 1) A logical unit of work comprising one or more database operations (reads or updates) executed independently.
- 2) Treated atomically so that it either completes in full and transitions the database to a new consistent state, or rolls back completely if interrupted.
Mentor tip
Mention both that it is a single logical unit of work and that it modifies or queries database state atomically.
(b)
2 marks
- Explain the importance of durability (from ACID) in a database transaction:
- 1) Permanent persistence: Ensures that once a transaction is committed, its changes are written to non-volatile storage.
- 2) Crash resilience: Guarantees that committed data modifications are never lost even if the system immediately experiences a power outage, hardware crash, or software failure.
Mentor tip
Emphasize that committed changes survive permanently despite subsequent system crashes or power failures.
(c)
2 marks
- Identify two types of entity relationships within relational databases:
- 1) One-to-one (1:1)
- 2) One-to-many (1:M / 1:N) or Many-to-many (M:N)
Mentor tip
Any two standard cardinalities (one-to-one, one-to-many, many-to-one, many-to-many) are valid.
(d)
4 marks
- Describe the nature and contents of a database data dictionary:
- 1) Metadata repository: A centralized system table or file storing metadata (data about the structure of the database) rather than actual user records.
- 2) Schema definitions: Defines field names, data types, field lengths, default values, and primary/foreign key constraints for every relation.
- 3) Security and storage metrics: Tracks user roles, access privileges, audit logs, and physical storage space allocation.
- 4) Restricted system access: The DBMS consults the data dictionary before executing any query, and it is hidden from ordinary end-users to prevent accidental schema corruption.
Mentor tip
Define the data dictionary as a metadata directory and list at least three structural items it tracks (such as data types, constraints, and access rights).
(e)
4 marks
- Identify four core responsibilities of a Database Administrator (DBA):
- 1) Designing the database schema and creating tables, indexes, and views.
- 2) Configuring user authentication, role-based access control, and security policies to protect sensitive data.
- 3) Executing routine backups and managing disaster recovery procedures.
- 4) Installing DBMS software patches, tuning query performance, and training staff.
Mentor tip
Provide four distinct administrative duties covering schema design, security, backups, and software maintenance.

