Skip to content

Lesson 9 ยท Data Architecture and Storage

Storage, Operations and Unstructured Content

Learn data storage options, backup and recovery objectives (RPO and RTO), restore testing, storage tiers, and how to manage documents and unstructured files.

Data has to live somewhere, and it must still be there tomorrow. This lesson covers the operational side: where data is stored, how you protect it from loss, and how to manage documents, emails and images that do not fit neatly into tables.

Kinds of data and stores

Data Examples Typical store
Structured Orders, accounts Relational database
Semi-structured JSON events, logs Document store, files
Unstructured Contracts, photos, video File or object storage, document system

Relational databases enforce structure strongly. Document and key-value stores offer flexibility. Object storage holds large numbers of files cheaply. Choose based on how the data is read and written, not on fashion.

Availability, backups and replicas

These three are often confused:

  • High availability keeps a service running when a machine fails.
  • A replica is a live copy kept up to date. It can serve reads or take over.
  • A backup is a saved copy of data from an earlier point in time.

A replica is not a backup. If someone deletes a table by mistake, the deletion is copied to the replica too. Backups let you go back to before the mistake.

RPO and RTO

Two targets drive recovery planning:

  • Recovery point objective (RPO): how much recent data you can afford to lose, measured in time.
  • Recovery time objective (RTO): how long you can afford to be down before service is restored.

The business, not the IT team alone, should set these for each important system. Tighter targets cost more. A payment system may need minutes; an internal archive may tolerate a day.

Python Check whether a backup plan meets RPO and RTO

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The simplified check assumes periodic backups only. Systems that also ship transaction logs continuously can recover to a much more recent point.

Test your restores

A backup you have never restored is only a hope. Schedule restore tests, measure how long they take, and confirm that the restored data is usable, not just present. Keep at least one copy that is separate from the main environment and hard to delete or encrypt, because attackers may try to destroy backups. Protect backups with the same care as production data, since they contain the same sensitive values.

TEXT
Restore test record
System        : CRM
Date          : 2026-11-12
Backup used   : nightly, 2026-11-11
Restore time  : 2 h 40 min  (target 8 h)
Data checks   : row counts match; 20 sample records verified
Problems      : missing permission on restore account (fixed)
Next test     : 2027-02

Storage tiers and cost

Keep frequently used data on fast storage and move rarely used data to cheaper tiers. Archive tiers may take hours to retrieve data and may charge for retrieval, so check current terms with your provider. Tiering does not remove retention duties: archived data is still your data, and it still must be deleted when its time ends.

Where data is stored

Some laws, contracts or industry rules limit which countries data may be stored or processed in. Record the storage location of important datasets, including backups and copies held by service providers, and confirm requirements with qualified advisers.

Documents and unstructured content

Documents are data too, and they often hold the most sensitive information. A few practices help:

  1. One home per record type. Signed contracts go in a defined repository, not inboxes.
  2. Metadata on documents: type, owner, date, related customer, classification, retention class.
  3. Version control: know which version is final and who approved it.
  4. Naming rules that stay meaningful outside one person's folder.
  5. Search and access control that follow the same classification as structured data.
  6. Disposal according to the retention schedule.
TEXT
File name pattern : 2026-11-03_contract_supplier-4821_v2-signed.pdf
Metadata          : type=contract; owner=procurement;
                    classification=confidential;
                    retention_class=contracts; ends=2029-11-03

When teams use AI systems to search documents, access rules must still apply. A search assistant should never show a person a file they could not open directly.

Personal drives and email attachments are where governed data goes to get lost. Give people an easy, sanctioned place to share files, or they will invent their own.

Operating data day to day

Good operations are routine and boring, which is the goal. A short checklist for each important data store might include:

  • someone receives alerts for failed backups and acts on them;
  • storage capacity is watched, with a warning before it runs out;
  • software updates have a regular window and a way back if something fails;
  • changes are recorded, with who made them and why;
  • access to administrator accounts is limited and logged;
  • recovery steps are written down and usable by someone other than the usual expert.

The last point is often missed. If only one person can restore a system, your real recovery time depends on that person being available.

A worked example: planning for a mistake

Imagine a staff member of a fictional design studio overwrites the shared client folder with an old copy. A replica or synchronized drive would happily copy the old files everywhere. Version history or a backup from before the change lets the studio recover. The team then asks: how far back can we go, how long would it take, and who notices the mistake? If nobody would notice for three months but backups are kept for one month, the plan has a gap. Match retention of backups and versions to how quickly problems are likely to be found, while still respecting your deletion duties.

Try it yourself

Pick one important store and write down its backup frequency, the date of the last successful restore test and its RPO and RTO. A blank answer is a useful finding.

Check your understanding

Quick check ยท 3 questions

of 3 answered You scored / 3 ยท perfect!

  1. 1. Why is a replica not a replacement for a backup?

    A replica mirrors changes, including wrong ones. A backup preserves an earlier state.
  2. 2. What does the recovery point objective measure?

    RPO is about data loss; RTO is about downtime.
  3. 3. Which practice shows that backups actually work?

    Only a successful, verified restore proves recovery works.

Summary

  • Match the store to the data's shape and use.
  • Availability, replicas and backups solve different problems.
  • RPO limits data loss and RTO limits downtime.
  • Test restores and protect backups.
  • Documents need metadata, access control and disposal like other data.

Next: Data Quality Dimensions

Your progress is saved in this browser. No account needed.