Topics in this domain

Database Controls and Normalization

Operations · 3 min read

Store each fact once

If your address is written in five different address books and you move house, you have to update all five. Miss one, and your post goes to the old address.

Normalisation designs a relational database so that each fact is stored in one place only. Change it once, and it’s right everywhere. That prevents update anomalies, where changing data in one place leaves an out-of-date copy somewhere else.

First, second and third normal forms.
Normal formRule
First (1NF)One value per field; no repeating groups; every record has a key
Second (2NF)In 1NF, and every non-key field depends on the whole key, not just part of a combined key
Third (3NF)In 2NF, and no non-key field depends on another non-key field

For the exam, the purpose matters more than the rules: less redundancy, fewer anomalies, better integrity.

Denormalisation

Sometimes data is copied on purpose to make queries and reports faster, especially in data warehouses. That’s denormalisation. It’s a legitimate design choice, but now the copies can drift apart, so compensating controls are needed: controlled update routines, or regular reconciliation between the copies.

Example. A reporting team copies customer addresses into a sales table for speed. Address changes are only made in the customer table. Six months later, invoices go to old addresses because the billing job reads the sales table. A controlled update routine, or reconciliation between the two tables, was missing.

Access controls

  • Users reach data through applications, not directly with database tools. Direct database access bypasses application controls.
  • Roles and views limit what each user can see and change.
  • Privileged accounts (DBA, schema owners) are named, few and monitored.
  • Application service accounts have only the rights the application needs.
  • Production data is masked or anonymised before it’s used in test environments.

Encryption protects against stolen disks and backups. It doesn’t protect against an authorised user who simply has too much access.

Integrity controls

Primary keys, foreign keys (referential integrity), check constraints, triggers and stored procedures enforce rules inside the database, so they apply however the data arrives.

Backup and recovery

Roll back uses before images to undo; roll forward uses after images to redo.
TechniqueRole
Full and incremental backupsRestore the database to a point in time
Transaction logs (journals)Record every change since the last backup
Before imagesUsed to roll back incomplete or failed transactions
After imagesUsed to roll forward: reapply committed transactions after restoring a backup
CheckpointsSaved points that limit how much work has to be redone after a failure

Restores should be tested regularly. A backup you’ve never restored is a hope, not a control.

Monitoring

Database activity monitoring (DAM) tools log and alert on suspicious activity: bulk extracts, direct changes to sensitive tables, privilege escalation, and access outside working hours.

How the exam asks about it

If the question asks…The answer is usually…
Purpose of normalisationReduce redundancy and update anomalies
Risk of denormalisationData inconsistency / integrity problems
Restoring committed transactions after a backup restoreRoll forward using after images / logs
Undoing incomplete transactionsRollback using before images
Best control over DBA activityLogging with independent review
Production data used in testingMask or anonymise it

In short

  • Normalisation organises data to reduce redundancy and update anomalies, improving integrity.
  • First normal form removes repeating groups; second removes partial dependencies on a composite key; third removes transitive dependencies.
  • Denormalisation improves performance but increases redundancy and the risk of inconsistent data.
  • Database controls include access through roles and views, DBA activity logging, integrity constraints, encryption, backup and recovery.
  • Recovery uses backups plus transaction logs: rollback removes incomplete transactions, roll forward reapplies committed ones.
  • Checkpoints limit how much processing must be redone after a failure.

Exam traps

  • Normalisation reduces redundancy; denormalisation reintroduces it for speed, so compensating integrity controls are needed.
  • Rollback undoes incomplete transactions; roll forward reapplies committed transactions after a restore.
  • Database-level access for end users bypasses application controls.
  • Encrypting the database doesn't protect against an authorised user with excessive access.

Slides

Click the slide and use the arrow keys. F toggles full screen.

CISA · Domain 4 · Operations

Database Controls and Normalization

Storing each fact once (normalisation) and why breaking that rule needs extra controls, plus the access, integrity, backup, recovery and monitoring controls that protect a database.

1 / 9