Cert EspressoLearn. Practise. Find your flow.

A LITTLE FOCUS.
A BIG NEXT STEP.

Your pace. Your space.
CompTIA · Tech+ FC0-U71

Database structures and backups

Tech+ FC0-U71 · Lesson 15 of 18 · 1:54:17

YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗

Learning with these videos? Subscribe for new courses and exam-style questions.

In this lesson

Prepare for the Tech+ FC0-U71 exam (CompTIA Tech+). In this lesson: structured, semi-structured, and unstructured data, relational databases (schemas, tables, rows, columns, primary and foreign keys, constraints), non-relational databases (key-value, document), and file and system backups, stored locally or in the cloud, with Oakhaven Library, a fictional public library with three branches, as the running example. Includes three original practice questions.

Study notes

The text of this lesson, to read at your own pace. Information as of November 2026.

The folder that disappeared

On a Monday morning, a librarian deleted the whole events folder by mistake, with a year of posters and sign-up sheets inside. Within an hour, the files were back, because Oakhaven backs them up every night. This lesson covers how databases structure data, and how backups keep data safe.

Structured or not

Structured data fits fixed fields, in rows and columns, like loan records with a patron, a book, and a due date. Semi-structured data has labels or tags, but its fields can vary from one item to the next, like JSON or XML files. Unstructured data, also called non-structured, has no fixed model at all, like videos, images, scanned pages, and the text of emails. Most of the data in the world is unstructured, and it is the hardest kind to search and analyze. Oakhaven's loans are structured, its event pages are semi-structured, and its recordings of author talks are unstructured.

Relational databases

A relational database stores data in tables, and its schema is the blueprint that defines every table, its fields, their types, and the links between tables. Each row of a table is a record, like one patron, and each column is a field, like the patron's name or email address. A primary key is a field that identifies each row uniquely, like the patron ID, and no two rows can share it. A foreign key is a field in one table that points to the primary key of another, like the patron ID stored in each loan, which links the loan to its patron. Constraints are rules that the database enforces, like a field that cannot be empty, a value that must be unique, or a foreign key that must match a real patron.

Non-relational databases

Non-relational databases store data without fixed tables, which suits data that varies, or that must scale to huge volumes. A key-value database stores each value under a unique key, and finds it very fast, like the settings or the session of each website visitor. A document database stores documents, often in JSON, and each document can have its own fields, like event pages with different details for a concert or a workshop. Their flexible structure makes them quick to change, and easy to spread across many servers. Relational databases still fit best when the data has a strict structure and many links, like loans, patrons, and books.

Backups and restores

A file backup copies selected files and folders, like documents, photos, and the events folder. A system backup copies a whole computer: the operating system, the applications, the settings, and the files, so that the computer can be rebuilt as it was. Restoring is copying the data back from a backup, to replace what was lost or damaged. A backup is only useful if the restore works, so test restores on a schedule, before you need them. Oakhaven restores one random folder every month, to prove that its backups work.

Where to keep backups

Backups can be stored locally, on a flash drive, which is small and easy to carry, or lose, on an external hard drive, which holds a lot for little money, or on an SD card, common in cameras and small devices. A local backup is quick to restore, but a fire, a flood, or a theft can destroy it along with the originals. Cloud storage keeps backups off-site, in a provider's data centers, reachable from anywhere with an internet connection. A common rule of thumb is three copies of the data, on two kinds of media, with one copy off-site. Oakhaven keeps a nightly backup on an external drive, and a copy in the cloud.

Recap

Let's recap. Structured data fits fixed fields, semi-structured data has flexible tags, and unstructured data has no fixed model. Relational databases have a schema, tables of rows and columns, primary keys, foreign keys, and constraints. Key-value and document databases are non-relational, and flexible. File backups copy files, system backups copy a whole computer, and restores must be tested. Flash drives, external hard drives, and SD cards are local, and cloud storage keeps a copy off-site.

Quick checks for this lesson

The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.

  1. In the loans table, the patron ID column points to a row in the patrons table, to link each loan to its patron. What is this column in the loans table?

    • A primary key
    • The schema
    • A foreign key
    • A record
    Show the answer

    A foreign key

    A foreign key points to the primary key of another table. “A primary key” would identify each loan itself, uniquely, in its own table. “The schema” is the blueprint of the whole database, not one column. And “A record” is one row of a table, not a column.

  2. A staff laptop’s drive failed, and the technician wants to rebuild it with the operating system, the applications, and the settings exactly as before. What does the technician need?

    • A file backup of the documents
    • A system backup
    • A new SD card
    • Browser profile sync
    Show the answer

    A system backup

    A system backup copies the whole computer, so it can be rebuilt as it was. “A file backup of the documents” would bring back documents, but not the operating system, the apps, or the settings. “A new SD card” would be an empty card, with nothing to restore. And “Browser profile sync” would bring back browser bookmarks and settings, not a whole computer.

  3. Oakhaven wants its backups to survive even a fire in the central branch, where the server runs. Which location fits?

    • Cloud backup storage
    • An external drive by the server
    • A flash drive in a desk
    • A second partition on the server
    Show the answer

    Cloud backup storage

    Cloud storage keeps the backups off-site, so a fire in the branch cannot reach them. “An external drive by the server” would burn along with the server. “A flash drive in a desk” would be in the same building too, and easy to lose. And “A second partition on the server” would sit on the very server that the fire destroys.