Module 1: How Computers Work with Data
What a computer does with data, the number systems and units it is described in, and a method for fixing things when they go wrong.
What a Computer Actually Does: Input, Processing, Output and Storage
- Describe the four basic jobs of computing (input, processing, output and storage) and classify any device or event by the job it is doing at that moment.
- Explain how the CPU works through program instructions and why a program is copied from storage into RAM before it runs.
- Distinguish memory (RAM) from storage and predict what survives when a computer loses power.
- Describe the Tech+ FC0-U71 exam format, its six weighted domains and how this course is organized.
A carton of milk at the self-checkout
You pass a carton of milk across the glass window of a supermarket self-checkout. In a fraction of a second the machine beeps and a new line appears on the screen: "Semi-skimmed milk 2 L, 1.89". The total goes up, and a record of the sale is written inside the machine, where it will still be tomorrow morning. (The store, products and prices in this lesson are invented examples.) Four things happened. Data came in: the pattern of stripes on the barcode. Data was worked on: the machine found which product those stripes belong to and added its price to your total. Results went out: the beep and the new line on the screen. And something was kept: the record of the sale. Those four jobs are input, processing, output and storage, and every computer you will ever touch does all four.
Exam objectives: CompTIA Tech+ FC0-U71, objective 1.1, "Explain the basics of computing," with four bullets: input, processing, output and storage.[1]
This is the first of 32 lessons, so this section also introduces the exam and the course. If you know both already, skip to the next heading.
| Item | Detail |
|---|---|
| Exam name and code | CompTIA Tech+, FC0-U71 (CompTIA calls this version V6) |
| Launch date | 16 July 2024 |
| What it replaced | IT Fundamentals+ (ITF+, exam FC0-U61) |
| Questions | A maximum of 70, multiple choice |
| Time allowed | 60 minutes |
| Passing score | 650 on a scale of 900 |
| Languages | English and Japanese |
| Recommended experience | None |
| Series codes | FC0-U71 (no expiration) and FC0-U71-CE (valid for 5 years) |
CompTIA's exam page sets a maximum of 70 multiple-choice questions.[2] With 60 minutes, that averages about 51 seconds a question: time for a careful read, not for long deliberation. The pass mark is 650 on a scale of 900.[2] That is a scaled score, so do not turn it into a percentage of questions you must get right; aim to know every objective instead. Of the two series codes, FC0-U71 has no expiration and FC0-U71-CE is valid for five years.[2] If a job advert names one, check which it means. This course states no exam price, because prices vary by country and change over time; check CompTIA's site when you are ready to book. No course can promise a pass. This one teaches every objective in full and makes you practise recalling it.
| Domain | Weight | Lessons | Rough share of 70 questions |
|---|---|---|---|
| 1.0 IT Concepts and Terminology | 13% | 1-4 | About 9 |
| 2.0 Infrastructure | 24% | 5-13 | About 17 |
| 3.0 Applications and Software | 18% | 14-18 | About 13 |
| 4.0 Software Development Concepts | 13% | 19-22 | About 9 |
| 5.0 Data and Database Fundamentals | 13% | 23-26 | About 9 |
| 6.0 Security | 19% | 27-32 | About 13 |
The weights are shares of the exam. CompTIA's web summary labels the first domain Tech concepts and terminology and gives it 13 percent.[3] The objectives document calls the same domain IT Concepts and Terminology. The last column is the weight times 70, rounded, so treat it as an estimate: your exam may have fewer than 70 questions, and the mix on your form may differ a little. Infrastructure and Security together make up 43 percent of the exam, so Lessons 5-13 and 27-32 deserve the most review time.
Every lesson is built from the same parts, though the ideas arrive in a different order each time. It opens with a concrete case and names its objective. Then it teaches each bullet by its exam name: what it is, why it works that way, when you would use it, how to tell it from its neighbors and what goes wrong. Most lessons include an exam-cue table that pairs the words a question uses with the answer they point to. Each ends with a short list of testable claims, key terms, a hands-on lab whose worked solution stays hidden until you ask, and a 10-question quiz. The quiz explanations say why the right answer is right and why the tempting wrong one is wrong. Quiz questions come back weeks later as warm-ups. Answer them from memory before you look anything up, because recalling a fact after a delay is one of the better-supported ways to make it last.
If you continue after Tech+, CompTIA A+ is taught on Atlas in our A+ course. Now, back to the milk.
Four jobs every computer does
OpenStax's introductory computer science textbook defines a computer system as an electronic device that does computations.[4] Playing a song, showing a web page and ringing up milk are all computations, because to a computer everything is numbers. Those numbers are held as patterns of 1s and 0s. A single 1 or 0 is a bit (short for binary digit), and a group of 8 bits is a byte. Lesson 2 teaches you to count in binary, and Lesson 3 shows how bytes add up to gigabytes. For now, hold on to one idea: a computer handles only numbers, and input and output devices translate between those numbers and the world.
The four jobs form a loop, often taught as the input-processing-output-storage (IPOS) cycle. Data comes in and is processed. Results go out, are stored, or both. Storage also feeds the loop from the other end, because the program doing the processing was loaded from storage before it could run. And output often becomes the next input: you read the price on the screen and scan the next item.
| Job | What it means | At the self-checkout | Typical hardware |
|---|---|---|---|
| Input | Data enters the computer from outside | The scanner reads the barcode's stripes as digits | Keyboard, mouse, microphone, camera, scanner, sensor |
| Processing | Instructions turn data into new data | The processor finds the product and adds its price to the total | Central processing unit (CPU), graphics processing unit (GPU) |
| Output | Results leave the computer | Beep, new line on the screen, printed receipt | Monitor, speakers, printer, vibration motor |
| Storage | Data is kept so it can be retrieved later | The sale record is written to the machine's drive | Solid-state drive (SSD), hard disk drive (HDD), USB flash drive |
The same four jobs appear in every kind of computer. OpenStax notes that the computer in your watch differs from the ones running large websites in the number and strength of their processors, the size of their memory and disks, and how the parts are connected, and then adds that the main concepts are the same.[5] A smartwatch, a games console, a self-checkout and a server all take input, process it, produce output and store data.
Remember: input brings data in, processing transforms it, output sends results out, and storage keeps data so it can be retrieved later. To classify any device or event, ask which of those four jobs it is doing at that moment.
Input: turning the world into numbers
The US National Institute of Standards and Technology (NIST) uses Input/output (I/O) as a general term for the equipment used to communicate with a computer and for the data carried in that communication.[6] Input is the inbound half. An Input device lets a person enter information or control the system: the keyboard and mouse, but also microphones, webcams, game controllers, fingerprint readers, image scanners and the scanner at the checkout.
The job is translation. OpenStax describes an input device as taking input from a user, such as typing or speaking, turning it into 1s and 0s and storing the result in memory.[4] A microphone turns changes in air pressure into a changing voltage, and then into a stream of numbers. A keyboard turns each key press into a code. A Barcode reader shines light on the stripes, measures where the reflection is dark and where it is light, and converts the pattern into digits. For the milk, that looks like this:
Example input from the barcode scanner (invented values)
Stripes read as digits: 5012345678900
First digit "5" sent as: 00110101 (the character code for 5, in binary)
The computer never sees stripes. It sees 13 digits, each sent as a byte. In the widely used ASCII (American Standard Code for Information Interchange) character code, the character 5 is the number 53, which is 00110101 in binary. Lesson 2 shows you how to check that conversion, and Lesson 20 explains character data. That is the whole trick of input: something physical becomes numbers a processor can work with.
Input does not need a person. A thermostat's temperature sensor, a phone's Global Positioning System (GPS) receiver, a network adapter receiving a web page and a drive handing a saved file back to the processor all supply input. The test is direction: data arriving at the processor and memory from outside them is input. Every input device also needs a connection, such as a Universal Serial Bus (USB) port or a wireless link. Lessons 8 and 9 cover peripherals, ports, wireless links and drivers.
Input goes wrong in two ways. Either nothing arrives (a loose cable, a flat battery in a wireless mouse, a missing driver), or the wrong thing arrives. If a smudged barcode is read as the wrong digits, the computer will faithfully look up the wrong product. Programmers sum this up as "garbage in, garbage out."
Processing: what the CPU does with the numbers
Most computers follow a design described in a 1945 paper by the mathematician John von Neumann.[7] The Von Neumann architecture divides a computer into five units, and three of them are the input, output and memory you are already meeting.
| Unit | Job | At the self-checkout |
|---|---|---|
| Input unit | Brings data and instructions in | Barcode scanner, touchscreen, card reader |
| Memory unit | Holds instructions and the data they work on | The checkout program and your basket so far |
| Control unit | Fetches each instruction in turn and directs it | Steps through the checkout program |
| Processing unit | Does the arithmetic and comparisons | Matches digits to a product; adds 1.89 to the total |
| Output unit | Sends results out | Screen, speaker, receipt printer |
The control unit and the processing unit together make up the Central processing unit (CPU).[8] Memory holds the program's instructions as well as its data. That stored-program idea is why one machine can be a word processor one minute and a game the next: load different instructions and you have a different tool.
Inside the CPU, the Arithmetic logic unit (ALU) adds, subtracts and compares, and a few registers, tiny storage spots on the chip, hold the values being worked on right now. The control unit tracks its place in the program. Its Program counter (PC) holds the memory address of the next instruction to run.[8] A second register, the instruction register, holds the instruction being carried out now. Every instruction passes through the same four steps, known together as the Instruction cycle:
- Fetch: read the instruction at the address in the program counter from memory, and move the counter on to the next instruction.
- Decode: work out what the instruction asks for, such as add, compare, copy, or jump to another part of the program.
- Execute: do it, usually in the ALU.
- Store the result: put the answer in a register or write it back to memory.
Each instruction does very little: one addition, one comparison, one copy. A computer seems clever because it runs an enormous number of them. The pace is set by the CPU's clock, whose speed is measured in gigahertz (GHz), with typical values between 1 and 5 GHz.[7] One gigahertz is a billion clock ticks per second, and Lesson 3 explains the unit properly. A tick is not the same thing as an instruction. Some instructions need several ticks, and modern processors work on more than one instruction at a time, but the overall result is that a modern CPU completes billions of instructions every second.
The instructions are the software, and the physical parts are the hardware; neither does anything useful alone. Here is the checkout program's job written as plain-English pseudocode, an invented example (Lesson 22 teaches you to write your own):
WHEN a barcode arrives from the scanner
look up the barcode in the product list
IF the barcode is found
add the product's price to the running total
show the product name and price on the screen
play the beep
write the item to the sale record on the drive
ELSE
show "Item not recognized. Please ask for help."
Trace the milk through it. The scanner delivers 5012345678900. The CPU compares those digits with entries in the product list until it finds a match: semi-skimmed milk, 1.89. It adds 1.89 to the running total of 4.20 and gets 6.09. Then it sends results to the screen and speaker and writes a line to the sale record. The looking up, comparing and adding are processing, and all of it happens in the CPU, working on values held in memory.
The units pass data to one another over a System bus, a set of shared connections. In the von Neumann design, instructions and data travel on the same path, so the CPU cannot fetch its next instruction and move a piece of data across that path at the same moment. This is called the Von Neumann bottleneck, and it often limits how fast the whole system runs.[7] It is one reason modern processors keep small, very fast stores of recently used data on the chip itself: every trip they save across the shared path is time saved.
The CPU is not the only processor in most computers. A Graphics processing unit (GPU) runs huge numbers of simple calculations at once, which suits drawing images and artificial intelligence (AI) work. Lesson 6 compares the two. For objective 1.1, processing means any step where instructions turn data into something new: calculating, comparing, sorting, converting or deciding.
Remember: processing happens in the CPU. Each instruction goes through fetch, decode, execute and store; the clock ticks billions of times a second; and the CPU works only on instructions and data that are already in memory.
Memory and storage: why a computer needs both
The checkout program lives on the machine's drive. Why does the CPU not simply read it from there? Because a drive is far slower than the CPU. When you click an icon to start a program, OpenStax explains, the program and its data are copied from the disk into main memory, also called Random-access memory (RAM), and the CPU reads its instructions from there.[4]
RAM has one property that shapes how you use a computer every day: it is volatile. It holds its contents only while it has power, so switching off empties it. That is why the fourth job exists. Computer data storage, usually just called storage, keeps data when the power is off. NIST's glossary begins its definition with "the retrievable retention of data."[9] Lesson 7 returns to volatile and non-volatile storage and to local, network and cloud storage.
| Question | Memory (RAM) | Storage (SSD, HDD, flash drive) |
|---|---|---|
| What is it for? | Programs and data in use right now | Programs and files kept until needed again |
| Keeps data with the power off? | No | Yes |
| Speed | Much faster | Much slower |
| Typical size in a laptop (example) | 8 to 32 gigabytes (GB) | 256 GB to 2 terabytes (TB) |
| At the self-checkout | The running program and your current basket | The program files and the record of every sale |
Two kinds of drive dominate. A Hard disk drive (HDD) records data magnetically on spinning platters and offers a lot of space for little money. A Solid-state drive (SSD) stores data on flash memory chips with no moving parts, and it is faster and uses less power. USB flash drives and memory cards use flash memory in removable form. Lesson 7 compares them in detail.
Many people believe that a bigger drive makes a computer faster. It does not. Drive size decides how much you can keep, not how fast programs run. Running speed comes from the CPU and from having enough RAM to hold everything that is open. What does speed up starting programs and opening files is a faster kind of drive, such as an SSD in place of an HDD, because the data reaches RAM sooner. So a 2 TB hard disk does not beat a 512 GB SSD on speed, even though it holds four times as much.
One more kind of memory belongs in the picture. Read-only memory (ROM) is a chip on the motherboard that keeps its contents without power. It holds the firmware that runs when the computer is switched on, traditionally the Basic Input/Output System (BIOS).[7] Newer computers use the Unified Extensible Firmware Interface (UEFI) instead. This firmware wakes the hardware and starts loading the operating system from storage into RAM. That is how a computer can start at all when the last shutdown emptied its RAM.
Watch the word "memory." In everyday speech it often means storage: "my phone is out of memory" usually means its storage is full. On the exam, and in this course, memory means RAM, the fast working area, and storage means the drive or other medium that keeps data after power-off. A spec sheet uses exactly this split. Here is an invented example:
Example laptop specification (invented)
Processor: 8-core CPU, up to 4.6 GHz
Memory: 16 GB RAM
Storage: 512 GB SSD
Display: 14-inch touchscreen
Ports: 2 x USB-C, 1 x USB-A, headphone jack
- Processor is the processing job. The 4.6 GHz figure is a clock speed, not a capacity.
- Memory is RAM, the working space. More RAM lets more programs and larger files stay open at once without slowing down.
- Storage is how much the laptop can keep: 512 GB, which is 32 times the RAM (512 divided by 16). Storage is normally much larger than memory because it costs less per gigabyte.
- Display is a touchscreen, so it does both output and input.
- Ports are where other input and output devices connect.
Remember: memory (RAM) is fast, temporary and emptied at power-off; storage is slower, keeps data without power and lets you retrieve it later. A program runs from RAM after being copied there from storage.
Output: turning numbers back into something useful
Output is input in reverse. The computer takes the numbers a program produced and turns them into a picture, a sound, a printed page or a vibration. An Output device does that conversion. The Computer monitor is the most familiar one; speakers, printers, projectors and the small vibration motors in phones and game controllers are others.
At the checkout, one scan produces several outputs. The speaker receives a stream of values that set how its cone moves. The screen receives a color value for each of its tiny dots, the pixels. At the end, the receipt printer receives the characters to print.
Output does not have to reach a person. When the checkout sends the finished sale over the network to the store's central server, its network adapter is acting as an output device for the checkout. For the server at the other end, the same data is input. Always judge direction from the point of view of the computer you are describing.
Output goes wrong the same two ways input does. Either nothing appears (the monitor is set to the wrong input source, the speaker is muted, the printer is offline), or the wrong thing appears (a stretched picture from the wrong resolution, garbled print from the wrong driver). Lesson 8 works through these problems.
Touchscreens, headsets and drives: devices that do two jobs
The phone in your pocket breaks the neat categories. Its screen shows you pictures, which is output, and senses your finger, which is input. The Dive Into Systems textbook names the Touchscreen as a device that acts as both input and output.[8] NIST's glossary has a word for a screen-based device of this kind, a console, which it defines as a visually oriented device for both input and output, used to interact with a computing resource.[10]
Drives are the less obvious case. Dive Into Systems points out that solid-state and hard drives also act as both input and output devices.[8] When the operating system loads a program file from the drive into memory, the drive supplies input. When you save a document, the drive receives output. Storage still counts as a job of its own, because the drive's purpose is keeping data, whichever way the data is moving.
| Device | Acts as input when | Acts as output when |
|---|---|---|
| Touchscreen | It senses a tap or swipe | It displays the picture |
| Headset | Its microphone picks up your voice | Its speakers play sound |
| Multifunction printer | Its scanner reads a page | It prints a page |
| Network adapter | It receives data from the network | It sends data to the network |
| SSD or HDD | A program or file is read from it | A file is saved to it |
Input and output devices carry instructions and data in and carry results out, but they do not run the program. Executing happens only in the CPU, on values in memory. So if a question asks which part runs a program, the answer is never the keyboard, the drive or the screen.
Two more runs at the checkout
Run the checkout twice more, changing one thing each time, and watch which of the four jobs changes.
Run A: the barcode will not scan. The milk's barcode is smudged and the scanner reads nothing. The machine shows a keypad, and you type the 13 digits on the touchscreen. Only the input device changed. The touchscreen puts the same digits, 5012345678900, into memory that the scanner would have. The processing (look up, add to the total), the outputs (beep, screen line) and the storage (the sale record) are identical. Processing works on data, not on where the data came from.
Run B: the power fails. You scan three items. Before you pay, a power cut shuts the machine off. When it restarts, is your basket still there? That depends on one design choice in the program: when it writes to storage.
| Step | Version 1: writes each item to the SSD as it is scanned | Version 2: keeps the basket only in RAM until payment |
|---|---|---|
| Scan milk, bread and eggs | Each item goes into RAM and is also written to the SSD | Each item is held in RAM only |
| Power fails | RAM is emptied; the SSD still holds three item lines | RAM is emptied; nothing about the basket is on the SSD |
| Machine restarts | The program reads the SSD and restores a basket of three | The basket is empty; you scan everything again |
Same machine, same three items, same power cut. The result flipped on one thing: whether the data had reached storage before the power went. Your laptop behaves the same way. A document you have typed but not saved exists only in RAM. Save it, or let autosave do it, and a copy is written to storage. "It's on my screen" and "it's saved" are different claims, and only the second survives a power cut.
Exam cues for objective 1.1
| If the question says | Think | Commonly confused with |
|---|---|---|
| enter, type, scan, capture, sensor reading, receive | Input | Output, when the stem is written from the other computer's point of view |
| calculate, compare, sort, convert, execute instructions | Processing (CPU) | Memory, which only holds the values being processed |
| display, print, play sound, vibrate, send results | Output | Storage, when results are being written to a drive |
| save, keep after shutdown, retrieve later, file still there | Storage (SSD, HDD, flash drive) | Memory (RAM) |
| in use right now, lost when power is off, loaded to run | Memory (RAM) | Storage |
| runs at power-on, firmware, BIOS, UEFI | ROM | RAM, which is empty at power-on |
| displays and accepts touch, microphone plus speakers | Input and output device | A pure input or pure output device |
| GHz, clock speed | How fast the CPU processes | GB, which measures capacity |
Common misconceptions
- "More storage makes a computer faster." A bigger drive holds more files; it does not make programs run faster. Speed comes from the CPU and enough RAM. A faster kind of drive, such as an SSD in place of an HDD, speeds up loading, which is a different thing from more space.
- "Memory and storage are the same thing." Everyday speech mixes them, but on the exam memory means RAM: fast, temporary and emptied at power-off. Storage keeps data so it can be retrieved later.
- "If I can see it on the screen, it is saved." What you see is output drawn from data in RAM. Until it is written to storage, a power cut or crash destroys it.
- "Every device is either input or output." Touchscreens, headsets, multifunction printers, network adapters and drives do both. Classify by the direction the data is moving at that moment.
- "The CPU is where my files are kept." The CPU's registers hold only the few values being worked on at that instant. Files live in storage, and running programs live in RAM.
- "Input means something a person types." Sensors, GPS receivers, network adapters and drives all supply input with no person involved.
Recap
- Objective 1.1 has four bullets: input, processing, output and storage, which together form the IPOS cycle.
- Input devices translate something physical, such as a key press, a sound or light reflected from a barcode, into 1s and 0s and place it in memory.
- The CPU is the control unit plus the processing unit. Each instruction goes through fetch, decode, execute and store, and clock speed is measured in GHz, typically 1-5 GHz.
- The program counter holds the memory address of the next instruction; the arithmetic logic unit does the arithmetic and comparisons.
- When a program starts, it is copied from storage into RAM, because storage is far slower; the CPU executes it from RAM.
- RAM is volatile and loses its contents at power-off. Storage (SSD, HDD, flash) keeps data so it can be retrieved later, and unsaved work exists only in RAM.
- A bigger drive adds capacity, not speed; a faster type of drive, such as an SSD, speeds up loading.
- ROM holds the BIOS or UEFI firmware that runs when the computer is switched on.
- Tech+ (FC0-U71) has at most 70 multiple-choice questions in 60 minutes and a passing score of 650 on a scale of 900; Infrastructure (24%) and Security (19%) are its two largest domains.
Sources
- CompTIA. (2023). CompTIA Tech+ FC0-U71 V6 certification exam: Exam objectives (Document version 4.0). lecbyo.files.cmp.optimizely.com
- CompTIA. (n.d.). CompTIA Tech+ certification. comptia.org
- CompTIA. (n.d.). Tech+ (Plus) Certification. comptia.org
- OpenStax. (n.d.). 5.1 Computer Systems Organization. openstax.org
- OpenStax. (n.d.). Chapter 5 Introduction (Introduction to Computer Science). openstax.org
- NIST CSRC. (n.d.). I/O, Glossary. csrc.nist.gov
- Penn State University (IST 110). (n.d.). Chapter 2: Hardware, Software, and Networking, 2.1 Computer Hardware. psu.pb.unizin.org
- Suzanne J. Matthews, Tia Newhall, Kevin C. Webb. (n.d.). 5.2. The von Neumann Architecture. Dive Into Systems (Swarthmore College et al.). diveintosystems.org
- NIST CSRC. (n.d.). storage, Glossary. csrc.nist.gov
- NIST CSRC. (n.d.). console, Glossary. csrc.nist.gov
- Key terms
- Input
- Data entering a computer from outside its processor and memory, such as key presses, a scanned barcode, a sensor reading or data arriving from a network.
- Processing
- The work a computer's processor does on data by following program instructions: calculating, comparing, sorting, converting and deciding.
- Output
- Results sent from a computer to the outside world or to another device, such as a picture on a monitor, sound from speakers, a printed page or data sent over a network.
- Storage
- Hardware or media that keep data so it can be retrieved later, even after the power is turned off, such as a solid-state drive, hard disk drive or USB flash drive.
- Central processing unit (CPU)
- The chip that executes program instructions. It combines a control unit, which fetches and directs instructions, with a processing unit, including the arithmetic logic unit, which carries them out.
- Random-access memory (RAM)
- Fast, volatile working memory that holds the programs and data the CPU is using right now. Its contents are lost when the power is removed.
- Read-only memory (ROM)
- Non-volatile memory on the motherboard that holds the firmware, BIOS or UEFI, that runs when a computer is switched on.
- Von Neumann architecture
- The computer design John von Neumann described in 1945, made of processing, control, memory, input and output units, in which program instructions and data share the same memory.
- Input/output (I/O) device
- A device that can both send data into a computer and receive data from it, such as a touchscreen, headset, network adapter or drive.
Counting Like a Computer: Binary, Decimal, Hexadecimal and Octal
- Identify whether a value is written in binary, decimal, octal or hexadecimal from its digits, its label and its context.
- Explain positional notation, and why one hexadecimal digit always stands for four bits and one octal digit for three.
- Convert small whole numbers among the four systems by hand, and check each result by converting it back.
- Recognize where each system turns up in everyday IT work, such as MAC addresses, web color codes and Linux file permissions.
Why 25 Dec equals 31 Oct
The fall 2016 lecture on number systems for COS 217, Princeton's course on programming systems, opens with a riddle. Why do computer programmers confuse Christmas and Halloween? Because 25 Dec = 31 Oct.[1] Dec and Oct are short for December and October, but they are also short for decimal and octal. In octal, 31 means three eights plus one: 3 × 8 + 1 = 25. Christmas and Halloween are the same number, written two ways.
That one line holds the whole lesson. A notational system, also called a number system or a base, is a set of digit symbols plus a rule for what each position in a number is worth. The quantity twenty-five stays the same whether you write it as 25 in decimal, 31 in octal, 19 in hexadecimal or 11001 in binary. Only the writing changes. Inside the machine there is one pattern of bits. The notation is a choice people make about how to show that pattern on a screen or a page.
Exam objectives: CompTIA Tech+ FC0-U71 objective 1.2, Identify notational systems, which names four: binary, hexadecimal, decimal and octal.[2] The verb is "identify": recognize which system a value is written in, know its base and its digits, and know where each one turns up. Converting a small value by hand is the surest way to understand all of that, so this lesson works each conversion end to end.
Beyond everyday decimal, the systems computer science cares about are binary, octal and hexadecimal, which are base 2, base 8 and base 16.[3] A text message, a photo and a video are all, underneath, stored as numbers.[4] These four ways of writing numbers are the vocabulary for talking about what a computer actually holds.
Positional notation: one rule runs all four systems
Start with the system you already know. Decimal uses ten digit symbols, 0 through 9, and its positions grow by powers of 10 as you move from right to left. The number 487 means 4 hundreds plus 8 tens plus 7 ones. You do this without thinking, which is exactly why it is worth slowing down once. The same mechanism, with a different base, gives you every other system in this lesson.
Here is the rule in full. Number the positions from the right, starting at 0. Each position is worth the base raised to that position number. A digit's contribution is the digit times its position value, and the number is the sum of the contributions. For 487 in base 10:
- Position 2: 4 × 102 = 4 × 100 = 400
- Position 1: 8 × 101 = 8 × 10 = 80
- Position 0: 7 × 100 = 7 × 1 = 7
- Total: 400 + 80 + 7 = 487
Any number raised to the power 0 is 1, so the rightmost position is always the ones place, in every base. Positional also means order matters. 2945 and 2495 use the same four digits, and they are different numbers.
| Position | Base 10 (decimal) | Base 2 (binary) | Base 8 (octal) | Base 16 (hexadecimal) |
|---|---|---|---|---|
| 0 | 1 | 1 | 1 | 1 |
| 1 | 10 | 2 | 8 | 16 |
| 2 | 100 | 4 | 64 | 256 |
| 3 | 1,000 | 8 | 512 | 4,096 |
| 4 | 10,000 | 16 | 4,096 | 65,536 |
Two consequences follow from the rule, and both explain mistakes people make later.
First, a system with base b needs exactly b digit symbols, running from 0 up to b minus 1. Decimal stops at 9, octal stops at 7, binary stops at 1. Hexadecimal needs sixteen symbols, so after 9 it borrows letters. No system has a single symbol for its own base.
Second, because there is no symbol for the base, the base itself is always written "10": a 1 in position 1 and a 0 in position 0. In decimal, 10 is ten. In binary, 10 is two. In octal, 10 is eight. In hexadecimal, 10 is sixteen. A bare "10" tells you nothing until you know the base.
In short: every system here works like decimal. Multiply each digit by its position value, add the results, and remember that position values are powers of the base and that a written "10" always means the base itself.
Binary: two symbols because a circuit has two states
Computers hold information as electrical voltages that are either high or low. A run of highs and lows can be read as a binary number by calling high 1 and low 0.[3] That is why most digital computers use the binary number system.[1] Binary has two symbols, 0 and 1, and its position values double each step: 1, 2, 4, 8, 16, 32, 64, 128 and onward. Two states suit hardware because a circuit only has to tell on from off, not pick one of ten voltage levels out from its neighbors.
Each binary digit is a bit. Eight bits make a byte, and four bits make a nibble.[3] A fixed number of bits gives a fixed number of patterns, and each extra bit doubles the count. A nibble has 24 = 16 patterns and a byte has 28 = 256. Because counting starts at zero, the largest unsigned nibble is 1111, which is 15, and the largest unsigned byte is 11111111, which is 255.[3] "Unsigned" means the pattern stands only for zero or a positive whole number. Schemes for negative numbers exist, but they are beyond this objective.
Counting in binary works like a car's odometer with only two digits on each wheel. When a wheel passes 1, it rolls back to 0 and carries 1 to the next wheel on the left.
| Decimal | Binary | What happened |
|---|---|---|
| 0 | 0 | Start |
| 1 | 1 | Ones place used up |
| 2 | 10 | Carry into the twos place |
| 3 | 11 | Both places full |
| 4 | 100 | Carry twice, into the fours place |
| 5 | 101 | 4 + 1 |
| 6 | 110 | 4 + 2 |
| 7 | 111 | 4 + 2 + 1, three places full |
| 8 | 1000 | Carry three times, into the eights place |
Look at 1, 11, 111 and 1111, which are 1, 3, 7 and 15. A string of all 1s is always one less than the next power of 2. The same reason makes 255 the top of a byte: 256 would need a ninth bit. If a device keeps a counter in one byte, 255 is its ceiling. Adding 1 to 11111111 leaves the carry nowhere to go, and the counter wraps or fails. That is called integer overflow.
One limit surprises people. Binary holds whole numbers exactly, but some fractions that look tidy in decimal, such as one-tenth, have no exact binary form, just as 1/3 becomes 0.333... forever in decimal. The computer stores a very close approximation. That is why many programming languages print 0.30000000000000004 when asked to add 0.1 and 0.2. Nothing is broken; you are seeing the rounding.
Procedure 1: binary to decimal with the weights method
One standard way to turn a value in any base into decimal is the weights method.[5] Write each position's value, its weight, above its digit, and add up the weights that count. For binary this is especially quick, because each digit is either 0 (the weight does not count) or 1 (it counts once).
Worked example: what is 10001011 in decimal?
- Count the bits. There are eight, so the weights run from 128 on the left down to 1 on the right.
- Write the weights over the bits.
- Copy the weight down wherever the bit is 1. Write 0 wherever the bit is 0.
- Add the bottom row.
| Weight | 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
|---|---|---|---|---|---|---|---|---|
| Bit | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 |
| Counts for | 128 | 0 | 0 | 0 | 8 | 0 | 2 | 1 |
128 + 8 + 2 + 1 = 139. A University of California, Riverside course handout works the same number and reaches the same total.[6]
Now change one input. Flip the leftmost bit to 0, so the value is 00001011. Only one bit changed, but the 128 no longer counts: 8 + 2 + 1 = 11. The value fell from 139 to 11. Go back to the original and flip the rightmost bit instead, giving 10001010, and the total is 138. The two runs show the two ends of a binary number. The leftmost bit, the most significant bit, carries the biggest weight. The rightmost bit, the least significant bit, is worth only 1 and decides whether the number is odd or even. A binary number that ends in 0 is always even.
A quick self-check: 42 as an 8-digit binary number is 00101010. Put the weights over it and you get 32 + 8 + 2 = 42. The two leading zeros do not change the value. They only pad the number out to a full byte, which is how values are usually shown when their storage size matters.
Procedure 2: decimal to binary by repeated division
Going the other way, the reliable method is to divide by 2 again and again and keep the remainders.[1] Each remainder is 0 or 1, and each one is the next bit, starting from the right. The step people forget: when the quotient reaches 0, you read the remainders from the bottom up.[1]
Worked example: 37 in binary.
| Step | Division | Quotient | Remainder (bit) |
|---|---|---|---|
| 1 | 37 ÷ 2 | 18 | 1 (rightmost bit) |
| 2 | 18 ÷ 2 | 9 | 0 |
| 3 | 9 ÷ 2 | 4 | 1 |
| 4 | 4 ÷ 2 | 2 | 0 |
| 5 | 2 ÷ 2 | 1 | 0 |
| 6 | 1 ÷ 2 | 0 | 1 (leftmost bit) |
Reading the remainder column from step 6 back up to step 1 gives 100101. Check it with Procedure 1: 32 + 4 + 1 = 37. Always check. It takes ten seconds and catches the commonest error. If you read the column top to bottom, you get 101001, which is 32 + 8 + 1 = 41, a different number.
Change the input by one and watch what moves. For 38: 38 ÷ 2 = 19 remainder 0, then 19 ÷ 2 = 9 remainder 1, then 9 ÷ 2 = 4 remainder 1. From there the steps for 4, 2 and 1 give remainders 0, 0 and 1, exactly as before. Bottom to top, that is 100110. The first remainder, which becomes the rightmost bit, is now 0 because 38 is even. Check: 32 + 4 + 2 = 38.
In short: to read binary, add the weights that sit over the 1s. To write binary, divide by 2 and read the remainders bottom to top, then check your result by adding the weights back up.
Hexadecimal: sixteen symbols, four bits per digit
Hexadecimal, usually shortened to hex, is base 16. It needs sixteen symbols: 0 to 9, then A, B, C, D, E and F, where the letters stand for the values 10 to 15.[1] Case does not matter. 2f and 2F are the same value, and you will see both.
Why would anyone count in sixteens? Because 16 is 2 to the fourth power, every hex digit corresponds to exactly four binary digits.[1] Four bits have exactly sixteen patterns, 0000 to 1111, and hex has exactly sixteen digits, so the fit is perfect with nothing left over. A byte, eight bits, is always exactly two hex digits. That makes hex a compact way for people to read long bit patterns without losing their place. Try reading "1010000100111101" aloud to a colleague, then try "A13D".
| Decimal | Binary (4 bits) | Octal | Hexadecimal |
|---|---|---|---|
| 0 | 0000 | 0 | 0 |
| 1 | 0001 | 1 | 1 |
| 2 | 0010 | 2 | 2 |
| 3 | 0011 | 3 | 3 |
| 4 | 0100 | 4 | 4 |
| 5 | 0101 | 5 | 5 |
| 6 | 0110 | 6 | 6 |
| 7 | 0111 | 7 | 7 |
| 8 | 1000 | 10 | 8 |
| 9 | 1001 | 11 | 9 |
| 10 | 1010 | 12 | A |
| 11 | 1011 | 13 | B |
| 12 | 1100 | 14 | C |
| 13 | 1101 | 15 | D |
| 14 | 1110 | 16 | E |
| 15 | 1111 | 17 | F |
Learn the binary and hex columns against each other, at least from 8 to F. Four anchors let you rebuild the rest: 1000 is 8, 1010 is A, 1100 is C, 1111 is F. Notice also that the octal column reaches "10" at eight, the moment octal runs out of digits, while hex keeps going with letters.
Procedure 3: converting with hexadecimal
Binary to hex. Starting at the right, split the bits into groups of four and replace each group with its hex digit. If the leftmost group comes up short, pad it with zeros on the left. Princeton's lecture takes the 16-bit pattern 1010000100111101:
- Group it: 1010 0001 0011 1101
- Replace each group: A 1 3 D
- Result: A13D.[1]
A shorter one is the byte from Procedure 1. 10001011 groups as 1000 1011, which is 8B.[6] The hex form shows the byte's two halves at a glance, which the decimal form, 139, does not.
Hex to binary. Reverse the process: replace each hex digit with its four-bit pattern. 3F becomes 0011 1111. You may drop the leading zeros and write 111111 if you are not showing a fixed width.
Hex to decimal. Use positional notation, with weights of 1, 16, 256 and so on. Worked: 25 in hex is 2 × 16 + 5 × 1 = 32 + 5 = 37. Now flip the input by swapping the digits. 52 in hex is 5 × 16 + 2 = 82. Same digits, different positions, different value.
With a letter: 2F is 2 × 16 + 15 = 47. Two tempting wrong results are worth naming. Writing "2" and "15" side by side gives 215, as if decimal values could be pasted together. Treating the left digit as tens gives 20 + 15 = 35, which forgets that the second position in hex is worth 16, not 10.
Decimal to hex. Divide by 16 and keep the remainders, exactly as you divided by 2 for binary. 37 ÷ 16 = 2 remainder 5, then 2 ÷ 16 = 0 remainder 2. Bottom to top, that is 25. For 202: 202 ÷ 16 = 12 remainder 10, then 12 ÷ 16 = 0 remainder 12. The remainders 10 and 12 are single hex digits, A and C, so bottom to top the result is CA. Writing "1210" is the error to avoid. Each remainder must become exactly one digit.
Where hexadecimal shows up on a real screen
You will meet hex long before you write any code. Three places come up constantly in IT support.
A MAC address (Media Access Control address) is the hardware address of a network interface. It is 48 bits long, so it is printed as six bytes, or twelve hex digits. On Windows, the command ipconfig /all lists the computer's network settings, and the MAC address appears on the "Physical Address" line. This output is a fictional example:
Ethernet adapter Ethernet:
Description . . . . . . . . . . . : Example Gigabit Network Connection
Physical Address. . . . . . . . . : 3C-52-82-1A-9F-04
DHCP Enabled. . . . . . . . . . . : YesEach pair is one byte. 9F, for instance, is 9 × 16 + 15 = 159. The letters A to F are your clue that this is hex, not decimal. The Network+ course covers what switches do with these addresses.
Web colors use hex too. In HTML (Hypertext Markup Language) and style sheets, a color such as #FF8800 is three bytes: red FF, green 88, blue 00. FF is 255, the maximum; 88 is 8 × 16 + 8 = 136; 00 is 0. So the color is full red, about half green and no blue, which is an orange. The # sign marks the value as a hex color code.
IPv6 (Internet Protocol version 6) addresses are also written in hex, in groups separated by colons, such as the fictional fe80::1c2b:3aff:fe4d:5e6f.
In short: hex is binary written four bits at a time. When you see letters A to F mixed with digits, or a 0x or # in front, you are almost certainly looking at hexadecimal.
Octal: eight symbols, three bits per digit
Octal is base 8 and uses eight symbols, 0 to 7.[1] The digits 8 and 9 never appear in an octal number. If you see one, the number is not octal. Because 8 is 2 to the third power, each octal digit stands for exactly three bits, just as each hex digit stands for four. Faced with a long string of bits, you can group it in threes to get octal or in fours to get hex.[3]
Binary to octal. Start at the right, split the bits into groups of three, and replace each group with its octal digit. Course notes from the University of Illinois Chicago take the 17-bit pattern 10110010101101011, group it as 10 110 010 101 101 011, and write it in octal as 262553.[3] The leftmost group has only two bits, 10, which is 2. Pad it to 010 if that helps you see it.
Octal to binary. Replace each octal digit with its three-bit pattern. 755 becomes 111 101 101.
Octal to and from decimal. The weights are 1, 8, 64 and 512. Back to the riddle: 31 in octal is 3 × 8 + 1 = 25. To go from decimal 25 to octal, divide by 8: 25 ÷ 8 = 3 remainder 1, and 3 ÷ 8 = 0 remainder 3. Bottom to top, that is 31.
Now change one thing. Read the same "31" as hexadecimal instead of octal, and it becomes 3 × 16 + 1 = 49. The digits did not change; the base did, and the value nearly doubled. A number with no label can mislead you this way.
Octal in daily use: Linux file permissions
Programmers often use octal as well as hex.[1] The place an IT learner is most likely to meet it is in file-system permissions on Linux and other Unix-like systems. Each file has three sets of permissions: for its owner, for its group and for everyone else. Each set has three yes-or-no switches: read, write and execute. Three switches are three bits, and three bits are one octal digit, so the whole permission set fits in three octal digits.
Inside each digit, read is worth 4, write 2 and execute 1. Those are just the binary weights of a three-bit group, so adding them rebuilds any digit.
| Octal digit | Bits (r w x) | Shown as | Meaning |
|---|---|---|---|
| 7 | 111 | rwx | Read, write and execute (4 + 2 + 1) |
| 6 | 110 | rw- | Read and write (4 + 2) |
| 5 | 101 | r-x | Read and execute (4 + 1) |
| 4 | 100 | r-- | Read only |
| 3 | 011 | -wx | Write and execute (2 + 1) |
| 2 | 010 | -w- | Write only |
| 1 | 001 | --x | Execute only |
| 0 | 000 | --- | No access |
The command chmod, short for "change mode", sets a file's permissions. A fictional example: an administrator runs chmod 754 backup.sh, and a directory listing then shows:
-rwxr-xr-- 1 maria staff 2048 Nov 3 09:14 backup.shDecode it digit by digit. 7 is 111, rwx: the owner may read, change and run it. 5 is 101, r-x: the group may read and run it. 4 is 100, r--: everyone else may only read it. Change one input, from 754 to 644, and the result flips: the owner becomes rw- and can no longer run the script, and the group drops to read only. One digit, three bits, a real change in who can do what. A permission such as "chmod 789" is impossible, because 8 and 9 are not octal digits.
Telling the four apart on sight
Written numbers often carry a label that names their base. Learn the common ones, because a question may hinge on them.
| Marking style | Binary | Octal | Decimal | Hexadecimal |
|---|---|---|---|---|
| Subscript base (textbooks) | 100010112 | 2138 | 13910 | 8B16 |
| Letter suffix (some textbooks and assemblers) | 100101B | 45O | 37 (no suffix) | 25H or 25h |
| Prefix (Python, JavaScript and many other languages) | 0b100101 | 0o45 | 37 | 0x25 |
When there is no label, the digits narrow it down. A value made only of 0s and 1s could be binary, but it could also be decimal, octal or hex. Any letter from A to F means hex. An 8 or a 9 rules out binary and octal. Context settles the rest. Port numbers such as 8080 and everyday prices are decimal by convention, while MAC addresses and color codes are hex by convention. If nothing tells you otherwise, a number is decimal.
Questions on this objective tend to give a clue in the wording. This table maps common clues to the system they point to, including the pairs people mix up.
| Words in the question | Points to | Do not confuse with |
|---|---|---|
| Base 2, only 0 and 1, on and off, bits | Binary | Decimal values that happen to use only 1s and 0s, such as 100 |
| Base 10, digits 0-9, everyday counting | Decimal | Hex, which also uses 0-9 but adds A-F |
| Base 16, letters A through F, 0x prefix, MAC address, color code | Hexadecimal | Octal, the other shorthand for binary |
| Four bits per digit, two digits per byte | Hexadecimal | Octal, which is three bits per digit |
| Base 8, digits 0-7, three bits per digit, chmod or file permissions | Octal | Hex, which is four bits per digit |
| Value contains an 8 or a 9 | Decimal or hexadecimal | Octal, which never uses 8 or 9 |
| "10" with a subscript 2 | The quantity two | Ten, which is what an unlabeled 10 means |
In short: identify a base by its label first (subscript, suffix, 0x, 0b, #), then by its digits, then by context, and assume decimal only when nothing points elsewhere.
One value through all four systems
Now put the procedures together on one byte. Start with decimal 202.
- Decimal to hex. Dividing by 16, as in Procedure 3, gave remainders 10 and 12, so 202 is CA.
- Hex to binary. C is 1100 and A is 1010. Result: 11001010.
- Binary to octal. Group in threes from the right: 11 001 010. That gives 3, 1 and 2. Result: 312.
- Check. Octal 312 is 3 × 64 + 1 × 8 + 2 = 192 + 8 + 2 = 202. The binary weights give 128 + 64 + 8 + 2 = 202. Every path returns to the start.
Now change one input and watch the result flip. Suppose someone hands you "312" with no label and you assume it is decimal. Decimal 312 is 256 + 32 + 16 + 8, so in binary it is 100111000. That is nine bits, and it no longer fits in one byte at all, since a byte tops out at 255. The same three digits, read as octal, were a small value that fit easily in eight bits. Assuming the wrong base did not produce a slightly wrong number. It produced a different kind of answer.
To check your hand work, the Calculator app built into Windows has a Programmer mode that shows a value in HEX, DEC, OCT and BIN at once, and the macOS Calculator has a Programmer view as well. Work the conversion on paper first, then confirm it. A handful of conversions done by hand will teach you more than rereading this page.
Common misconceptions
- "The computer stores hex data differently from binary data." It does not. The machine stores only bits. Hexadecimal and octal are shorthands that people use to read those bits; the same byte is 10001011, 8B, 213 or 139 depending only on how it is displayed.
- "10 always means ten." Only in decimal. A written 10 always means the base itself: two in binary, eight in octal, sixteen in hex.
- "Converting hex to decimal means reading the digits as decimal." 2F is not 215 or 35. The left digit is worth 16 times its value, so 2F is 2 × 16 + 15 = 47.
- "Octal is just a smaller hex, so it can use any digit up to 9." Octal stops at 7. A value containing 8 or 9 is never octal, which is why a permission like 789 cannot exist.
- "In repeated division, the first remainder is the first digit you write." The first remainder is the rightmost digit. Read the remainders bottom to top, or 37 comes out as 101001 (41) instead of 100101.
- "Leading zeros change the value." 00101010 and 101010 are both 42. Zeros on the left only show the width of the storage, such as a full byte.
What to carry forward
- A notational system is a set of digit symbols plus position values that are powers of the base. Decimal is base 10, binary base 2, octal base 8 and hexadecimal base 16.
- A base-b system uses digits 0 to b minus 1. Binary uses only 0 and 1, octal never contains 8 or 9, and hex adds A to F for the values 10 to 15.
- "10" written in any base means the base itself: two in binary, eight in octal, sixteen in hex.
- Binary to decimal: add the weights 128, 64, 32, 16, 8, 4, 2, 1 that sit over the 1 bits. 10001011 is 139.
- Decimal to binary: divide by 2 and read the remainders bottom to top. 37 is 100101, and checking by adding the weights catches the reversed-reading error.
- One hex digit is exactly four bits, because 16 is 24, so a byte is always two hex digits: 10001011 is 8B.
- One octal digit is exactly three bits, because 8 is 23: octal 755 is 111 101 101, which is rwxr-xr-x in Linux permissions.
- An unsigned byte has 256 patterns, from 0 to 255, and 255 is 11111111 in binary and FF in hex.
- Hex appears in MAC addresses, color codes like #FF8800 and values marked 0x. Octal appears in file permissions. Unlabeled everyday numbers are decimal.
Sources
- Princeton University, Department of Computer Science (COS 217). (2016). 03 NumberSystems. cs.princeton.edu
- CompTIA. (2023). CompTIA Tech+ FC0-U71 V6 certification exam: Exam objectives (Document version 4.0). lecbyo.files.cmp.optimizely.com
- John T. Bell. (n.d.). Introduction to C / C++ Programming: Number Systems. University of Illinois Chicago, Computer Science. cs.uic.edu
- Kwantlen Polytechnic University (Pressbooks). (n.d.). Ch 1. Number Systems. kpu.pressbooks.pub
- University of New Hampshire. (n.d.). CS 400 Intro to Computer Science: Numbers. cs400.cs.unh.edu
- University of California, Riverside, Computer Science. (2000). Binary (CS 120A handout). cs.ucr.edu
- Key terms
- Notational system
- A way of writing numbers made of a fixed set of digit symbols and a rule giving each position a value; also called a number system or base.
- Positional notation
- Writing numbers so that each digit's worth depends on its position, with each position worth a power of the base, counting from position 0 on the right.
- Base
- The number of distinct digit symbols a number system uses, and the factor by which each position's value grows moving left; also called the radix.
- Binary
- The base-2 number system, using only the digits 0 and 1; computers use it because circuits store two states, high and low voltage.
- Decimal
- The base-10 number system of everyday counting, using the digits 0 to 9, with positions worth 1, 10, 100, 1,000 and so on.
- Hexadecimal
- The base-16 number system, using 0 to 9 and A to F for the values 10 to 15; each hex digit stands for exactly four bits, so a byte is two hex digits.
- Octal
- The base-8 number system, using only the digits 0 to 7; each octal digit stands for exactly three bits, as in Linux file permissions such as 755.
- Bit
- A single binary digit, 0 or 1, the smallest unit of data a computer stores.
- Byte
- A group of eight bits, which has 256 possible patterns and can hold an unsigned value from 0 to 255.
- Nibble
- A group of four bits, half a byte, with 16 possible patterns; exactly one hexadecimal digit.
Bits, Bytes and Hertz: Units of Storage, Throughput and Speed
- Convert storage sizes from bits to petabytes in decimal and binary terms, and explain why a drive can report less space than its label without being faulty.
- Convert throughput between bits and bytes per second, and estimate the shortest possible time for a download or a stream.
- Explain what megahertz and gigahertz measure in a processor, and why clock speed alone cannot rank processors from different generations.
- Read a scenario and tell whether it is asking about storage, throughput or processing speed.
A 4.2 GB patch, a 500 Mbps plan and a stopwatch
Priya's internet bill says 500 Mbps. On a Saturday morning her game announces a 4.2 GB patch. (Priya is an invented example, but her numbers are typical.) She turns 4.2 GB into 4,200 MB, divides by 500 and tells her brother the download will take 8.4 seconds. She starts a stopwatch. It stops at 1 minute 12 seconds.
Nothing is broken. Her connection is healthy and her division is correct. The problem is the units. The plan is sold in megabits per second, written with a lowercase b. The patch is measured in gigabytes, written with a capital B. A byte is 8 bits, so her estimate was too small by a factor of 8. The true minimum is 67.2 seconds. Ordinary network overhead explains the few extra seconds on the stopwatch.
Most unit mistakes in IT look like this one: sound reasoning applied to a misread symbol. So each part of this lesson starts from a believable wrong answer and traces where it goes wrong. Once you can fix four of these bugs, you have covered everything the objective asks.
Exam objectives: 1.3 Compare and contrast common units of measure. CompTIA's list has three families: storage units from the bit to the petabyte, throughput units from bits per second to terabytes per second, and processing speed in megahertz and gigahertz.[1]
| Family | Question it answers | Base unit | Units on the exam |
|---|---|---|---|
| Storage | How much data is there? | Byte (B), made of bits (b) | bit, byte, KB, MB, GB, TB, PB |
| Throughput | How fast is data moving? | Bits per second (bps) | bps, Kbps, Mbps, Gbps, Tbps |
| Processing speed | How fast does the processor's clock tick? | Hertz (Hz), one cycle per second | MHz, GHz |
Each family has a giveaway. Storage units never contain "per second". Throughput units always end in "ps", for per second, and almost always count bits. Processing speed is counted in hertz, and hertz already means "per second" by itself.
Bit and byte: the two base units of data
A bit, short for binary digit, is the smallest piece of data a computer handles: a single 0 or 1. You met bits in the binary lesson, where each place in a binary number is one bit. A single bit records one of two states, such as on or off, or yes or no.
A byte is a group of 8 bits. Eight bits give 28 = 256 different patterns, from 00000000 to 11111111, which is 0 to 255 in decimal. That is enough for every letter, digit and punctuation mark of plain English text to have its own code, so one character of ordinary English text fills one byte. Computers address memory and storage in whole bytes. That is why file sizes and drive capacities are counted in bytes, not bits.
The two symbols differ only in case, and that is exactly where Priya went wrong:
- b (lowercase) means bit. You see it in network speeds such as Mbps and Gbps.
- B (uppercase) means byte. You see it in sizes such as MB, GB and TB.
To convert between them, use the number 8. To go from bytes to bits, multiply by 8. To go from bits to bytes, divide by 8. A 2 MB photo is 16 Mb. A 100 Mbps link carries at most 12.5 MB each second.
This course always writes a space between a number and its unit, as in 4.2 GB rather than 4.2GB. It is a small habit, but it makes the unit harder to skim past.
The upshot: lowercase b is a bit, uppercase B is a byte, and 8 bits make a byte. Check whether the letter is upper or lower case before you do anything with the number.
Storage units: kilobyte, megabyte, gigabyte, terabyte, petabyte
Writing Priya's patch out in bytes gives 4,200,000,000 bytes, which nobody wants to type. Prefixes fix that. A prefix is a word or letter placed in front of a unit to multiply it: kilo- in front of meter means 1,000 meters, and kilo- in front of byte means 1,000 bytes. NIST's SI guide explains that a prefix name attaches directly to the unit name, and a prefix symbol directly to the unit symbol.[2] That is why "kilobyte" is one word and "KB" has no space inside it.
The prefixes come from the International System of Units (SI), the modern metric system. The International Bureau of Weights and Measures (BIPM) publishes the official list of the prefixes used to write decimal multiples of units.[3] Each step up the list multiplies by 1,000.
| Unit | Symbol | Size | Bytes | Rough example of something this size |
|---|---|---|---|---|
| Bit | b | 1/8 of a byte | 0.125 | One yes-or-no setting |
| Byte | B | 8 bits | 1 | One letter of plain English text |
| Kilobyte | KB | 103 bytes | 1,000 | A short plain-text email |
| Megabyte | MB | 106 bytes | 1,000,000 | A three-minute song stored as an MP3 file |
| Gigabyte | GB | 109 bytes | 1,000,000,000 | A feature-length film, or a big game patch |
| Terabyte | TB | 1012 bytes | 1,000,000,000,000 | The whole drive of a typical laptop or desktop |
| Petabyte | PB | 1015 bytes | 1,000,000,000,000,000 | Storage in a data center, spread over many racks of drives |
Peta has its own history. It and exa were added to the SI together, in a resolution of the General Conference on Weights and Measures (CGPM), the body that governs the SI, and the BIPM still lists that resolution on its prefix page.[3] More prefixes come after peta, such as exa, zetta and yotta, but the Tech+ storage list stops at the petabyte.
One symbol detail confuses people. In the SI, kilo is written with a lowercase k, while mega, giga, tera and peta use capitals. NIST notes that kilo, hecto and deka are the only multiplying prefixes with lowercase symbols.[4] CompTIA, like much of the computer industry, writes kilobyte as KB and kilobits per second as Kbps, with a capital K. Read KB and kB as the same unit. The case of the k does not change the meaning. The case of the final b or B does.
Sizes and rates are connected, and a worked example shows how. Take an audio file encoded at 128 Kbps, meaning 128,000 bits for every second of sound. A three-minute song lasts 180 seconds:
- Bits: 128,000 bits per second x 180 seconds = 23,040,000 bits.
- Bytes: 23,040,000 / 8 = 2,880,000 bytes.
- With a prefix: 2,880,000 bytes = 2,880 KB, or about 2.9 MB.
That is why the table puts a three-minute song in the megabyte row. A throughput figure multiplied by a time gives you a size.
Bug 1: "My new 2 TB drive is missing about 190 GB"
A customer plugs in a new external drive labeled 2 TB and opens its Properties window in Windows. The capacity line reads like this (the figures are an example from a typical 2 TB drive):
Capacity: 2,000,398,934,016 bytes 1.81 TB
The customer reasons: "2 TB minus 1.81 TB is 0.19 TB, about 190 GB. The drive is short. Either it is faulty or the maker lied." It sounds airtight. Find the fault.
Start with the byte count, because a plain number of bytes has no prefix and cannot be misread. 2,000,398,934,016 bytes is just over 2 trillion bytes. In SI terms that is 2.0 TB, which is what the box promised. The maker counted correctly.
Now look at the 1.81. Divide the same byte count by 1,099,511,627,776, which is 240, and you get 1.819, which Windows shows as 1.81. Windows counts in powers of 2 but still prints the decimal label TB. No space is missing. The same bytes have been divided by two different numbers.
Why do powers of 2 come into it at all? As you saw in the binary lesson, 210 = 1,024, which is close to 1,000. Memory chips are built in powers of 2, so early engineers borrowed "kilo" to mean 1,024, and the habit spread to mega, giga and the rest. The SI does not allow this. NIST states that the SI prefixes "refer strictly to powers of 10".[5] Its example is that one kilobit is 1000 bits, not 1024.[5] For powers of 2, NIST recommends a separate set of binary prefixes: kibi (Ki), mebi (Mi), gibi (Gi), tebi (Ti), pebi (Pi) and so on.[5] The International Electrotechnical Commission (IEC) first defined these names. Strictly, Windows is showing 1.81 TiB, tebibytes, under the label TB.
| Decimal unit | Bytes | Binary unit | Bytes | Binary is larger by |
|---|---|---|---|---|
| Kilobyte (KB) | 1,000 | Kibibyte (KiB) | 1,024 | 2.4 percent |
| Megabyte (MB) | 1,000,000 | Mebibyte (MiB) | 1,048,576 | 4.9 percent |
| Gigabyte (GB) | 1,000,000,000 | Gibibyte (GiB) | 1,073,741,824 | 7.4 percent |
| Terabyte (TB) | 1,000,000,000,000 | Tebibyte (TiB) | 1,099,511,627,776 | 10.0 percent |
| Petabyte (PB) | 1,000,000,000,000,000 | Pebibyte (PiB) | 1,125,899,906,842,624 | 12.6 percent |
Read down the last column. The gap grows at every step, because each step multiplies by 1,024 instead of 1,000. A 2.4 percent gap on a kilobyte went unnoticed. A 10 percent gap on a terabyte makes a new drive look as if a tenth of it has vanished. The same sum gives the familiar case: a 1 TB drive is 1,000,000,000,000 bytes, and dividing by 1,073,741,824 gives about 931 GB as Windows counts it.
Now run the case again with one thing changed. The customer plugs the same drive into a Mac. macOS has shown sizes in decimal units since Mac OS X 10.6 in 2009, so it reports about 2 TB. The bytes have not changed. Only the divisor has, and the "missing" space is back. When is there a real problem, then? When the byte count itself is well below what the label promises. That can point to a counterfeit drive, a partition smaller than the disk, or a drive that is failing.
Where does each convention turn up?
| Where you see the number | Convention | Example |
|---|---|---|
| Hard disk drive and solid-state drive labels | Decimal (1,000) | 1 TB = 1012 bytes |
| Network and internet speeds | Decimal (1,000), always | 1 Mbps = 1,000,000 bits per second |
| Random-access memory (RAM) module sizes | Binary (1,024) | A 16 GB module holds 16 x 230 bytes |
| Windows File Explorer | Binary, labeled KB, MB, GB, TB | A 2 TB drive shows 1.81 TB |
| macOS (since 10.6) | Decimal | A 2 TB drive shows 2 TB |
Many IT courses and practice questions still teach that 1 KB = 1,024 bytes, while the SI definition is 1,000. Know both, and match the number to the situation. RAM and Windows use 1,024. Drive labels and every network speed use 1,000.
The upshot: a drive that shows less than its label is almost always the same bytes divided by 1,024s instead of 1,000s. Compare the raw byte count with the label before you call the drive faulty.
Throughput units: bps, Kbps, Mbps, Gbps and Tbps
Throughput is the amount of data that actually moves from one place to another in a given time. Its base unit is bits per second (bps). Microsoft's documentation on streaming media measures bit rate in bits per second or kilobits per second, which is the same family.[6] Throughput uses the same decimal prefixes as storage. Each step is 1,000 times the one below it.
| Unit | Symbol | Bits per second | Where you typically see it |
|---|---|---|---|
| Bits per second | bps | 1 | The base unit; rarely written alone today |
| Kilobits per second | Kbps | 1,000 | Audio bit rates; old dial-up modems (56 Kbps) |
| Megabits per second | Mbps | 1,000,000 | Home broadband plans, speed tests, Wi-Fi links |
| Gigabits per second | Gbps | 1,000,000,000 | Ethernet ports on computers, fiber internet plans |
| Terabits per second | Tbps | 1,000,000,000,000 | Backbone links between providers and data centers |
Network speeds always use decimal prefixes. A 1 Gbps port signals 1,000,000,000 bits per second, never 230. So you never need the 1,024 factor when you work with speeds, which removes one source of confusion.
The exam list has one oddity. The objectives write "Terabytes per second (Tbps)", and the official acronym list says the same. By the bit and byte rule you have just learned, a lowercase b means bits, and in the industry Tbps means terabits per second. A rate in terabytes per second is written TBps or TB/s. For the exam, recognize Tbps as the largest throughput unit on the list: a trillion units moving every second. At work, read Tbps as terabits.
Speeds also show up in bytes. File-copy windows, game launchers and solid-state drive spec sheets often give rates in MB/s or MBps, megabytes per second. That is still throughput, just counted in bytes. Convert with the same factor of 8.
Three similar words need separating. Bandwidth is a link's capacity, the most it can carry. Throughput is what actually gets through, which is usually less. Bit rate is how much data a particular stream or file needs, or delivers, each second. Microsoft's documentation notes that bit rate is often confused with bandwidth, which it describes as a measure of a network's data transfer capacity.[6]
Bug 2: reading Mbps as MBps
Back to Priya. Here are two screens from her Saturday morning (example output):
Speed test
Download 487 Mbps
Upload 23 Mbps
Ping 14 ms
Game launcher
Downloading update 1.9 GB of 4.2 GB 60.9 MB/s
Side by side, the bug is plain. 487 divided by 8 is 60.9. The speed test counts bits and the launcher counts bytes. It is the same connection at the same moment, reported in two units. If Priya had looked at the launcher, she would never have expected 500 MB every second.
Here is the method she should have used, step by step:
- Write both quantities with their units. Size: 4.2 GB. Rate: 500 Mbps.
- Make the data units match. The rate counts bits, so convert the size to bits: 4.2 GB x 8 = 33.6 Gb.
- Make the prefixes match. The rate is in megabits, so 33.6 Gb = 33,600 Mb.
- Divide size by rate. 33,600 Mb / 500 Mbps = 67.2 seconds.
- Sanity-check. That is a best case. Real downloads run below the plan's rate, so expect a little over a minute.
Priya skipped step 2. She did every other step correctly, which is why her answer felt trustworthy.
Now change one input. Priya copies the same 4.2 GB patch from her laptop to an external Solid-state drive whose box promises transfers of up to 500 MBps, with a capital B. This time her original method is right. Size and rate are both in bytes, so 4,200 MB / 500 MBps = 8.4 seconds at best. The numbers 4.2 and 500 are the same as before, but one capital letter makes the answer eight times smaller.
| Bits per second | Bytes per second | Example |
|---|---|---|
| 8 Mbps | 1 MB/s | The basic ratio |
| 100 Mbps | 12.5 MB/s | An entry-level broadband plan |
| 500 Mbps | 62.5 MB/s | Priya's plan, at best |
| 1 Gbps | 125 MB/s | A common Ethernet port |
| 10 Gbps | 1.25 GB/s | A fast server or fiber link |
The upshot: before dividing a size by a speed, get both into bits or both into bytes, then match the prefixes. The calculation only goes wrong if you skip that step.
Bug 3: "My 50 Mbps plan should play anything"
A second invented case. Marco pays for a 50 Mbps plan. He takes his tablet to the far end of the garden and starts a high-quality video encoded at 25 Mbps. The video keeps pausing with a spinning circle. His reasoning: "50 is twice 25, so the internet is fine and the streaming service is broken."
Trace it. The 50 Mbps is bandwidth: what the provider delivers to the router. The tablet does not get that rate. It gets whatever throughput survives the weak Wi-Fi link at the end of the garden. Marco runs a speed test where he is sitting:
Speed test (tablet, far end of garden)
Download 18 Mbps
Upload 4 Mbps
Now compare like with like. The stream needs 25 Mbps and 18 Mbps is arriving. Microsoft's documentation describes what happens next: when the available bandwidth is lower than a file's bit rate, playback is interrupted.[6] Usually samples are skipped, or playback pauses while more data is buffered.[6] Marco's spinning circle is that buffering.
Run it again with one input changed. Marco walks back inside, near the router, and the speed test reads 42 Mbps. 42 is more than 25, so the stream plays smoothly. Alternatively, he could stay in the garden and choose a lower quality setting encoded at 8 Mbps, which fits inside 18. Either way, the rule is the same. A stream plays smoothly only when the throughput reaching the device stays above the stream's bit rate.
Two habits come out of this bug. Measure where the device actually is, not at the router. And check the direction too: a video call also sends your camera's picture, so a 4 Mbps upload can be the limit even when downloads are fast.
Processing speed: hertz, megahertz and gigahertz
The third family measures how often something happens, not how much data there is. One Hertz (Hz) is one cycle per second. The SI deliberately names its unit of frequency the hertz instead of writing it as "per second".[2] Inside a Central processing unit (CPU), a clock circuit sends out a steady stream of pulses. Each pulse is one cycle, a beat in which the processor's transistors switch and work moves forward. Clock rate, also called clock speed or frequency, is how many of those cycles happen each second.
Two prefixes matter here. A megahertz (MHz) is a million cycles per second (106). A gigahertz (GHz) is a billion (109). Intel puts it simply: a CPU with a clock speed of 3.2 GHz executes 3.2 billion cycles per second.[7] Older CPUs had speeds measured in megahertz.[7] To convert MHz to GHz, divide by 1,000. To go the other way, multiply by 1,000.
Here is how Windows shows the figure in the System Information app (example output for an invented processor):
Item Value
Processor Example Corp 8-Core Processor @ 3.20GHz, 3200 Mhz, 8 Core(s), 16 Logical Processor(s)
The same speed appears twice, once in GHz and once in MHz: 3.20 GHz and 3,200 MHz. (Windows writes the symbol as "Mhz". The correct symbol is MHz, with a capital H, because the hertz is named after the physicist Heinrich Hertz.)
MHz is still in use. On many systems the processor's speed is built from a slower base clock multiplied by a number called the multiplier. Intel's example: a multiplier of 46 on a 100 MHz base clock gives 4.6 GHz.[7] Work it through: 46 x 100 MHz = 4,600 MHz, and 4,600 / 1,000 = 4.6 GHz. Slower, simpler chips, such as those inside many small embedded devices, are also still rated in MHz.
Watch for hertz in places that have nothing to do with processing. A Wi-Fi router's 2.4 GHz and 5 GHz bands are radio frequencies. A monitor's 144 Hz is how many times per second it redraws the picture. The unit is the same, but each time it measures something different. NIST makes the general point that the name of a unit does not, by itself, tell you which quantity is being measured.[2]
Bug 4: the higher-GHz processor that loses
A shop has two laptops from the same processor brand. Laptop A has a chip from five generations ago running at 4.4 GHz. Laptop B has a current chip at 3.8 GHz. The buyer reasons: "4.4 is bigger than 3.8, so A is faster."
Trace it. GHz counts cycles, not work. The work done each second is cycles per second multiplied by the work done in each cycle, and that second number varies from design to design. Intel notes that sometimes several instructions finish in a single clock cycle, while in other cases one instruction takes several cycles.[7] Here is a simplified example with made-up figures for one core:
| Measure | Laptop A (older design) | Laptop B (newer design) |
|---|---|---|
| Clock speed | 4.4 GHz | 3.8 GHz |
| Average instructions finished per cycle | 1.5 | 2.5 |
| Instructions per second | 6.6 billion | 9.5 billion |
The slower clock wins, because each of its cycles does more. This is the real-world pattern Intel describes: a CPU with a higher clock speed from five years ago might be outperformed by a new CPU with a lower clock speed.[7] Real chips also differ in core count, cache and power limits, none of which appear in the GHz figure.
Now change one input. Both laptops have chips from the same brand and the same generation, 4.4 GHz against 3.8 GHz. The work done per cycle is now about the same, so the clock speed becomes a fair comparison. Intel says that within the same generation, a processor with a higher clock speed will generally outperform one with a lower clock speed across many applications.[7] This time the buyer's reasoning holds. Higher clock speeds also produce more heat, which is one reason makers improve work per cycle instead of simply raising the GHz.
The upshot: GHz is a fair comparison only between chips of the same brand and generation. Across generations, compare benchmark results instead. The Atlas A+ course goes further into cores, cache and choosing a processor.
Exam cues: which family is the question asking about?
Tech+ questions on this objective usually test whether you can match a situation to the right unit family, then compare sizes within it. Use the wording of the question.
| If the question says... | Think | Watch out for |
|---|---|---|
| File size, capacity, how much a drive holds | Storage: B, KB, MB, GB, TB, PB | Choosing a "per second" unit |
| Internet plan, download speed, link speed, bandwidth | Throughput: bps, Kbps, Mbps, Gbps, Tbps | Mixing Mbps with MBps |
| Clock speed, processor speed, frequency, cycles per second | Processing speed: MHz, GHz | Choosing Gbps because it also says "per second" |
| Mbps and MB in the same question | Multiply or divide by 8 | Dividing a size by a rate without converting |
| Drive shows less space than its label | Decimal versus binary counting, not a fault | Answers about bad sectors or viruses |
| Video stutters or buffers | Throughput below the stream's bit rate | Blaming the size of the file |
| Wi-Fi 2.4 GHz or 5 GHz | Radio frequency band | Treating it as processing speed or as throughput |
| Largest storage unit listed | Petabyte (PB) | Picking Tbps, which is a rate, not a size |
| Older chip has more GHz than newer chip | GHz alone cannot decide; the newer chip may win | Assuming more GHz always means faster |
If a question asks you to order units, use the prefix ladder: kilo, mega, giga, tera, peta, each 1,000 times the one before. A bit is smaller than a byte, so 1 GB is larger than 1 Gb.
Common misconceptions
- "A 1 TB drive that shows 931 GB is faulty or mislabeled." The maker counts 1012 bytes. Windows divides those same bytes by 230 and still writes GB. Compare the raw byte count with the label before deciding anything is wrong.
- "Mbps and MBps are two ways of writing the same thing." Lowercase b is a bit and capital B is a byte, so MBps is eight times Mbps. A 500 Mbps plan delivers at most 62.5 MB each second.
- "Network speeds use 1,024, like memory does." Network rates are always decimal: 1 Kbps is 1,000 bits per second, as the SI requires.
- "A higher GHz number always means a faster computer." GHz counts cycles, not work. Newer designs often do more per cycle, so GHz comparisons are only fair within one brand and generation.
- "The speed on my internet bill is what every device gets." That figure is the bandwidth delivered to the router. Wi-Fi distance, other users and overhead cut the throughput that reaches each device.
- "A router's 5 GHz rating tells you how fast it processes data." It is the radio frequency band the Wi-Fi uses. It is not the router's processor speed and not its throughput.
What to remember
- A bit is one binary digit (0 or 1). A byte is 8 bits and can hold 256 different values. Lowercase b means bit and uppercase B means byte.
- The storage ladder in decimal (SI) form: KB = 103 bytes, MB = 106, GB = 109, TB = 1012, PB = 1015. Each step is 1,000 times the one before.
- Binary counting uses 1,024 per step (KiB, MiB, GiB, TiB, PiB). The gap grows from 2.4 percent at kilo to 10.0 percent at tera, which is why a 1 TB drive appears in Windows as about 931 GB.
- Drive labels and every network speed use 1,000. RAM sizes and Windows File Explorer use 1,024 while still writing KB, MB, GB and TB.
- The throughput ladder: bps, Kbps (103), Mbps (106), Gbps (109), Tbps (1012). Tbps is the top of the exam list; at work, Tbps means terabits per second.
- To estimate a transfer time, convert the size and the rate to the same unit (bits or bytes, same prefix), then divide size by rate. A 4.2 GB file on a 500 Mbps link takes at least 67.2 seconds.
- Bandwidth is a link's capacity, throughput is what actually arrives, and bit rate is what a stream needs. When throughput falls below the bit rate, playback skips or pauses to buffer.
- One hertz is one cycle per second. MHz is a million cycles per second and GHz a billion, and 3.2 GHz equals 3,200 MHz. A multiplier of 46 on a 100 MHz base clock gives 4.6 GHz.
- Clock speed ranks processors fairly only within one brand and generation. Across generations, the work done per cycle can let a lower-GHz chip win.
Sources
- CompTIA. (2023). CompTIA Tech+ FC0-U71 V6 certification exam: Exam objectives (Document version 4.0). lecbyo.files.cmp.optimizely.com
- NIST. (n.d.). NIST Guide to the SI, Chapter 4: The Two Classes of SI Units and the SI Prefixes. nist.gov
- BIPM. (n.d.). SI prefixes. bipm.org
- NIST. (n.d.). Metric (SI) Prefixes. nist.gov
- NIST. (n.d.). SP 330 - Section 3. nist.gov
- Microsoft Learn. (n.d.). Bit Rate - Win32 apps. learn.microsoft.com
- Intel. (n.d.). CPU Speed: What Is CPU Clock Speed?. intel.com
- Key terms
- Bit
- Short for binary digit: the smallest unit of data, a single 0 or 1. Its symbol is a lowercase b, as in Mbps.
- Byte
- A group of 8 bits that can hold 256 different values. Storage is counted in bytes, with an uppercase B, as in MB and GB.
- SI prefix
- A decimal multiplier from the International System of Units placed in front of a unit, such as kilo (1,000), mega (1,000,000), giga, tera and peta. SI prefixes always mean powers of 10.
- Binary prefix
- A multiplier based on powers of 2, such as kibi (1,024), mebi, gibi, tebi and pebi. It is written KiB, MiB, GiB and so on to keep it separate from the decimal KB and MB.
- Throughput
- The amount of data that actually moves between two points in a given time, usually measured in bits per second (bps, Kbps, Mbps, Gbps, Tbps).
- Bandwidth
- The data capacity of a network link: the most it can carry per second. Measured in bits per second, it is often higher than the throughput a device actually gets.
- Bit rate
- The amount of data a stream or file uses or delivers per second, such as an audio track encoded at 128 Kbps. Playback stalls if throughput falls below it.
- Hertz
- The SI unit of frequency, equal to one cycle per second. A megahertz (MHz) is a million cycles per second and a gigahertz (GHz) is a billion.
- Clock speed
- How many cycles a processor's clock completes per second, usually given in GHz. It is a fair performance comparison only between processors of the same brand and generation.
Troubleshooting with a Method
- List the six steps of the CompTIA troubleshooting methodology in order and say what each step produces.
- Turn a vague user complaint into a problem statement that covers symptoms, timeline, recent changes and scope.
- Form, rank and test theories of probable cause, and decide when to research, go back a step or escalate.
- Plan a fix with its side effects in mind, verify the whole system afterwards and write documentation the next technician can use.
A ticket that says "the internet is down"
At 9:05 on a Tuesday, a ticket arrives at the help desk of a small accounting office. (The office, the people and every ticket in this lesson are made-up examples.) It reads: "Internet not working on my laptop. Payroll is due at noon. Please help!" The sender, Dana, is sure of two things: the internet is down, and this is urgent. Only the second is certainly true.
A new technician's instinct is to walk over and start doing things. Restart the laptop. Switch Wi-Fi off and on. Reinstall the browser. Sometimes one of those works. When it does, nobody knows which one worked or why, so nobody can stop it happening again tomorrow. When nothing works, the technician has changed four things on a machine that was already broken, and the problem is now harder to see.
A troubleshooting methodology is the alternative. It is a fixed order of steps that takes you from a vague complaint to a confirmed cause, then to a fix you have checked, and finally to a written record. Below, Dana's ticket goes through every step. Then one fact changes and the ticket goes through again, so you can watch the same method reach a different answer.
Exam objectives: 1.4 Explain the troubleshooting methodology.[1] The verb is "explain", so expect questions that name a step and ask what comes next, or that describe an action and ask which step it belongs to.
The six steps of the CompTIA troubleshooting methodology
Here is the whole method in one table. Learn the order as well as the names, because many exam questions turn on what comes before what.
| # | Step (exam wording) | The question it answers | What you have at the end |
|---|---|---|---|
| 1 | Identify the problem | What exactly is wrong, for whom, and since when? | A clear problem statement and its scope |
| 2 | Establish a theory of probable cause (question the obvious; research knowledge base/internet, if applicable) | What is the most likely reason? | A short ranked list of suspected causes |
| 3 | Test the theory to determine the cause | Is my suspect really the cause? | A confirmed cause, or a trip back to step 2 |
| 4 | Establish a plan of action to resolve the problem and implement the solution | How do I fix it with the least harm? | A fix that was planned and then carried out |
| 5 | Verify full system functionality and, if applicable, implement preventive measures | Does everything work now, and can I stop a repeat? | A working system, plus prevention where it makes sense |
| 6 | Document findings/lessons learned, actions, and outcomes | What will the next person need to know? | A record in the ticket or knowledge base |
Two features of the table matter more than the wording. First, steps 2 and 3 form a loop. A theory can fail its test, and then you go back and form another one. The method does not assume your first guess is right. Second, the fix doesn't arrive until step 4. Three steps of thinking and checking come before you change anything for good. In the objectives' own words, step 3 is to test the theory to determine the cause.[1] Testing is how a guess becomes a cause.
You may also run into a seven-step version. CompTIA's own article on the method splits step 4 in two. One of its steps is to establish a plan of action and identify potential effects.[2] The next is to implement the solution or escalate as necessary.[2] The ideas are the same. Tech+ prints six steps, so count six on this exam. The Tech+ list does not mention escalation, which means handing the problem to someone with more skill or authority. The seven-step wording places it alongside implementing the fix: if you cannot carry out the fix yourself, you pass the problem on.
So what?: the order is the whole method. Identify, theorize, test, plan and implement, verify, document. A fix that comes before a tested theory is a guess with consequences.
Step 1: Identify the problem before you touch anything
Problems reach you in many ways. CompTIA's guide lists a phone call from a user, a help desk ticket, an email message and a log file entry, among other routes.[2] Whatever the route, the report gives you the user's interpretation, not a diagnosis. "The internet is down" is a conclusion Dana drew from something she saw. Your first job is to recover what she actually saw.
You do that by asking questions, and each question has a reason behind it. Here is the conversation with Dana, laid out so you can see why each question is asked.
| Question | Why you ask it | Dana's reply |
|---|---|---|
| What exactly do you see on the screen? | Separates the symptom from the user's conclusion | "Every website says it can't be reached." |
| When did it start? Did it work before? | Builds a timeline; a problem with a start time usually has a trigger | "It was fine last night. It hasn't worked since I turned it on this morning." |
| Has anything changed? | Most faults follow a change: an update, a move, a new device | "It installed updates overnight. Nothing else." |
| Is anyone else affected? | Sets the scope: one device, one person, one room or everyone | "Sam at the next desk is working fine." |
| What have you tried already? | Avoids repeating work and tells you what has already been changed | "I restarted it once." |
These are the standard questions of professional support work. Microsoft's training for support engineers tells them to build a timeline that includes when any changes were made to the devices in question. Its example is direct: "When were any changes made to client devices, such as operating system or app installs and updates?"[3] The same training tells engineers to check the ticketing system for the scope question, who else has the same problem.[3]
Next, duplicate the problem, which means making it happen yourself. The technician opens a browser on Dana's laptop and tries two different websites. Both fail. Now the problem is confirmed, not just reported. Reproducing it matters more than it seems. Microsoft's older Windows Server guidance warns that if you cannot reproduce a problem, you might not have enough information to confirm that a problem exists at all.[4] A fault you can trigger on demand is one you can test against later. A fault that comes and goes means you need to collect information the next time it happens.
Two more habits belong in this step. Approach multiple problems one at a time. Dana mentions that her mouse has felt sluggish for a week. That is real, but it is a different problem with a different likely cause, so it gets its own ticket. If you chase both at once, you will not know which change fixed which symptom. Also, before you change anything on a machine, make sure the user's important work is saved or backed up. Troubleshooting sometimes makes things worse before it makes them better.
Step 1 ends with a problem statement: one or two sentences specific enough that a second technician could start work from them.
Since this morning, Dana's laptop cannot load any website over Wi-Fi. Sam's computer on the same network works. Updates installed on the laptop overnight. One device affected; user has restarted once.
Compare that with "Internet not working." The statement has already ruled out a whole office outage, because Sam is fine. It has also flagged a recent change, the overnight updates. You have narrowed the field before making a single guess.
Step 2: Establish a theory of probable cause, and question the obvious
A theory of probable cause is your best guess about why the problem is happening, based on the evidence you have. CompTIA's write-up of the method points out that the wording is deliberate: the words theory and probable admit that you are guessing, though your guess should rest on data.[2] You do not have to be right yet. You do have to have a reason.
The practical way to do this step is to list every cause that fits the problem statement, then rank them. Put causes that are likely and quick to check at the top.
| Candidate cause | Why it fits the evidence | Effort to check |
|---|---|---|
| Wi-Fi switched off, or airplane mode on | Would block every website on this device only | Seconds |
| Connected to the wrong wireless network | A neighbor's or guest network might give no internet access | Seconds |
| Overnight update changed the wireless device driver, the software that lets the operating system control the Wi-Fi hardware | Started right after the updates; only this laptop affected | Minutes |
| Wireless adapter hardware has failed | Would stop all Wi-Fi traffic on this device | Longer; may need a replacement part |
The objectives put question the obvious in brackets beside this step. It means two things. The first is to check simple, likely causes before complicated ones. CompTIA's author writes that the most common mistake he sees in new troubleshooters is failing to do this. He reminds them that systems may be complex, "However, that does not mean that your issue is complex."[2] Airplane mode takes five seconds to check. Rebuilding the operating system takes an afternoon.
The second meaning is easier to miss: question the obvious explanation too. The overnight update is tempting because it is recent and memorable. That makes it a good suspect, not a convicted one. Questioning the obvious also covers the user's report. Dana said the internet is down. The evidence says her laptop is down. Treat what people tell you as information, and treat it with the same care whether it comes from a manager or a new hire.
So what?: a theory is a ranked guess with reasons attached. Rank by likelihood and by how cheap the check is, and keep doubting the explanation that feels obvious until a test supports it.
Research: the knowledge base and the internet, if applicable
The objective's sub-bullet reads "Research knowledge base/internet, if applicable." A knowledge base is a searchable collection of articles about known problems and their fixes. You will meet three kinds.
- Vendor knowledge bases. Hardware and software makers publish support articles about their own products. CompTIA's guide names Cisco, Red Hat, Microsoft and Apple as companies that maintain documentation, issue repositories and forums where troubleshooters trade causes and fixes.[2]
- Your organization's own knowledge base. This is often just the history of past tickets. If another technician fixed the same problem last month and wrote it up, that is the best research you can get, because it describes your own systems.
- The open internet. Search engines, forums and community answers. These are wide and fast, and their quality varies a lot.
The words if applicable matter. A desktop with an unplugged power cord needs no research. An unfamiliar error code on a particular laptop model after a particular update definitely does. Research the way an investigator would:
- Search for the exact error message, the device model and the update or version number. These narrow the results far more than describing the symptom in your own words.
- Check the date. An article about a version from five years ago may describe a bug that has long been fixed.
- Prefer the vendor's article to an anonymous forum post. The vendor knows the product and can see reports from many customers.
- Treat what you find as a stronger theory, not as a verdict. A forum fix that worked for forty people still has to be tested on your machine.
For Dana's laptop, the technician searches the vendor's support site for the laptop model plus "Wi-Fi" plus the date of the update. In this example, she finds an article saying a recent wireless driver update can leave some machines showing a Wi-Fi connection while passing no traffic. The update theory moves to the top of the list. It is still a theory.
Step 3: Test the theory to determine the cause
A good test gives a different result depending on whether the theory is true. "Restart and see" is a weak test, because a restart changes many things at once. Here is how the technician tests Dana's list, from the top.
| Test | Result | What it tells you |
|---|---|---|
| Look at the Wi-Fi icon and the airplane mode setting | Wi-Fi on, airplane mode off, connected to the office staff network | Theories 1 and 2 rejected |
| Plug a cable from the desk's network wall port into the laptop | Websites load over the cable | The office network and internet connection work; the fault is on this laptop's wireless side |
| Check the wireless driver's version and date in the device settings | Driver updated at 02:14 this morning | Matches the timeline exactly |
| Compare with Sam's laptop, the same model on the same Wi-Fi | Sam's update is still pending; he has the older driver; his Wi-Fi works | Same model, same network; the driver is the main difference |
Notice the techniques at work. The cable and Sam's laptop are both known good comparisons, things confirmed to work that you put beside the suspect. With hardware, this often means a physical swap. CompTIA's guide notes that when central processing units (CPUs), random-access memory (RAM) or storage drives are suspected, you may need to replace them with known good parts.[2] If the fault disappears when the known good part goes in, the old part was the cause. If the fault stays, it wasn't.
The cable test also cut the system in half. Before it, the fault could have been anywhere from the laptop to the internet provider. After it, the whole network beyond the laptop was cleared in one move. Microsoft's support training calls this the subtractive approach: picture the system's parts, then "Separate the components into two halves along a testable line."[5] Keep halving and the culprit runs out of places to hide. The alternative it describes, the linear approach, checks one component after another in a logical sequence. Linear checking is fine for short chains. Halving wins on long ones. For layered technology such as networks, CompTIA also suggests working through the layers in order, top to bottom or bottom to top.[2]
Now the important part: what happens when a theory fails. Theories 1 and 2 failed in seconds, so the technician moved to theory 3. If every theory on the list fails, you go back to step 2 and form new ones, and you may need to go back to step 1 and gather more facts. CompTIA's guide says plainly that if your test shows you were wrong, you may need to start your research all over again.[2] That is the method working as designed, not a sign that it has broken.
If you cannot confirm a cause, or confirming it needs access, skill or authority you do not have, escalate. Microsoft's support model does exactly this: if the engineer cannot identify the problem, the engineer might escalate to another team member, or to Microsoft.[5] Escalating well means passing on your problem statement and the list of theories you have already tested and ruled out. That saves the next person from repeating your work.
So what?: a theory becomes a cause only when a test could have proved it wrong and didn't. A rejected theory sends you back to step 2, and a problem you cannot crack gets escalated with your notes attached.
Step 4: Plan the fix, then implement it
The fix looks obvious: roll back the wireless driver to the previous version. So why not just do it? Because a fix has effects beyond the problem it solves, and step 4 makes you think about them first. CompTIA's guide gives reasons to plan before acting. Some fixes require reboots or other more significant forms of downtime.[2] Others need files downloaded first, or must be tested in a separate environment before they reach the real system.
Rolling back a driver needs a restart. Payroll is due at noon. Microsoft's Windows Server guidance suggests asking questions at this point, such as whether the benefits of a fix outweigh its costs and "Is there an acceptable workaround?"[4] A workaround is a temporary way to keep working while the real fix waits. Here there is one: Dana can work over the cable. The technician also looks past Dana's desk. Two other laptops of the same model will install the same driver tonight, and that is a potential effect she must deal with now.
| When | Action | Why |
|---|---|---|
| Now | Dana works over the network cable | Payroll goes out on time; no restart needed yet |
| 12:30 | Roll back the wireless driver and restart; Dana agrees to five minutes without the laptop | Fixes the cause after the deadline has passed |
| Before 18:00 | Pause that driver update on the two other laptops of the same model | Stops the same fault from appearing tomorrow on two more desks |
| If the rollback fails | Keep the cable connected and escalate to the vendor with the driver version details | Every plan needs a way back |
In a larger organization, the plan may also need approval. Change management is a formal process for reviewing, approving and scheduling changes to systems. Microsoft's training states that where a larger organization has change management procedures, you are required to follow them.[5] A technician who skips change approval to fix one laptop can break a hundred.
Then implement the plan, one change at a time, so you always know which change did what. Keep the user informed while you work. Microsoft's guidance says support staff should keep the end-user informed of progress throughout the entire troubleshooting process.[5] Dana is far calmer at 9:40, working over the cable and knowing the plan, than she would be watching a technician silently restart her laptop with payroll unfinished.
Step 5: Verify full system functionality and prevent a repeat
After the 12:30 restart, Wi-Fi connects and a website loads. Is the ticket done? Not yet. Notice the exact words of the objective: verify full system functionality. Checking that the original symptom has gone is not enough. You check that everything the user relies on works, because a fix can disturb something else, and the original symptom can hide a second fault.
CompTIA's guide tells a story that makes the point. A technician called to a broken printer found its power cord unplugged, plugged it back in, grumbled about users and left. He never noticed that the printer was jammed, or that the users had pulled the plug themselves while trying to clear the jam.[2] A jammed printer cannot print, cord or no cord, and one test print would have shown it.
For Dana, full functionality means the things she actually does:
- Wi-Fi connects to the staff network after the cable is unplugged.
- Several different websites load, not just one.
- The payroll web application signs in.
- The shared drive opens and the office printer prints.
- Dana herself tries her normal tasks and confirms she is happy. The user is the final judge of "working".
The second half of the step is if applicable, implement preventive measures. A preventive measure is anything that stops the same problem coming back or helps you catch it earlier. Here, pausing the driver update on the other two laptops is prevention, and so is checking the vendor's site next week for a corrected driver. The words if applicable are honest: when a user spills coffee on a keyboard, the only prevention is a lid on the cup.
So what?: verification tests the whole system from the user's side, not just the symptom you fixed. Prevention widens the fix from one machine to every machine with the same weakness.
Step 6: Document findings, actions, outcomes and lessons learned
The last step is the one most often skipped, and its value shows up later, for someone else. Here is the closing note on Dana's ticket.
TICKET 4471 STATUS: CLOSED (fictional example)
Reported: Tue 09:05, Dana R., "Internet not working on my laptop."
Findings: Wi-Fi shows connected but no sites load. Wired connection works.
Wireless driver auto-updated 02:14 today. Same-model laptop
with older driver unaffected on same network.
Cause: Wireless driver update on this laptop model.
Actions: 09:40 wired workaround. 12:30 driver rolled back, restarted.
Outcome: Verified Wi-Fi, websites, payroll app, shared drive, printer.
User confirmed working 12:42.
Prevention: Driver update paused on 2 other laptops of same model.
Recheck vendor site for corrected driver next Tuesday.
Lessons: When Wi-Fi fails after overnight updates, check driver
date early and compare with a same-model machine.
Separate: Sluggish mouse logged as ticket 4472.
Each line has a job. Findings and Cause let the next technician skip straight to the right theory. Actions and Outcome show what changed on the machine, which matters if a new problem appears next week. Lessons is what turns one fix into knowledge: next month, this note is part of the organization's own knowledge base that step 2 told you to search. Write notes for a stranger, because six months from now you will be one.
Documentation doesn't only happen at the end. Microsoft's Windows Server guidance asks you to record information as you go, so that if you find yourself taking the wrong path, you can backtrack to the point where you made the wrong decision.[4] Formally, though, the methodology puts documentation last, after verification, because only then do you know the outcome.
One boundary is worth knowing now. Some problems are not faults but attacks: a ransom note on the screen, files renamed overnight, an account sending email nobody wrote. Those follow your organization's incident response process instead of ordinary troubleshooting, and you escalate them at once. The U.S. National Institute of Standards and Technology (NIST) publishes a guide to that process, Special Publication 800-61. Revision 2, published in August 2012, covered handling incidents from initial preparation through a final lessons learned phase.[6] Revision 3 changed the scope significantly.[7] It uses a new life cycle model in which lessons learned from every activity feed a continuous improvement process.[7] Either way, the habit matches step 6: what you learn gets written down and fed back.
Run it again: one changed fact flips the diagnosis
Go back to 9:05. Same ticket, same words. This time, when the technician asks whether anyone else is affected, Dana answers: "Sam can't get on either. Nobody can." And when the technician plugs the cable in, websites still fail.
The method doesn't change. The answer does, because the scope changed. Here are the two runs side by side.
| Step | First run: Sam is fine | Second run: nobody can connect |
|---|---|---|
| 1. Identify | One laptop, Wi-Fi only, started after updates | Whole office, wired and wireless, started this morning |
| 2. Theory | Something on Dana's laptop: settings, driver, adapter | Something everyone shares: the router, the modem or the internet service provider |
| Question the obvious | Is airplane mode on? | Are the modem and router powered on? Did someone switch off a power strip? |
| 3. Test | Cable works, so the fault is in this laptop's wireless side | Modem lights show no internet signal; the provider's status page, checked on a phone over mobile data, reports an outage in the area |
| 4. Plan and implement | Roll back the driver at lunch | Nothing in the office to fix; escalate to the provider; payroll goes out over a phone hotspot as a workaround |
| 5. Verify | Dana's apps, websites, printer | When service returns: every desk can browse, payroll is confirmed sent, the hotspot is turned off |
| 6. Document | Driver lesson for this laptop model | Outage times and the provider's reference number; lesson: keep the provider's support number and a hotspot plan written down |
Look at what did the work. In the first run, "Sam is fine" kept the technician off the router. In the second, "nobody can connect" kept her off Dana's driver, even though the overnight update was still sitting there looking suspicious. Had she skipped step 1 and rolled back the driver anyway, she would have spent half an hour fixing something that was not broken while the whole office stayed offline. Scope decides where you look first. This is also a clean example of escalation: the cause is outside anything the office controls, so the right fix is handing the problem to the provider and keeping people working meanwhile.
Reading exam questions about the method
Questions on this objective usually describe an action and ask which step it is, or describe a situation and ask what the technician should do next. The words in the question point to the step.
| If the question says the technician... | The step is... |
|---|---|
| gathers information, asks what changed, reproduces the issue, finds out how many users are affected | 1. Identify the problem |
| decides on the most likely cause, checks the simplest explanation first, searches a vendor knowledge base | 2. Establish a theory of probable cause |
| swaps in a known good part, confirms whether the suspected cause is responsible | 3. Test the theory |
| finds the theory was wrong | Back to 2: form a new theory (or escalate) |
| schedules the fix, considers downtime and side effects, gets change approval, applies the fix | 4. Plan of action and implement |
| cannot resolve it, or lacks the access or authority | Escalate (appears in CompTIA's seven-step wording, alongside implementing the fix; not printed in the Tech+ six-step list) |
| confirms everything works, has the user try normal tasks, stops a recurrence | 5. Verify full functionality; preventive measures |
| records the cause, actions and outcome; updates the ticket or knowledge base | 6. Document |
Three pairs cause most of the wrong answers:
- Test versus implement. A test confirms the cause. Implementing applies the fix. Swapping in a known good cable to see whether the fault clears is a test, even though it might also happen to fix things.
- Test versus verify. Testing happens before the fix and checks the theory. Verifying happens after the fix and checks the whole system.
- Research versus documentation. Research is reading what others wrote, in step 2. Documentation is writing what others will read, in step 6. Each one feeds the other.
Common misconceptions
- "The steps run once, straight through." Steps 2 and 3 loop. A failed test sends you back to form a new theory, and sometimes back to step 1 for more facts. Going back is the method working, not a failure.
- "Question the obvious means assuming the user did something silly." It means checking simple, likely causes first and doubting untested assumptions, including your own favorite theory. The obvious explanation can be wrong too.
- "If the symptom is gone, the job is done." The objective says verify full system functionality. The unplugged printer that was also jammed shows why: plugging the cord back in did not make it print.
- "A popular internet fix is the answer." Research only strengthens a theory. It still has to pass a test on your system, because your model, version and setup may differ from the person who posted it.
- "Escalating means you failed." Escalation is a normal part of support work. Passing on a clear problem statement and a list of theories you have already ruled out is good work.
- "Documentation is paperwork for managers." It is the knowledge base the next technician searches in step 2, and the trail you use to backtrack when you took a wrong turn.
The short version
- The Tech+ methodology has six steps in this order: identify the problem; establish a theory of probable cause; test the theory; establish a plan of action and implement the solution; verify full system functionality and, if applicable, implement preventive measures; document findings, actions, outcomes and lessons learned.
- Identifying the problem means getting the symptom (not the user's conclusion), the timeline, recent changes and the scope, then reproducing the problem and handling multiple problems one at a time.
- A theory of probable cause is an evidence-based guess. Question the obvious means checking simple, likely causes first and doubting untested explanations.
- Research in vendor and internal knowledge bases or on the internet is done if applicable, and what you find is a theory to test, not a verdict.
- Testing uses known good parts and comparisons, halving the system along a testable line, or working through layers. A failed theory sends you back to step 2, and an unsolvable problem is escalated.
- Planning the fix considers downtime, workarounds, side effects on other systems and change management approval before anything is changed.
- Verification checks everything the user relies on, not just the original symptom, and preventive measures stop the same fault on other machines.
- Documentation records findings, cause, actions, outcome and lessons learned. It becomes the knowledge base used in future step 2 research.
- Scope changes the diagnosis: one affected device points to that device, while everyone affected points to shared equipment or the provider.
Sources
- CompTIA. (2023). CompTIA Tech+ FC0-U71 V6 certification exam: Exam objectives (Document version 4.0). lecbyo.files.cmp.optimizely.com
- CompTIA. (n.d.). Use a Troubleshooting Methodology for More Efficient IT Support. comptia.org
- Microsoft Learn. (n.d.). Perform initial data collection. learn.microsoft.com
- Microsoft Learn (Windows Server 2003 documentation). (n.d.). Troubleshooting Methodology. learn.microsoft.com
- Microsoft Learn. (n.d.). Use a troubleshooting methodology. learn.microsoft.com
- NIST. (n.d.). Computer Security Incident Handling Guide (SP 800-61). nist.gov
- NIST CSRC. (n.d.). Incident Response. csrc.nist.gov
- Key terms
- Troubleshooting methodology
- A fixed sequence of steps that moves a technician from a reported symptom to a confirmed cause, a verified fix and a written record. CompTIA's Tech+ version has six steps.
- Theory of probable cause
- A technician's best evidence-based guess about why a problem is happening. It is treated as unproven until a test confirms or rejects it.
- Question the obvious
- The troubleshooting habit of checking simple, likely causes first and doubting untested assumptions, including the user's own diagnosis and the technician's favorite theory.
- Knowledge base
- A searchable collection of articles about known problems and their fixes, kept by a vendor, a user community or an organization's own support team.
- Scope
- How widely a problem reaches, such as one device, one user, one room or a whole site. It tells the technician where to look for the cause.
- Known good part
- A component confirmed to work that is swapped in for a suspect component, to test whether the suspect is causing a fault.
- Escalation
- Handing a problem, along with notes on what has been tried, to someone with more skill, access or authority, such as a senior technician, the vendor or the service provider.
- Preventive measure
- An action taken after a fix so the same problem does not happen again or is caught earlier, such as pausing a faulty update on similar machines.
- Change management
- An organization's formal process for reviewing, approving and scheduling changes to systems before they are made, to limit unexpected side effects.
Module 2: Devices and Their Parts
The devices people compute on, what is inside them, where data is stored, and how peripherals and connectors fit together.
The Devices We Compute On: From Phones to Servers to the Internet of Things
- Explain the purpose of smartphones, tablets, e-readers, laptops, workstations, servers, gaming consoles, and virtual and augmented reality systems, and tell each apart from its nearest neighbor.
- Describe what makes a device part of the Internet of Things, explain the purpose of each IoT category on the exam, and say where the objective draws the line between IoT and the other device types.
- Choose the right device for a described need, and explain how changing one requirement changes the choice.
- Explain why connected devices need extra security care, and list the first protective steps for a new device.
NIST's word for a smart lock: a computing device
In 2020 the US National Institute of Standards and Technology (NIST) published NISTIR 8259A, a baseline list of security features for Internet of Things devices. Its introduction begins with computing devices that combine physical or sensing abilities with a network connection. It notes that these devices are being designed, developed and deployed at an ever-increasing pace.[1] Look at the words "computing devices". NIST calls IoT devices computing devices, not gadgets, and the Tech+ exam treats them the same way. A thermostat, a doorbell and a car each contain a processor, software and storage. Each one does the four jobs from Lesson 1: input, processing, output and storage. What changes from device to device is the shape of the box, the way you give it input, and the job it was built for. This objective tests that job, the device's purpose.
Exam objectives: 2.1 Explain common computing devices and their purposes.[2] The objective first lists smartphones, tablets, e-readers, laptops, workstations, servers, gaming consoles, and virtual and augmented reality systems. A separate Internet of Things (IoT) bullet then covers home appliances; home automation devices (thermostats, security systems, home assistants, deadbolts and door locks, video doorbells); streaming media devices; Internet Protocol (IP) security cameras; medical devices; exercise equipment; wearable devices; and vehicles.[2] The verb "explain" tells you how questions will look. A stem describes a need and asks which device fits, or it describes a device and asks what it is for.
Four questions that sort any device
You do not need to memorize spec sheets. Ask four questions about a device, and most exam stems answer themselves.
- Who does it serve? Is it one person in front of it, or many other computers across a network? Almost everything here serves one person. A server serves many.
- How does it take input? Touch, keyboard and mouse, a game controller, head movement, voice, or sensors with no person involved.
- Does it move? Portable devices run on batteries and give up power to stay light. Devices that stay put can draw more power and keep heavy work going for longer.
- General-purpose or special-purpose? A laptop runs almost any program you install. An e-reader, a console or a doorbell was built for one job, and its hardware and software are trimmed to that job.
The fourth question explains most of the trade-offs. A special-purpose device is cheaper, simpler and better at its one job, but useless for anything else: you cannot edit a spreadsheet on a doorbell. A general-purpose device costs more and needs more care, such as updates. In return, you can give it a new job tomorrow by installing new software.
Worth holding on to: sort any device by who it serves, how it takes input, whether it moves, and whether it is general-purpose or built for one job.
Personal and business devices side by side
The table answers the four questions for the first half of the objective. The sections after it explain only what a table cannot.
| Device | Main purpose | Typical input | Power and portability | Tell it apart by |
|---|---|---|---|---|
| Smartphone | Calls, messages, apps, camera, maps | Touch, voice, sensors | Battery; fits a pocket | Cellular radio as standard |
| Tablet | Reading, video, browsing, light work | Touch, stylus, optional keyboard case | Battery; carried in a bag | Larger touch-first screen; cellular often optional |
| E-reader | Reading books and documents | Touch or page buttons | Battery lasts weeks | Paper-like screen, poor for video |
| Laptop | General-purpose computing on the move | Built-in keyboard and touchpad | Battery or wall power | Full desktop operating system, keyboard built in |
| Workstation | Programming, engineering and design work for one person | Keyboard, mouse, several monitors | Usually a desktop on wall power | Far more processing, memory and graphics than an office PC |
| Server | Providing services to other computers | Managed remotely; often no monitor | Wall power; runs nonstop | Serves many clients; keeps running when a part fails |
| Gaming console | Games, plus video streaming | Game controller | Wall power (handhelds use battery) | Fixed, locked-down hardware connected to a TV |
| Virtual reality system | Placing you inside a computer-made world | Head and hand tracking | Standalone headset or tethered to a PC | Blocks your view of the real room |
| Augmented reality system | Adding digital information to the real world | Camera, head tracking, gestures | Phone, tablet, glasses or headset | Real room stays visible |
Smartphones, tablets and e-readers
A smartphone is defined by its cellular radio. That radio makes calls and reaches the internet through a mobile carrier's network, using standards such as LTE (Long-term Evolution) and 5G, wherever there is signal. Around it sit more radios: Wi-Fi, Bluetooth, and NFC (Near Field Communications) for tap-to-pay. There are sensors too. A GPS (Global Positioning System) receiver finds location. An accelerometer and a gyroscope sense tilt, which is how the screen knows when to rotate. Most smartphones run Android or iOS on processors built on the ARM (Advanced RISC Machines) design, which does a lot of work on little battery. A phone fits any need that involves being reachable, taking photos, finding your way or paying, anywhere. Its weak points are the small screen and the on-screen keyboard.
A tablet computer is a larger touchscreen device, often running the same mobile operating system as a phone. Many models connect only by Wi-Fi, and cellular data is a paid extra. Tablets suit reading, video, sketching with a stylus, and work where a laptop is awkward: a shop counter, a delivery van, a hospital ward. A keyboard case makes a tablet behave like a laptop, and 2-in-1 laptops blur the line from the other side. For the exam, a tablet is touch-first and a laptop is keyboard-first.
An e-reader is a special-purpose device, and its screen is the reason. Most e-readers use electronic paper, which moves tiny particles of black and white pigment to form text. The screen reflects room light the way paper does instead of shining a backlight at you, so it stays readable in direct sunlight. It needs power mainly when the image changes. Turning a page costs energy; holding a page on screen costs almost none. That is why e-reader battery life is counted in weeks and tablet battery life in hours of screen time. The price is a slow refresh and, on most models, grayscale only, so video and busy web pages work badly. Someone who mostly reads, reads outdoors, or wants to get through a long trip without charging needs an e-reader. Add video calls, apps and color to the same wish list and the answer flips to the tablet.
Worth holding on to: the cellular radio defines the smartphone, the larger touch-first screen defines the tablet, and the paper-like, low-power screen defines the e-reader.
Laptops, workstations and servers
A laptop folds a desktop computer into one portable case. It runs a full desktop operating system such as Windows, macOS or Linux, so it runs the same applications a desk computer does. The small case has costs. There is less room for cooling, so a laptop slows itself down under long, heavy loads. Memory and storage are often soldered to the board, so you cannot upgrade them later. At a desk, a docking station connects it to large monitors, a full keyboard and wired networking through one cable.
A workstation has two meanings. NIST's glossary defines it as a computer used for tasks such as programming, engineering and design.[3] In hardware catalogs, that means a desktop, or now and then a heavy laptop, with far more resources than an office PC. It is built for people who spend hours running CAD (Computer-aided Design) software, simulations or video renders. In everyday business IT, "workstation" also means any employee's desktop, as in "update the workstations on the third floor". Both senses share one idea: a person works at it directly.
NIST's glossary defines a server as a computer or device on a network that manages network resources.[4] Its examples are file servers that store files, print servers that manage printers, network servers that manage traffic, and database servers that process queries.[4] A server's users are other computers, called clients. When your laptop opens a shared folder, the laptop is the client and the machine holding the folder is the server. This arrangement is called the client-server model, and most of the internet runs on it.
Spec sheets make the difference visible. These three are fictional examples, but the pattern is typical.
| Specification | Thin-and-light laptop | Engineering workstation | Small-office file server |
|---|---|---|---|
| Processor cores | 8 | 24 | 16 |
| RAM (Random-access Memory) | 16 GB, soldered | 128 GB, error-correcting | 64 GB, error-correcting |
| Graphics | Built into the processor | Professional card with 24 GB of its own memory | Basic output, used only during setup |
| Storage | 512 GB SSD (Solid State Drive) | 2 TB SSD | Four 8 TB hard disk drives; one can fail without data loss |
| Power | Battery and 65 W charger | One large internal supply | Two supplies; either can run it alone |
| Who uses it | One person, anywhere | One person, at a desk | Every office PC, over the network |
The workstation has more cores and more memory than the server, so raw power is not what makes a server a server. "Server" is a role first and a type of box second, and a spare desktop can share a printer perfectly well. Hardware bought for the role is shaped by three facts. It runs all day, every day. Many people lose work if it stops. And nobody sits at it. That explains the bottom three rows: redundant power supplies and drives, so one part can fail without stopping the server; error-correcting memory, which catches small memory errors before they corrupt shared data; remote management, so an administrator can restart it from anywhere; and flat cases that bolt into a rack with no monitor or keyboard. Many servers today are virtual machines sharing one physical computer, which Lesson 10 covers.
Worth holding on to: a workstation serves the one person sitting at it; a server serves many clients over a network and is built to keep running when a part fails.
Video game consoles: fixed hardware tuned for one job
A video game console connects to a TV through HDMI (High-definition Multimedia Interface) and takes input from wireless controllers. It runs a locked-down operating system that installs software only from the maker's store or from discs. Every unit of a model has the same processor, graphics chip and memory, so developers can tune each game for exactly that machine. A PC game, by contrast, has to cope with thousands of hardware combinations. That fixed target is much of the reason console games run smoothly without the owner adjusting settings. Consoles also run streaming apps and connect online for multiplayer games and updates. Handheld consoles put the same idea into a battery-powered case. A console is still special-purpose, though. If a stem says a device must run any application the user chooses, it is not describing a console.
Virtual reality and augmented reality: can you still see the room?
NIST's Extended Reality (XR) Community of Interest brings together researchers across its labs who work in augmented, mixed and virtual reality.[5] One question separates the three: can you still see the real room?
A virtual reality (VR) system replaces what you see. A head-mounted display puts a screen close to each eye, behind lenses, so the image fills your vision. Sensors track where your head points, and the computer redraws the scene to match many times each second. Hand controllers or hand tracking let you pick things up. Some headsets are standalone computers; others are tethered to a powerful PC. If the image lags behind your head, your eyes and inner ear disagree, and many people get motion sickness. That is why VR needs fast processing and a fast-refreshing screen. VR's purpose is to put you somewhere you cannot, or should not, go: inside a game, a flight simulator, a surgical rehearsal or a building not yet built. As an illustration, a trainee firefighter could enter a burning building many times in a headset before entering a real one.
An augmented reality (AR) system keeps the real world in view and adds digital information to it. The simplest AR device is a phone. Point its camera at your living room and the screen shows a virtual sofa on your real floor, or walking arrows drawn onto the real street. Smart glasses use see-through lenses. Some headsets show the real world through their cameras, which is called passthrough, and draw objects into that view. A technician wearing AR glasses can see the next repair step floating beside the actual bolt.
Mixed reality (MR) anchors digital objects to the real room so they react to it, like a virtual ball bouncing off your real table. XR is the umbrella term for all three. NIST's XR work shows the serious uses. Its Fire Research Division develops hardware and software to visualize severe fire environments.[5] Its public safety researchers aim to give first responders tools designed around their specific context, tasks and requirements.[5] The exam lists only VR and AR. If the real world is blocked out and replaced, it is VR. If the real world stays in view with labels, models or directions added, it is AR.
Worth holding on to: VR replaces your view with a computer-made world; AR leaves the real world in view and adds digital objects to it.
Worked comparison: Priya's field device, then one changed requirement
Here is a fictional scenario. Priya inspects bridges for a regional engineering firm. She works outdoors all day and often climbs to reach joints. She must photograph cracks, record where each photo was taken, fill in an inspection form and upload everything before driving home. She also has to read engineering drawings at a size where the dimensions are legible. Run the four questions.
| Question | Priya's situation | What it rules out |
|---|---|---|
| Who does it serve? | Priya alone | Server |
| How does it take input? | Camera, touch, short form entries, location | Nothing yet; heavy typing is not needed |
| Does it move? | All day, outdoors, while climbing | Workstation; a laptop is awkward on a ladder |
| General or special purpose? | Photos, forms, maps, uploads | E-reader, gaming console |
That leaves a smartphone or a tablet, and the drawings break the tie: a phone screen is too small to read the dimensions. So the answer is a tablet. Because she uploads from the field and records locations, she needs a model with cellular data and a GPS receiver. Check the GPS point, because some Wi-Fi-only tablets have no GPS receiver.
Now change one input. The firm asks Priya to spend two days a week in the office running structural analysis that takes hours per model. The answer to "does it move?" flips to no, the processing demand jumps, and the answer becomes a workstation. Change another input. The firm wants every inspector's photos and reports in one place that every office PC can open. Now "who does it serve?" flips from one person to many computers, and the answer becomes a server: a file server for the photos, or a database server if the reports are stored as records. One firm, three answers, each decided by a single phrase. Exam stems work the same way. Find the phrase that decides it, such as "all day in the field", "hours of rendering at a desk" or "shared by the whole office".
What puts a thing on the Internet of Things
The Internet of Things (IoT) means everyday physical objects that contain a computer and a network connection. NIST names the trait that sets them apart: they combine connectivity with the ability to sense or affect the physical world.[1] Every IoT device has the same parts. A sensor measures something, such as temperature or a door opening. An actuator does something physical, such as a relay switching a furnace on or a motor sliding a bolt. Firmware, the software stored on the device's own chip, decides what to do with the readings. A network radio connects the device to an app, a hub or the maker's cloud service.
| Part | Job from Lesson 1 | Smart thermostat | Smart door lock |
|---|---|---|---|
| Sensor | Input | Temperature, humidity, motion | Keypad, owner's phone over Bluetooth, door-position sensor |
| Processor and firmware | Processing | Compares room temperature with the target | Checks whether the code or phone is allowed in |
| Actuator | Output | Relay switches heating or cooling | Motor throws or retracts the bolt |
| Network radio | Input and output across a network | Wi-Fi to the app and cloud service | Bluetooth to the phone, sometimes a Wi-Fi bridge |
Here is that loop in a fictional thermostat activity log:
07:00 sensor indoor 18.5 C target 21.0 C
07:00 relay heat ON
07:42 sensor indoor 21.1 C target 21.0 C
07:42 relay heat OFF
07:43 network status sent to app over Wi-Fi
18:15 network target changed to 19.0 C from owner's phone
Read it line by line: a reading comes in, a comparison is made, the relay switches, status goes out, and a remote command comes back. The network lines are what make the thermostat smart. Plain programmable thermostats have had screens and schedules for decades. What they lack is a connection that lets software somewhere else read them and send them commands. The word "Internet" can also mislead. Many IoT devices talk only to a phone or a hub in the same house, over Bluetooth or a low-power home radio such as Zigbee or Z-Wave. They keep doing their basic job if the internet connection drops. What stops working is the remote part, such as changing the temperature from your phone at work.
Where the exam draws the IoT line. Phones and tablets are connected and full of sensors too, and a 2019 CISA (Cybersecurity and Infrastructure Security Agency) advisory listed smart cameras, smart TVs, watches, toys, phones and tablets as IoT devices.[6] The Tech+ objective groups them differently. It gives smartphones, tablets, e-readers, laptops, workstations, servers, consoles, and VR and AR systems bullets of their own. It keeps the IoT bullet for everyday objects that have been made smart: appliances, home automation, streaming devices, IP cameras, medical devices, exercise equipment, wearables and vehicles. When an exam question asks which device is an IoT device, answer from the objective's IoT list.
Worth holding on to: an IoT device puts a sensor, processor, actuator and network radio into an everyday object, and the network connection, not the screen or the schedule, is what makes it smart.
Smart home devices, from the fridge to the front door
- Home appliances. Washers that report when a cycle ends, ovens that preheat from an app, fridges that warn you the door is open, robot vacuums that map the rooms. Their purpose is convenience and remote monitoring. The weak point is lifespan: a fridge can outlast the maker's software updates and the cloud service its app depends on.
- Smart thermostat (home automation). It measures temperature, often humidity and whether anyone is home, and switches the heating or cooling. You can adjust it from anywhere and see your energy use. Many need constant power from the heating system's wiring, which some older homes lack.
- Home security system. Door and window contact sensors, motion detectors, a keypad, a siren and a hub, often with a cellular backup link and optional professional monitoring. A security system detects an intrusion and raises the alarm; a camera records what happened.
- Smart lock (deadbolts and door locks). A motor drives the bolt. You unlock it with an app, a keypad PIN (Personal Identification Number), your phone's Bluetooth signal or a tap. Its purpose is keyless entry, auto-locking, a log of who came and went, and guest codes you can cancel later. It runs on batteries, so most models keep a physical key or an emergency power contact as a backup.
- Smart doorbell (video doorbell). A button combined with a camera, a motion sensor, a speaker and a microphone. Your phone shows the visitor, and you can talk to them from anywhere. Recordings often live in the maker's cloud service, sometimes only with a subscription.
- IP camera (IP security camera). It sends digital video over Wi-Fi or a network cable to a recorder, an app or a cloud service. Older closed-circuit cameras sent analog video to a recorder in the same building. Being viewable from anywhere is the IP camera's purpose and also its main risk. A doorbell is built to answer the door; an IP camera watches a space continuously.
- Streaming media player. A stick or box in the TV's HDMI port that runs video and music apps, turning an older TV into a smart one. Many accept casting: a phone app tells the player what to play, and the player fetches the stream itself. A smart TV builds this into the set. For a console, streaming is a side job.
- Smart speaker (home assistant). Microphones listen for a wake word, typically on the device itself. Only after the wake word does the request go to the maker's cloud service, which works out what you said. The speaker then replies, plays music, sets timers or controls lights, plugs and thermostats, which makes it the control center of many smart homes. A microphone that is always listening in your kitchen is a privacy concern, which is why most models have a physical mute switch.
Body and road: wearables, medical devices, exercise machines and cars
Wearable devices include the smartwatch, the activity tracker (fitness band) and the smart ring. An accelerometer counts steps and tracks sleep, and an optical sensor against the skin estimates heart rate. Most pair with a phone over Bluetooth, forming a PAN (Personal Area Network), and the phone does the heavy storage and analysis. Their purpose is convenience and wellness tracking.
Medical devices diagnose, monitor or treat a condition. Examples include continuous glucose monitors, insulin pumps, pacemakers that report to a clinic, and hospital infusion pumps. What separates them from wearables is the stakes. A miscounted step harms nobody; a misbehaving insulin pump can harm a patient. So medical devices are regulated, and every software change must be tested for safety before release. Their data is PHI. CompTIA's list expands that as Personal Health Information; US health privacy law uses the term protected health information. Either way, the data carries legal privacy protection. A watch that measures heart rate is still a wearable unless it is used and approved as a medical device.
Connected exercise machines add a screen, a processor and a network link to a bike, treadmill or rowing machine. They stream classes, log workouts and sometimes adjust resistance to match the class. Many of those features need a subscription. The difference from a wearable: the machine measures the workout done on it, while a wearable measures you all day.
A connected car is a network of computers on wheels. Separate electronic control units run the engine, brakes, airbags and windows, and they talk to each other over a CAN bus. A CAN (Controller Area Network) is a wired network designed for a vehicle's control units. Facing outward, the car may have GPS navigation, a cellular link for emergency calls, remote unlocking from an app and over-the-air software updates. That outward connection is what makes a car an IoT device, and it is why the car's software needs the same care as any other connected computer.
Why connected devices need extra care
NIST observes that as devices get smaller and more complex, with more features, securing them gets more complex too.[1] A door lock cannot run anti-malware software, and it may have no screen to warn you of anything. So NIST's baseline focuses on device cybersecurity capabilities: security features the device provides through its own hardware and software.[1] If the maker did not build a feature in, you usually cannot add it later. Four problems come up again and again.
- Default passwords. CISA notes that some internet-enabled devices come with default passwords to make setup easier.[6] Those passwords are printed in manuals anyone can download, so change the default first.
- Unpatched software. When makers learn of weaknesses in their products, they often release patches to fix them.[6] A patch protects you only once it is installed, so turn on automatic updates and prefer makers that promise years of them.
- Data held by the vendor. Doorbell clips and thermostat history usually live on the maker's servers. CISA warns that vendors' databases may be attacked or accidentally exposed to the internet.[6]
- Always-on exposure. In 2020, CISA passed on a warning from the UK National Cyber Security Centre: attackers can get into unsecured or poorly secured internet-connected cameras and obtain live feeds or images.[7] Its advice includes turning off remote access if you do not use it.[7] CISA also suggests asking whether a device needs a constant internet connection at all.[6]
Match each category to its risk. Cameras and doorbells expose video. Locks and security systems control who gets in. Medical devices and wearables hold health data. Cars can be commanded remotely. Lesson 28 covers securing devices, and Lesson 32 covers the wireless network they join. The Atlas Security+ course goes much further into device security.
Exam cues: words in the question, device in the answer
| If the stem says | Think | Not to be confused with |
|---|---|---|
| Calls, cellular data, fits in a pocket | Smartphone | Tablet (often Wi-Fi only, not pocket-sized) |
| Weeks of battery, readable in sunlight, mostly books | E-reader | Tablet (backlit, battery lasts hours) |
| Portable, built-in keyboard, runs desktop applications | Laptop | Tablet (touch-first, mobile apps) |
| CAD, 3D rendering, programming at a desk | Workstation | Server (serves others, not one user) |
| Shared files, print queue, database, many users, always on | Server | Workstation (one user at the keyboard) |
| Controller, connects to a TV, fixed hardware | Gaming console | Streaming media device (apps, not games) |
| Blocks out surroundings, immersive simulation | Virtual reality system | Augmented reality (real world visible) |
| Overlay on a real view, see-through glasses | Augmented reality system | Virtual reality (view replaced) |
| Everyday object that senses or controls the physical world over a network | IoT device | Programmable device with no network link |
| Plugs into the TV's HDMI port to add apps | Streaming media device | Smart TV (apps built in) |
| Wake word, voice commands, controls the lights | Home assistant | Security system (detects intruders) |
| See and talk to a visitor at the door from your phone | Video doorbell | IP security camera (watches continuously) |
| Guest codes, unlock from an app, auto-lock | Smart door lock | Security system (alarms, not entry) |
| Glucose, insulin, pacemaker, patient data | Medical device | Wearable (steps, wellness) |
| Control units, CAN, over-the-air updates | Vehicle | Wearable or phone that only has GPS |
Common misconceptions
- "A server is just a more powerful computer." A server is defined by its role: providing services to other computers over a network. A workstation can have more cores and memory than a small server. What sets server hardware apart is reliability for nonstop, unattended running.
- "An e-reader is just a small tablet." Electronic paper reflects light and uses power mainly when the page changes. That gives weeks of battery and sunlight readability, but poor video.
- "AR and VR are the same thing with different headsets." VR replaces your view; AR adds to a real one. A phone can do AR with no headset at all.
- "IoT devices need the internet to work." Many talk only to a nearby hub or phone and keep doing their basic job when the internet drops.
- "Every connected device counts as IoT on the exam." Phones, tablets, laptops and VR headsets are connected, but objective 2.1 lists them as separate bullets. Its IoT bullet covers everyday objects made smart.
- "A new smart device is secure straight out of the box." Many ship with default passwords anyone can look up, and with software that will need patches.
Where this leaves us
- Four questions sort any device: who it serves, how it takes input, whether it moves, and whether it is general-purpose or special-purpose.
- A smartphone is defined by its cellular radio and a tablet by its larger touch-first screen. An e-reader's electronic paper reflects light and uses power mainly when the page changes, so its battery lasts weeks.
- A laptop is portable general-purpose computing with a built-in keyboard; a workstation is a high-powered computer for one person doing programming, engineering or design.
- A server provides files, printing, databases and other resources to client computers, and its hardware has redundant power and drives, error-correcting memory and remote management.
- A gaming console has fixed hardware that developers tune for, takes controller input, and outputs to a TV over HDMI.
- VR replaces the user's view, AR keeps the real world visible and adds to it, and XR is the umbrella term that also covers mixed reality.
- An IoT device combines a sensor, a processor, an actuator and a network connection, and the network connection is what makes a thermostat smart. On the exam, IoT means the objective's IoT list, not phones or tablets.
- A video doorbell answers the door, an IP camera watches a space, a security system detects intrusions, a smart lock controls entry, and a home assistant takes voice commands.
- Wearables track wellness while medical devices diagnose or treat; cars connect their control units over a CAN bus; and the recurring IoT risks are default passwords, missing patches, vendor-held data and unneeded remote access.
Sources
- Fagan, Megas, Scarfone, Smith. (2020). IoT Device Cybersecurity Capability Core Baseline (NISTIR 8259A). NIST. nvlpubs.nist.gov
- CompTIA. (2023). CompTIA Tech+ FC0-U71 V6 certification exam: Exam objectives (Document version 4.0). lecbyo.files.cmp.optimizely.com
- NIST CSRC. (n.d.). workstation - Glossary. csrc.nist.gov
- NIST CSRC. (n.d.). server - Glossary. csrc.nist.gov
- NIST. (2022). Extended Reality. nist.gov
- CISA. (2019). Secure New Internet-Connected Devices. cisa.gov
- CISA. (2020). NCSC Releases Advisory on Securing Internet-Connected Cameras. cisa.gov
- Key terms
- Smartphone
- A pocket-sized, battery-powered computer with a cellular radio for calls and mobile data, plus Wi-Fi, Bluetooth, GPS and sensors such as cameras and accelerometers.
- E-reader
- A special-purpose device for reading books, usually with an electronic paper screen that reflects light like paper, stays readable in sunlight and uses power mainly when the page changes.
- Workstation
- A computer one person works at directly; in hardware terms, a high-performance computer for programming, engineering and design, and in everyday business use, any employee's desktop computer.
- Server
- A computer or device on a network that provides resources such as files, printing or database access to client computers, usually built to run continuously with redundant parts.
- Virtual reality (VR)
- A system, usually a head-mounted display with motion tracking, that replaces the user's view of the real world with a computer-generated environment.
- Augmented reality (AR)
- A system that keeps the real world in view and adds digital information or objects to it, using a phone camera, see-through glasses or a passthrough headset.
- Internet of Things (IoT)
- Everyday physical objects, such as appliances, locks, cameras, wearables and cars, that contain a computer and a network connection and can sense or affect the physical world.
- Actuator
- The part of a device that acts on the physical world, such as a relay that switches a furnace on or a motor that moves a door bolt.
- Controller Area Network (CAN)
- A wired network inside a vehicle that lets its electronic control units, such as the engine, brake and airbag controllers, exchange messages.
Inside the Box: Motherboard, CPU, RAM, GPU and More
- Explain what the motherboard, firmware (BIOS/UEFI), CPU, RAM, storage, GPU and NIC each do, and what a user notices when one is too small, too slow or missing.
- Tell apart similar components and terms: RAM vs. storage, CPU vs. GPU, HDD vs. SSD, BIOS vs. UEFI, wired vs. wireless NIC, and onboard vs. expansion-card NIC.
- Read simple evidence such as a spec label, a firmware summary screen or a performance monitor, then decide which component is the bottleneck and which upgrade fits.
Ticket 1047: a slow tower with no Wi-Fi
The ticket arrives at 8:40 on a Monday morning. It is a fictional example, but every help desk has seen one like it: "My computer takes four minutes to start, freezes when I have the tax software and a pile of browser tabs open, and it can't get online in the conference room." It comes from Marco, an accountant at a six-person firm. Priya, in her first week as the firm's IT technician, walks to his desk and finds a black desktop tower with a spec label on its side.
| Line on the label | What it says |
|---|---|
| Processor | 6 cores, 3.2 GHz base clock, integrated graphics |
| Memory | 8 GB DDR4 (1 x 8 GB DIMM), 4 memory slots on the board |
| Storage | 1 TB hard disk drive, 7200 rpm, SATA |
| Network | Onboard Gigabit Ethernet, one RJ45 port, no wireless |
| Firmware | UEFI, version 1.07 |
Each of Marco's three complaints traces back to one line on that label. Follow Priya through the machine and you will meet every part the exam lists, in roughly the order a technician meets them: the firmware that runs before Windows, the board everything plugs into, and then the processor, memory, storage, graphics and network hardware.
Exam objectives: 2.2 Explain the purpose of common internal computing components: motherboard/system board; firmware/basic input/output system (BIOS); random-access memory (RAM); central processing unit (CPU); graphics processing unit (GPU); storage; and network interface card (NIC), wired vs. wireless and onboard vs. expansion card.[1]
Notice the verb: explain the purpose. The exam rarely asks you to name a chip from a photo. It describes a symptom or a need and asks which component is responsible, or which one to add. So for each part, keep two questions in mind. What job does it do? And what would a user notice if it were too small, too slow or missing?
The first seconds: what firmware does before Windows starts
Priya restarts the computer and presses the setup key while the manufacturer's logo is on screen. Delete and F2 are common, but the key varies by manufacturer, and the logo screen often says which. The screen she reaches is not part of Windows. It belongs to the computer's firmware: software stored in a chip on the motherboard that runs every time the power comes on, before any operating system has loaded.
Why does a computer need software before its software? When power arrives, the processor, memory and drives are just hardware. Something has to check them, set them up, find the operating system on a drive and start it. NIST's BIOS Protection Guidelines (Special Publication 800-147, 2011) explain that this code is kept in non-volatile memory, meaning memory that keeps its contents with the power off, and is commonly called boot firmware.[2] Very early in the boot process, the firmware initializes and tests key hardware, including the motherboard, chipset, memory and CPU.[2] Technicians call this check the power-on self-test (POST). If it finds a serious fault, such as no memory installed, the computer may stop and beep or flash a code. If all is well, the firmware works through its boot order, the list of drives to try in turn, and hands control to the operating system's loader on the first drive that has one.
Two names cover this firmware. The design that came with the original IBM-compatible PCs is the BIOS, short for basic input/output system, and that is the word the exam uses. Modern PCs use UEFI (Unified Extensible Firmware Interface). In 2011 NIST described UEFI as a possible replacement for the conventional BIOS that was becoming widely deployed in new x86-based computers.[2] Since then it has become standard on new PCs. Manuals, setup screens and the exam still say "BIOS" for both kinds, so read BIOS in a question as "the system firmware", whichever kind the machine has.
Example UEFI setup summary (fictional)
------------------------------------------
Firmware version ..... 1.07 (2021-03-14)
Installed memory ..... 8192 MB
DIMM_A1 ............ 8 GB DDR4
DIMM_A2/B1/B2 ...... empty
SATA port 0 .......... 1 TB HDD
M.2 slot ............. empty
Onboard LAN .......... Enabled
Wireless ............. not present
Boot order ........... 1. SATA0 HDD 2. USB 3. Network
Secure Boot .......... Enabled
Read it the way Priya does. Memory is 8 GB in one of four slots, so there is room to add more. An M.2 slot, a small connector for a stick-shaped drive, is empty. The only network hardware is the onboard wired port, and the firmware reports no wireless hardware at all. One complaint is already half explained: Marco cannot join Wi-Fi because his computer has no Wi-Fi radio.
The firmware also holds settings the operating system cannot easily change: boot order, date and time, whether onboard devices such as the network port are switched on, firmware passwords, and security features such as Secure Boot, which lets only boot software signed by a trusted publisher start. A wrong change here can stop the computer from starting, so look before you touch.
Firmware can be updated. The system BIOS is usually kept in EEPROM (electrically erasable programmable read-only memory) or another kind of flash memory that end users can rewrite.[2] Manufacturers release updates often, to fix bugs, patch security weaknesses and support new hardware such as newer processors.[2] Installing one is called flashing the firmware. Use the manufacturer's tool and the file for your exact board model, and keep the power steady: a laptop on its charger, a desktop ideally on an uninterruptible power supply (UPS). An update cut off halfway can leave a board that will not start.
The motherboard is not the only home for firmware. NIST notes that BIOS-type code is also found on hard drive controllers, video cards, network cards and other add-in cards.[2] That is why a graphics card can have a firmware update of its own, separate from the driver Windows loads for it.
The core of it: firmware (BIOS, or UEFI on modern PCs) lives in rewritable non-volatile flash on the motherboard. It tests the hardware at power-on, holds settings such as boot order, and hands control to the operating system. Boot order, switching an onboard device on or off, a check before the OS loads, a board's firmware update: these are all firmware questions.
The motherboard: the board everything plugs into
Priya shuts the computer down and unplugs it. She clips an electrostatic discharge (ESD) wrist strap to bare metal on the case, because a static spark too small to feel can still damage chips. Then she removes the side panel. Covering one whole wall of the case is the motherboard, also called the system board or mainboard.
OpenStax's Workplace Software and Skills describes the motherboard as the hardware that runs communications for the computer system.[3] Every other internal part plugs into it or is cabled to it. Copper traces across the board form shared pathways called buses, whose purpose is to move data between the parts of the computer.[4] A set of controller chips called the chipset directs much of that traffic.
| Landmark | What it is for | What Priya sees |
|---|---|---|
| CPU socket | Holds the processor; only processors made for that socket fit | Hidden under a heat sink and fan |
| DIMM slots | Hold RAM modules | Four slots, one filled |
| PCIe expansion slots | Hold expansion cards: graphics, network, storage | One long x16 and two short x1, all empty |
| SATA ports and M.2 slot | Connect drives | One SATA cable to the hard drive; M.2 empty |
| Rear I/O panel | The board's onboard ports, at the back of the case | USB, video outputs, audio, one RJ45 network port |
| Firmware chip and coin battery | Store the firmware; keep the clock running while unplugged | A small chip and a coin-shaped battery |
PCI Express (PCIe, Peripheral Component Interconnect Express) replaced the older PCI slot. The number after the x is the count of data lanes: a long x16 slot is the usual home for a graphics card, and short x1 slots suit smaller cards such as network adapters. Desktop boards come in standard sizes called form factors, such as ATX and Mini-ITX, which is what makes a board fit a case. Laptops, tablets and phones use custom boards with many parts soldered on, often including RAM, which is why a phone usually cannot be upgraded the way Marco's tower can.
Check the board before you buy any part, because it sets the limits: which processors fit its socket, which memory generation it takes and how many modules, whether it has an M.2 slot, and how many expansion cards it can hold. Atlas's A+ course covers installing these parts. For Tech+, the purpose is what counts.
The CPU: where instructions are carried out
Under the heat sink sits the central processing unit (CPU), usually just called the processor. A program is a long list of instructions stored as 1s and 0s, and the CPU is the part that carries them out. OpenStax's Introduction to Computer Science describes the work as a repeating cycle.
- Fetch. The CPU brings the next instruction from memory into the processor.[4] It holds it in a processor register, a tiny storage spot inside the CPU.
- Decode. It works out what the 1s and 0s mean, for example "add the number in x to the number in y and put the result in z."
- Execute. The arithmetic logic unit (ALU), the part of the CPU that does calculations and logical operations such as comparisons, carries out the instruction.[4]
- Store. The result goes into a register or back to memory, and the cycle starts again.
Going out to main memory for every instruction would waste time, so the CPU keeps a small CPU cache: fast storage inside the processor, slower than the registers but faster than main memory.[4] Recently used instructions and data stay there, because they are often needed again.
Two numbers on a spec label describe a CPU.
- Clock speed, in gigahertz. As Lesson 3 showed, 3.2 GHz means 3.2 billion clock ticks per second. How much work gets done per tick depends on the design, so GHz is a fair comparison between processors of the same family and generation, and a poor one between a new chip and a ten-year-old one.
- Core count. A core is a complete processing engine, and a multi-core processor has several on one chip. More cores let the computer work on more tasks at once, but Stanford's CS101 notes state the catch plainly: 4 cores is not 4 times faster than 1.[5] Only work that can be split into pieces running side by side benefits. Recalculating one long chain of spreadsheet formulas, for instance, runs step by step.
Processors also differ in instruction set architecture, the set of instructions they understand. Most Windows desktops use x86 processors from Intel and AMD. Phones, tablets and a growing number of laptops, including current Macs, use ARM (Advanced RISC Machines) designs; RISC means reduced instruction set computer. Software must be built for the processor's architecture, or translated for it, before it can run.
A busy CPU gets hot. A heat sink, a block of metal fins pressed onto the chip over thermal paste, draws the heat away, and a fan blows it out of the case. If dust clogs the fins, the processor slows itself down to protect itself and may shut the computer off. A machine that is fast for ten minutes, then slow with a roaring fan, has a cooling problem before it has a CPU problem.
The core of it: the CPU fetches, decodes and executes instructions; its ALU does the arithmetic and comparisons, and its cache keeps recent data close. Clock speed and cores matter, but a processor can only work as fast as memory and storage can feed it.
RAM: the workspace that forgets
The CPU does not run programs straight off the drive, because drives are slow. When you click an icon to start a program, the program and its data are copied from the drive into main memory, and the CPU reads its instructions from there.[4] Main memory is random-access memory (RAM). Random access means the computer can reach any byte directly, in about the same short time, wherever it is stored.
RAM holds its contents only while it has power.[5] Memory that forgets when the power goes is called volatile memory, and it is the reason the Save button exists. While you type, your document lives in RAM; saving copies it to storage, which keeps it. OpenStax's workplace text calls RAM primary storage and describes it as temporary, available only while the computer is on.[3]
In a desktop, RAM comes as a small circuit board carrying several memory chips, called a DIMM (dual inline memory module), which plugs into a slot on the motherboard.[5] Laptops use a shorter module called a SO-DIMM (small outline DIMM), or have RAM soldered to the board. Marco's label says DDR4: DDR stands for double data rate, and the number is the generation. Each generation's modules have the locating notch in a different place, so a DDR5 module will not fit a DDR4 slot. New RAM must match the generation the board takes.
Now the evidence. Priya asks Marco to open his usual work, waits for a freeze, and opens the Performance tab of Windows Task Manager.
Task Manager, Performance tab (fictional example, during a freeze)
------------------------------------------------------------------
CPU 22% 3.19 GHz
Memory 7.6 / 7.9 GB in use (96%)
Committed 8.6 GB
Disk 0 (C:) HDD Active time 100%
GPU 0 4%
Largest memory users (held in RAM right now)
Windows and background services 2.1 GB
Tax software 2.0 GB
Web browser (23 tabs) 2.9 GB
Email 0.6 GB
Work through it one line at a time.
- CPU at 22%. The processor is mostly idle. During a freeze it is waiting for something, not working flat out, so it is not the bottleneck.
- Memory at 96%. The four users hold 2.1 + 2.0 + 2.9 + 0.6 = 7.6 GB, which is nearly all the room there is. Only 7.9 GB of the installed 8 GB is usable, because the integrated graphics borrows some for itself.
- Committed 8.6 GB. This is the total memory the programs have asked for. It is 1.0 GB more than fits in RAM, so Windows has to keep that extra gigabyte somewhere else.
- Disk at 100%. That somewhere else is the drive. When RAM runs out, the operating system moves memory contents that have not been used recently into a file on the drive, which Windows calls the page file. When Marco clicks back to an old browser tab, its data must be read back from the drive, and something else pushed out to make room. The drive is far slower than RAM, so everything stalls. This shuffling is called memory paging.
Diagnosis: too little RAM. Fix: add a second 8 GB DDR4 DIMM in the slot the motherboard manual recommends, for 16 GB in total. The 8.6 GB the programs want then fits with room to spare, paging stops, and so do the freezes.
Now change one input. The next morning Priya captures the same screen two minutes after Marco signs in, while the computer is still crawling through startup. This time memory shows 4.1 of 7.9 GB in use (52%), the CPU shows 15%, and the disk is again pinned at 100%. With half of RAM free, nothing needs to be paged out. The disk is busy because starting Windows and Marco's programs means reading thousands of files, and this drive cannot deliver them any faster. More RAM would barely shorten this startup. The bottleneck is storage.
The core of it: RAM is the fast, volatile workspace for whatever is open right now. Too little RAM shows as freezes during multitasking, with memory near 100% and the drive busy paging. Slowness while memory has room to spare points somewhere else.
Storage: where data stays when the power goes off
Storage, also called secondary storage, is the permanent kind: it sits in the computer or on a removable device and keeps data with the power off.[3] It holds the operating system, the programs and every saved file. The exam's single bullet, storage, covers two main kinds of internal drive, and the difference between them explains Marco's four-minute startup.
A hard disk drive (HDD) stores data magnetically on metal platters that spin, Marco's at 7200 rpm. A read/write head on a moving arm must swing to the right track and wait for the right spot to spin past. Those mechanical delays are tiny for one file and huge for thousands of small files scattered across the disk, which is exactly what startup reads. Internal hard drives usually connect by a SATA (Serial Advanced Technology Attachment) cable.
A solid-state drive (SSD) stores data in flash memory chips and has no moving parts. Flash is faster than a hard disk and uses less power,[5] though it costs more per gigabyte, so cheap bulk storage is often still a hard drive. SSDs come in two common forms.
- A SATA SSD uses the same cable and port as a hard drive. It is much faster than an HDD, but the SATA connection caps its speed.
- An NVM Express SSD (NVMe, non-volatile memory express; the exam's acronym list prints it "NvME") is usually a small stick in an M.2 slot. It talks to the processor over PCIe lanes instead of SATA, which makes it faster still.
| Layer | Where it is | Keeps data without power? | Relative speed |
|---|---|---|---|
| Registers | Inside the CPU | No | Fastest |
| Cache | Inside the CPU | No | Very fast |
| RAM | DIMMs on the motherboard | No | Fast |
| NVMe SSD | M.2 slot | Yes | Fastest common drive, still much slower than RAM |
| SATA SSD | SATA port | Yes | Slower than NVMe, much faster than HDD |
| HDD | SATA port | Yes | Slowest, because of moving parts |
Read the table down and speed falls while permanence appears. So if an NVMe SSD is fast, why not use it in place of RAM? Because flash is still much slower than RAM, so it is not a good replacement for it.[5] Storage keeps everything permanently; RAM holds the small part you are using now, close enough to keep the CPU busy. Watch the words, too. A phone advert promising "256 GB of memory" means storage. On the exam and at the help desk, memory means RAM and storage means drives, and mixing them up buys the wrong part.
Priya's storage plan: fit an NVMe SSD in the empty M.2 slot, clone the operating system and programs onto it, then return to firmware setup and put the SSD first in the boot order. The old hard drive stays in as a second drive for archived client files.
The GPU: a processor built for images
The graphics processing unit (GPU) is like a CPU, but specialized for producing images.[5] Why a separate kind of processor? A screen image is millions of pixels, each needing much the same calculation. A CPU has a handful of powerful cores built to race through varied instructions. A GPU has a very large number of simpler cores built to do the same operation on many pieces of data at once, and for images that parallel design wins easily.
- Integrated graphics are built into the processor chip, as in Marco's tower. They cost nothing extra and use little power, but they borrow part of system RAM as video memory, which is why his 8 GB shows as 7.9 GB usable.
- A graphics card, also called a dedicated or discrete GPU, is an expansion card in the long PCIe x16 slot, with its own fast video memory and cooling. It often needs an extra power cable from the power supply, so check the card maker's power supply recommendation before buying. In gaming and workstation laptops the dedicated GPU is a separate chip on the board.
Who needs a dedicated GPU? Gamers, people using CAD (computer-aided design) for 3D models, video editors, VR (virtual reality) users, and anyone running heavy AI (artificial intelligence) workloads, which rely on the same mass-parallel arithmetic. Marco's GPU sits at 4% during spreadsheet work, so integrated graphics are plenty for him. One practical trap: once a card is installed, plug the monitor into the card's ports. Many boards switch off their own video outputs when a card is present, so a monitor on the motherboard port shows nothing.
One vocabulary trap as well. Graphics-card memory is commonly called VRAM, for video RAM, but the Tech+ acronym list uses vRAM for virtual random-access memory, the memory assigned to a virtual machine (Lesson 10). Same letters, different ideas; the question's context tells you which.
The network interface card: wired or wireless, onboard or added
Now the conference room. A network interface controller, which the exam calls a network interface card (NIC) and Windows calls a network adapter, is the hardware that connects a computer to a network. Microsoft's documentation describes it as hardware dedicated to capturing and pre-processing the data packets that arrive at a computer,[6] and it also sends the computer's outgoing traffic. Every NIC has a MAC address (media access control address), a hardware address set at the factory and written in hexadecimal, the base-16 notation from Lesson 2.
The exam sorts NICs in two independent ways. One is about how the NIC connects; the other is about where it sits. Keep them apart.
| Distinction | One side | Other side |
|---|---|---|
| How it connects | Wired: an RJ45 (registered jack 45) port and an Ethernet cable to a switch or wall jack. Steady speed, no radio to share or lose. | Wireless: a radio and antennas that join a Wi-Fi access point. The device can move, but the signal weakens with distance and walls and suffers interference. |
| Where it sits | Onboard: built into the motherboard, port on the rear I/O panel. No extra cost, no slot used, but it cannot be replaced on its own. | Expansion card: a NIC on a PCIe card in a slot. Adds a capability the board lacks, a second or faster port, or a replacement for a failed onboard NIC. |
Microsoft notes that on wireless networks, signal attenuation (weakening), electromagnetic interference and the movement of the device all affect performance.[6] That is the trade-off in one sentence: wired is steadier, wireless is more convenient. Laptops, tablets and phones almost always have wireless NICs built in. Many office desktops, like Marco's, ship with only an onboard wired NIC, because they sit beside a network jack.
The conference room has no jack, so Priya weighs her options. Running a new Ethernet cable would use the onboard wired NIC and give the steadiest link, but means cabling through walls. A USB Wi-Fi adapter plugs in within minutes, but it is an external device rather than an expansion card, and its tiny antenna is easy to knock off. A PCIe Wi-Fi card is an internal wireless expansion card with antennas on the back of the case. Hunting for a Wi-Fi switch in firmware is not an option at all: the firmware already reports no wireless hardware, and a setting cannot create a radio. She fits the PCIe card in a short x1 slot, confirms after startup that Device Manager lists the new adapter, installs the manufacturer's driver, and joins the office Wi-Fi from the conference room.
Expansion NICs have other jobs too. If an onboard port dies, say after a power surge, a card in a free slot replaces it without replacing the whole board, and the dead onboard NIC can be switched off in firmware setup. Servers often take expansion NICs for extra ports or for fiber links using SFP (small form-factor pluggable) modules.
The core of it: wired versus wireless is about the medium, a cable in an RJ45 port or a radio. Onboard versus expansion card is about location, built into the board or added in a slot. A desktop with no Wi-Fi needs wireless hardware added, not a setting changed.
Priya's report: one complaint, one component
Back at her desk, Priya writes up the ticket, tying each complaint to one component and the evidence for it.
| Complaint | Evidence | Component | Fix |
|---|---|---|---|
| Freezes with tax software and many tabs | Memory 96%, committed 8.6 GB, disk 100%, CPU 22% | RAM | Add an 8 GB DDR4 DIMM, for 16 GB |
| Four-minute startup | Memory 52%, disk 100%, hard disk drive | Storage | NVMe SSD in the M.2 slot, cloned, first in boot order |
| No network in the conference room | Onboard wired NIC only; firmware reports no wireless | NIC | PCIe Wi-Fi expansion card and driver |
| (Ruled out) | CPU 22%, GPU 4%, firmware healthy | CPU, GPU, firmware | No change; check for a firmware update first |
Change the user and the answer changes. Suppose the desk belonged to Lena, the firm's part-time architect, and Task Manager showed the integrated GPU at 100% while she rotated a 3D building model, with the CPU at 30% and memory at 45%. Neither RAM nor storage would help. She needs a graphics card in the x16 slot, once Priya has checked that the power supply can carry it. The rule behind both diagnoses: the component pinned at its limit while the others idle is the one to upgrade, and the motherboard decides what will fit.
Following the method from Lesson 4, Priya then has Marco run his real workload to verify the whole system: startup time, multitasking, and Wi-Fi from the conference room. Only then does she document the changes and close the ticket.
Exam cues: which component the question is pointing at
| Words in the question | Points to | Commonly confused with |
|---|---|---|
| Unsaved work lost in a power cut; slows down with many programs open | RAM | Storage |
| Files still there after shutdown; room for photos; slow startup; slow to open files | Storage (HDD or SSD) | RAM |
| Boot order; before the OS loads; POST; enable an onboard device; firmware update | Firmware (BIOS/UEFI) | OS settings or drivers |
| Executes program instructions; cores; clock speed in GHz | CPU | GPU |
| 3D rendering; gaming; CAD; video editing; parallel math for AI | GPU | CPU |
| Connects all components; sockets and slots; which parts are compatible | Motherboard | CPU |
| Ethernet cable; RJ45 port; most stable connection | Wired NIC | Wireless NIC |
| Add Wi-Fi to a desktop; add a port; replace a failed built-in port | Expansion-card NIC | Onboard NIC |
| Memory assigned to a virtual machine (vRAM) | Virtual RAM | Video memory on a graphics card |
Common misconceptions
- "Memory and storage are the same thing." RAM is the volatile workspace for what is open now; storage is the non-volatile drive that keeps everything. A bigger drive will not fix freezes caused by full RAM.
- "Modern computers don't have a BIOS any more." They have UEFI, which took over the same job. Manuals, setup screens and the exam still call it BIOS.
- "Twice the cores means twice the speed." Only work that can be split into parallel pieces benefits, and much everyday work uses one core at a time.
- "A fast SSD can stand in for RAM." Flash is much slower than RAM. Paging to an SSD hurts less than paging to a hard drive, but it still hurts.
- "Every computer can do Wi-Fi if you find the setting." Wi-Fi needs a wireless NIC with a radio. No setting adds hardware that is not there.
- "A GPU only matters for games." CAD, video editing, VR and AI work all repeat the same arithmetic over huge amounts of data, which is what GPUs are built for.
Putting it together
- The motherboard (system board) connects every component, moves data between them over buses, and sets upgrade limits through its CPU socket, DIMM slots, PCIe slots, SATA ports and M.2 slots.
- System firmware, called BIOS and on modern PCs UEFI, is stored in rewritable non-volatile flash. It runs the power-on self-test, holds settings such as boot order, starts the operating system, and is updated to fix bugs, patch vulnerabilities and support new hardware.
- The CPU executes instructions in a fetch, decode, execute cycle; its ALU does arithmetic and comparisons, and its cache keeps recent data close. More cores help only with work that can run in parallel.
- RAM is volatile: it holds open programs and unsaved work only while powered. Too little RAM shows as memory near 100% and a busy drive while multitasking, because the system is paging.
- Storage is non-volatile. HDDs have spinning platters and moving heads; SSDs use flash with no moving parts and are faster; NVMe SSDs on PCIe beat SATA SSDs. No SSD replaces RAM.
- A GPU is a processor specialized for images, built from many simple cores working in parallel. Integrated graphics share system RAM; a dedicated graphics card sits in a PCIe x16 slot with its own memory.
- Wired NICs use an RJ45 port and cable and are steadier; wireless NICs use radio and are affected by distance, walls and interference.
- Onboard NICs are built into the motherboard; expansion-card NICs go in a PCIe slot to add Wi-Fi, add ports or replace a failed onboard NIC.
- The component sitting at its limit while the others idle is the one to upgrade, and the motherboard's specification decides what will fit.
Sources
- CompTIA. (2023). CompTIA Tech+ FC0-U71 V6 certification exam: Exam objectives (Document version 4.0). lecbyo.files.cmp.optimizely.com
- David Cooper, William Polk, Andrew Regenscheid, Murugiah Souppaya. (2011). BIOS Protection Guidelines (SP 800-147). NIST. nvlpubs.nist.gov
- OpenStax. (n.d.). 1.2 Computer Hardware and Networks. openstax.org
- OpenStax. (n.d.). 5.1 Computer Systems Organization. openstax.org
- Stanford University CS101. (n.d.). Computer Hardware. web.stanford.edu
- Microsoft Learn. (n.d.). Network Adapter (Windows Server 2008 R2 documentation). learn.microsoft.com
- Key terms
- Motherboard (system board)
- The main circuit board of a computer, which connects the CPU, RAM, storage and expansion cards, carries data between them over buses, and determines which parts can be installed.
- Firmware (BIOS/UEFI)
- Software stored in non-volatile flash memory on the motherboard that tests the hardware at power-on, holds settings such as boot order, and starts the operating system. UEFI is the modern successor to the conventional BIOS.
- Central processing unit (CPU)
- The processor that executes program instructions by fetching, decoding and executing them, using its arithmetic logic unit for calculations and comparisons.
- Random-access memory (RAM)
- Fast, volatile main memory that holds the programs and data currently in use and loses its contents when power is removed.
- Storage (secondary storage)
- Non-volatile devices such as hard disk drives and solid-state drives that keep the operating system, programs and saved files when the computer is off.
- Solid-state drive (SSD)
- A storage drive that keeps data in flash memory chips with no moving parts, making it faster and less power-hungry than a hard disk drive; it connects by SATA or, faster, by NVMe over PCIe.
- Graphics processing unit (GPU)
- A processor specialized for producing images, using many simple cores that perform the same calculation on large amounts of data at once; it can be integrated into the CPU or provided by a dedicated graphics card.
- Network interface card (NIC)
- The hardware that connects a computer to a network and sends and receives its data, either through a cable and RJ45 port (wired) or by radio (wireless).
- Onboard component
- A function such as networking, graphics or audio that is built directly into the motherboard rather than added on a separate card.
- Expansion card
- A circuit board installed in a motherboard slot, usually PCIe, to add or replace a capability such as graphics, Wi-Fi or extra network ports.
Where Data Lives: Volatile and Non-volatile, Local, Network and Cloud Storage
- Explain why RAM loses its contents without power while ROM, drives, discs and flash keep theirs, and what saving a file actually does.
- Compare hard disk drives, SATA solid-state drives and NVMe solid-state drives by how they work, how they connect, their speed, cost and weaknesses, and read a drive's spec-sheet line.
- Tell local storage apart from network storage, and choose among optical discs, external flash drives, network-attached storage, file servers and cloud storage services for a stated need.
- Recognize the wording exam questions use for each storage type, including the pairs people most often confuse.
The unsaved spreadsheet and the power cord
At 9:50 on a Tuesday morning, someone trips over the power cord of a desktop PC (Personal Computer). The PC has 16 GB of RAM (Random-access Memory) and a 1 TB SSD (Solid State Drive). The owner saved her budget spreadsheet at 9:00 and has kept typing since then. When the PC restarts, the 9:00 version is still on the drive. The fifty minutes of typing after it are gone. (The office and the owner are an invented example.)
Nothing in that PC was broken. The RAM held the live copy of the spreadsheet as it changed, and RAM needs power to remember anything. The drive held the saved copy, and a drive keeps its contents with the power off. Most storage questions come down to properties like that one. Does it survive a power cut? How fast is it? What does each gigabyte cost? Who can reach it, and from where?
Exam objectives: 2.3 Compare and contrast storage types.[1] The objective covers three groups. The first is volatile versus non-volatile storage. The second is local storage: RAM, read-only memory and storage drives, a group that includes magnetic hard disk drives, solid-state drives, NVMe, optical discs and external flash drives. The third is storage reached over a network: network-attached storage, file servers and cloud storage services.
The objective sorts storage by where it sits. Local storage is storage inside the computer or plugged straight into it: the RAM, the ROM chip on the motherboard, and any drive in the case or on a USB cable. Network storage sits somewhere else, in a box down the hall or in a provider's data center, and the computer reaches it across a network. You see the difference as soon as the network fails: local storage keeps working and network storage becomes unreachable. The exam-cue table near the end of this lesson lists every type side by side.
Volatile and non-volatile: why RAM forgets
Random-access memory is the computer's working space. When you open a program or a file, the OS (Operating System) copies it from the drive into RAM, because the CPU (Central Processing Unit) can reach RAM far faster than any drive. RAM is volatile: its contents are lost when the power is turned off.[2] The reason is physical. A PC's main memory is dynamic RAM (DRAM). DRAM stores each bit in a capacitor, a tiny component that holds an electric charge, and the memory must refresh those charges constantly to keep its data.[2] When the power goes off, the refreshing stops and the charges drain away, taking the ones and zeros with them.
Non-volatile storage keeps its data without power. That is why it holds both the instructions that start the computer and your long-term files.[2] Drives, flash drives, optical discs and firmware chips are all non-volatile. So are a NAS and the cloud, because in the end those files sit on drives in somebody's building.
This gives saving a precise meaning: saving copies the current version of a file from volatile RAM to non-volatile storage. Autosave does the same copying every few minutes, and it would have rescued most of that spreadsheet.
Why not build the whole computer from non-volatile parts? Because of speed and cost. Storage is arranged in a hierarchy, and faster memory costs more per byte, so computers have less of it.[2] From fastest and smallest to slowest and largest, a PC has CPU registers, then cache on the CPU chip, then RAM (gigabytes), then the storage drive (hundreds of gigabytes to terabytes). Everything above the drive is volatile.
Two words cause most mix-ups. On a spec sheet, memory almost always means RAM and storage means the drive. A phone listed as "8 GB RAM, 256 GB storage" has 8 GB of working space and 256 GB of room for apps and photos. Adding RAM lets more programs run smoothly at once, but it adds no room for files. Suppose a user says "my computer is out of memory" while pointing at a "disk full" warning. They need a bigger drive or fewer files, not more RAM.
Bottom line: volatile means the data disappears when the power does. RAM is volatile because DRAM's charges need constant refreshing. Saving a file copies it from RAM to non-volatile storage.
Read-only memory (ROM) and the firmware that starts the computer
When you press the power button, RAM is empty and the computer does not yet know how to read its drive. Something must run first. That something is firmware, a small program kept on a non-volatile chip on the motherboard. Traditionally that chip was Read-only memory (ROM). It held the BIOS (Basic Input/Output System), or its modern replacement UEFI (Unified Extensible Firmware Interface): the firmware the computer needs to start.[2] The firmware checks the hardware, finds a drive with an operating system on it, and hands control to that operating system.
The name is older than the technology. Early ROM was written once at the factory and could never change, so many learners assume ROM is permanent. Today firmware usually sits on a rewritable flash chip. That is how a motherboard maker delivers a firmware update, and technicians call installing one "flashing the BIOS". The chip still counts as ROM because in normal use the computer only reads it, and your files never go there. If the power fails partway through an update, the board may not start again. That is why update tools warn you to keep the computer plugged in.
ROM and RAM differ in three ways. ROM is non-volatile and RAM is volatile. ROM holds one small startup program, while RAM holds gigabytes of whatever is running at the moment. And the computer reads ROM at startup but reads and writes RAM constantly. The phrase "read-only" also appears on discs: a CD-ROM (Compact Disc-Read-only Memory) is pressed at the factory and can be read but not written.
Storage drives compared: hard disk drive, solid-state drive and NVMe
A storage drive holds the operating system, applications and files. Three kinds matter here.
A Hard disk drive (HDD) stores data magnetically. Inside a sealed case, rigid platters coated with magnetic material spin at a fixed speed. In desktops and laptops that is commonly 5,400 or 7,200 RPM (revolutions per minute). A read/write head on a moving arm floats just above each surface. It records bits by changing the magnetism of tiny regions. To read a file, the arm swings to the right track and the drive waits for the right spot to spin under the head. That wait is mechanical and is measured in milliseconds, so an HDD feels slow when it must fetch many small files scattered across the platters. In return, an HDD offers the lowest cost per terabyte, which keeps HDDs the usual choice for bulk storage, backups and archives. The moving parts are the weakness. A laptop drive dropped while it is spinning can be damaged, and a failing drive often clicks or grinds.
A Solid-state drive (SSD) keeps data in NAND flash. This is a high-density, low-cost type of non-volatile memory, and it is also inside USB drives and memory cards.[2] (NAND, short for NOT-AND, names the logic layout of the cells.) An SSD has no moving parts, so it can reach any block of data about as quickly as any other. That is why it starts the operating system and opens programs much faster than an HDD. It is also silent, uses less power and survives knocks better. The trade-offs are a higher price per terabyte and flash cells that wear out after a large but limited number of writes. Spec sheets state that endurance, often as TBW (terabytes written). Having no moving parts does not mean an SSD lasts forever.
NVM Express (NVMe, Non-volatile Memory Express) is not a different kind of storage. It is a standard for how the computer talks to an SSD. Older SSDs connect through SATA (Serial Advanced Technology Attachment). SATA is the interface hard drives use, and it was designed when drives had spinning platters. NVMe was designed from the ground up for SSDs.[3] Inside a PC it runs over PCIe (Peripheral Component Interconnect Express), the fast internal bus, or data pathway, from Lesson 6. The NVM Express group describes NVMe as an efficient interface. It has lower latency, meaning less delay before data starts to arrive, and it scales better for SSDs than older interfaces such as SATA.[3] The SATA revision in current PCs tops out at 6 Gbps (Gigabit per second), and a good SATA SSD already reaches that ceiling. An NVMe SSD on PCIe is not held back by it.
The standard also covers other transports, so NVMe commands can travel across networks as well as across PCIe.[4] For this objective, though, NVMe means an SSD on the PCIe bus. The standard keeps being revised: the 2.4 set of specifications was released on August 4, 2026.[3] You do not need to memorize version numbers.
The mistake that costs people money involves the drive's form factor, meaning its physical shape and size. NVMe is the industry standard for PCIe SSDs in several form factors, including M.2 and add-in cards.[3] In consumer laptops and desktops the one you will meet is M.2, a small circuit board about the width of a stick of gum that screws flat onto the motherboard. But M.2 names only the shape and the slot. Some M.2 drives use SATA and some use NVMe, and a given slot may accept one type, the other, or both. A slot that supports only NVMe will not detect an M.2 SATA SSD, so read the manual before you buy.
The table reads four example listings of the kind a retailer shows. The products are invented.
| Listing | Stores bits as | Connection | Relative speed | Cost per TB | Watch out for |
|---|---|---|---|---|---|
| 4 TB 7200 RPM 3.5-inch SATA HDD | Magnetism on spinning platters | SATA | Slowest, worst on small scattered files | Lowest | Shock, noise, mechanical wear |
| 1 TB 2.5-inch SATA SSD | Charge in NAND flash | SATA | Much faster; capped at 6 Gbps | Higher | Fits the drive bays of older PCs |
| 1 TB M.2 SATA SSD | Charge in NAND flash | SATA | Same ceiling as the 2.5-inch SSD | Higher | M.2 shape, but not NVMe |
| 1 TB M.2 PCIe NVMe SSD | Charge in NAND flash | PCIe, using NVMe | Fastest of the four | Similar or higher | Needs a slot that supports NVMe |
Installing and replacing drives is taught in depth in the Atlas A+ certification prep course.
Bottom line: an HDD trades speed for cheap capacity, because a head must physically move. An SSD uses flash and has no moving parts. NVMe is how a modern SSD talks over PCIe, and M.2 describes only the drive's shape, not how it connects.
Optical discs: CD, DVD and Blu-ray
An Optical disc stores data along a spiral track that a laser reads. A factory-pressed disc carries tiny pits and flat areas that reflect the laser differently. On a recordable disc, the drive's laser marks a dye or alloy layer to make a similar pattern. Each new format used a laser with a shorter wavelength, which can focus on smaller marks packed closer together. That is why capacity jumped from CD to DVD to Blu-ray.
| Format | Single layer | Dual layer |
|---|---|---|
| CD (Compact Disc) | About 700 MB | Not applicable |
| DVD (Digital Video Disc in CompTIA's list; also called Digital Versatile Disc) | 4.7 GB | 8.5 GB |
| Blu-ray Disc (BD) | 25 GB | 50 GB |
The letters after the format name tell you what you can do with the disc:
- ROM, as in CD-ROM or BD-ROM (Blu-ray Disc Read-only Memory): pressed at the factory and can only be read.
- R, as in DVD-R (Digital Video Disc-Recordable): can be recorded once, and then the contents are fixed.
- RW, as in CD-RW or DVD-RW (Rewritable): can be erased and recorded again many times.
Why choose a disc you can write only once? Because nothing can change it afterward. A DVD-R of last year's finished accounts cannot be overwritten by accident, or by malware (malicious software) that later reaches the PC. Discs are slow, small by modern standards and easy to scratch. Many laptops no longer have an optical drive, and a USB external optical drive fills that gap. Discs still suit movies, old software and handing out a fixed set of files.
External flash drives and memory cards
A USB flash drive, or thumb drive, puts the same NAND flash used in SSDs into a pocket-sized stick with a USB (Universal Serial Bus) connector. A Secure Digital card (SD card) does the same in a thin card for cameras, drones and some laptops. Both are non-volatile and cheap, and any modern computer recognizes them without extra software. That makes them the quickest way to move a file between two computers that have no network, or to carry an OS installer.
Their small size causes their problems. Anyone who finds a lost, unencrypted drive can read everything on it, and a drive picked up in a parking lot can carry malware, a risk the course's security module returns to. Cheap drives are often far slower than an internal SSD, and they wear out under heavy writing. Use the operating system's eject command before you pull a drive out, so that writes still in progress can finish. An external drive is something different: an ordinary HDD or SSD inside a small case, called an enclosure, that connects by USB.
Local network storage: network-attached storage and file servers
A drive inside Maya's PC serves Maya. When six people need the same client folders, passing files around on flash drives soon produces six slightly different versions of everything. The fix is to keep the files on one device on the LAN (Local Area Network), so everyone opens the same copy.
A File server is the traditional answer. Microsoft's Windows Server documentation describes file servers as servers that give you a central place on your network to store files and share them with users.[5] A file server is a general-purpose server computer that runs a full server OS, such as Windows Server or Linux, with a file-sharing role installed. Because it is a full server, it can check permissions against company-wide user accounts, run other services, and be managed with the same tools as the organization's other servers.
Network-attached storage (NAS) is the appliance version of the same idea. A NAS is a small box with two or more drive bays, its own simplified operating system and an Ethernet port. You plug it into the switch, follow a setup wizard on a web page, and create shared folders. Homes and small offices choose a NAS because it does this one job with little administration.
Both share files using standard protocols, so a computer sees a NAS share and a file server share in the same way. SMB (Server Message Block) is the protocol Windows uses for shared folders. NFS (Network File System) is a distributed file system protocol that lets Windows and non-Windows systems share files.[6] One server can offer the same folders over SMB and NFS at the same time, so Windows, Linux and macOS clients can all work on the same files.[6]
| Question | Network-attached storage (NAS) | File server |
|---|---|---|
| What is it? | An appliance built only to store and share files | A general-purpose server with a file-sharing role |
| Operating system | The maker's slimmed-down system, run from a web page | A full server OS such as Windows Server or Linux |
| Skill to run it | Low: plug in, run a wizard | Higher: install, patch and administer a server |
| How clients reach it | SMB or NFS over the LAN | SMB or NFS over the LAN |
| Typical owner | A home or small office | An organization with IT staff |
To a user, network storage often looks like just another drive letter. Here is an example of what File Explorer might list on a small-office PC. The names and sizes are invented.
This PC (example)
Devices and drives
Local Disk (C:) 412 GB free of 931 GB
DVD RW Drive (D:)
USB Drive (E:) 29.6 GB free of 29.8 GB
Network locations
Accounts (\\NAS01) (Z:) 1.62 TB free of 3.63 TB
Read it line by line. C: is the internal SSD. Windows shows a 1 TB drive as 931 GB because of the decimal and binary units from Lesson 3. D: is an optical drive that can write DVD-RW discs, and E: is a USB flash drive. Those three are local storage. Z: is a mapped network drive: the share named Accounts on a NAS called NAS01, given a drive letter so it looks local. Its data is not in this PC at all. If the network goes down, Z: becomes unreachable while C: keeps working.
Two cautions. First, many NAS boxes mirror two drives, so one drive can fail without any data being lost. That protects against hardware failure, not against deletion. If you delete a folder, the mirror deletes it too, so a NAS still needs a separate backup (Lesson 26, Backups That Actually Restore). Second, do not confuse NAS with a SAN (storage area network), which is not on this objective. A SAN gives servers block storage, which looks like a raw disk that the server formats itself. For example, Windows Server can provide block storage to other servers over the network using the iSCSI (Internet SCSI) standard.[5] A NAS, by contrast, gives users finished files in shared folders.
Bottom line: a NAS and a file server both keep one shared copy of the files on the LAN and serve it over SMB or NFS. A NAS is a low-maintenance appliance. A file server is a full server that IT staff manage.
Cloud storage services
A Cloud storage service keeps your files on drives in a provider's data centers and lets you reach them over the internet. Consumer services such as Microsoft OneDrive, Google Drive, Apple iCloud Drive and Dropbox work this way, and so do business services. Microsoft's Azure Files, for example, offers fully managed file shares in the cloud that can be reached from anywhere using SMB, the same protocol an office NAS uses.[7] Microsoft lists replacing or adding to on-premises file servers or NAS devices as one reason to choose it.[7]
Another kind of cloud storage, object storage, keeps each file as a separate item with its own web address. Microsoft's Blob Storage, for instance, can be reached from anywhere in the world over HTTP (Hypertext Transfer Protocol) or HTTPS (Hypertext Transfer Protocol over Secure Sockets Layer), the same protocols a web browser uses.[7] With a cloud service you share a file by sending a link rather than a drive letter. Business services can limit those links: Azure's shared access signature tokens give specific access to a private file for a set amount of time.[7] So a client can download a contract this week, and the link stops working afterward.
Each strength of a cloud storage service comes with a matching cost:
- You can reach it from any device with internet access, but when the connection is down you have only the copies already saved on your device, or nothing.
- There is no hardware to buy or repair, but you pay a subscription and the provider sets the prices and terms.
- Your data sits away from your building, so a fire or theft there does not take it. In exchange, you trust the provider with confidentiality and with where the data is kept.
- Uploads are limited by your ISP's (Internet Service Provider's) upload speed, which is often far below its download speed.
Most consumer services install a sync client, which keeps a folder on each of your devices matched to the cloud copy. People often mistake sync for a backup. Sync copies every change, and a deletion is a change. Delete a folder on your laptop and the sync client deletes it from the cloud and from your phone. If ransomware, malware that encrypts your files and demands payment, scrambles the files on your PC, the scrambled versions sync too. Many services keep deleted files or older versions for a limited time. That is a feature of the provider's plan, though, not a backup under your control.
Worked comparison: storage for a six-person office
Oakline Bookkeeping is an invented example. Its six staff all work in one office and share 400 GB of client files, many of them scanned documents of about 50 MB each. The office LAN is wired Gigabit Ethernet at 1,000 Mbps (Megabit per second). The internet connection runs at 300 Mbps download and 20 Mbps upload. The owner wants one shared copy of everything and has no IT staff.
- Rule out the local-only options. Bigger drives in each PC give six copies, not one shared copy, and flash drives passed around the office are easy to lose. That leaves a NAS, a file server or a cloud storage service.
- Time the daily work. One 50 MB scan is 50 x 8 = 400 megabits. Over the LAN it takes 400 / 1,000 = 0.4 seconds. From the cloud at 300 Mbps it takes 400 / 300, about 1.3 seconds. Saving a changed scan to the cloud uses the upload side: 400 / 20 = 20 seconds, and all six people share that 20 Mbps. These are best cases that ignore overhead, but the gap between the numbers is real.
- Time the first upload. 400 GB is 400 x 8 = 3,200 gigabits, or 3,200,000 megabits. At 20 Mbps that takes 160,000 seconds, about 44 hours of a fully used upload line.
- Choose between a NAS and a file server. With no IT staff and no company-wide user directory, a full server is more machine than the job needs. A NAS gives the same SMB shares and sets up from a web page.
The choice for Run 1: a NAS on the office LAN, plus a separate offsite backup, because the mirror inside the NAS is not a backup.
Now change one input. A year later Oakline goes hybrid. Staff work from home three days a week, and a new partner works from another city. To reach the NAS from outside, each remote worker connects through a VPN (Virtual Private Network), a protected tunnel into the office network. Every file they open then leaves the office over the shared 20 Mbps upload line. One scan takes 20 seconds, and if three people open a scan at once, each waits about a minute. A cloud storage service sends files from the provider's data center at each worker's own home download speed. For this example, assume each home also downloads at 300 Mbps. Then the same scan opens in about 1.3 seconds, however many colleagues are working at the same time.
| Factor | Run 1: everyone in the office | Run 2: hybrid and remote staff |
|---|---|---|
| Where the users are | On the office LAN | Mostly outside the building |
| Path to the files | LAN at 1,000 Mbps | NAS: the office's shared 20 Mbps upload. Cloud: each home's connection |
| Time to open one 50 MB scan | NAS 0.4 s; cloud about 1.3 s | NAS 20 s or worse; cloud about 1.3 s, assuming 300 Mbps homes |
| Better fit | NAS | Cloud storage service |
The cloud does not remove every cost. The 44-hour first upload still has to happen. Anyone saving from the office still shares its 20 Mbps upload, so a 50 MB save there still takes about 20 seconds. Between the two runs, only the location of the people changed. Check that first in any question that asks you to choose between network storage and the cloud.
Bottom line: local network storage wins when the users and the files are in the same building, because the LAN is fast. A cloud storage service wins when users are spread out, because each person reaches the provider over their own connection.
Reading the exam's storage questions
Questions on objective 2.3 usually describe a need and ask which storage type meets it. The words in the question point to the answer. The last rows are the pairs people most often confuse.
| Words in the question | Points to | Why |
|---|---|---|
| Lost when powered off; temporary; running programs | RAM (volatile) | DRAM's charges need power and refreshing |
| Keeps data without power | Non-volatile storage | Drives, flash, discs, ROM, NAS and cloud |
| Inside the computer or plugged straight in | Local storage | Still works when the network is down |
| Firmware; starts the computer; BIOS or UEFI | ROM | Startup program on a motherboard chip |
| Spinning platters; RPM; cheapest per terabyte | HDD | Magnetic storage with moving parts |
| No moving parts; flash; shock resistant | SSD | NAND flash memory |
| PCIe; lowest latency; faster than SATA | NVMe | Protocol designed for SSDs |
| Laser; disc; write once | Optical (DVD-R, CD-R) | R means recordable once |
| Pocket-sized; USB port; carry files between PCs | External flash drive | Portable flash storage |
| Appliance on the LAN; web-page setup; shared folders | NAS | Dedicated file-sharing box |
| Server role; centrally managed files and permissions | File server | General-purpose server sharing files |
| Access from anywhere; provider's data center; subscription | Cloud storage service | Reached over the internet |
| Confused pair: M.2 and NVMe | M.2 is the shape; NVMe is the protocol | An M.2 drive may be SATA or NVMe |
| Confused pair: memory and storage | Memory is RAM; storage is drives | More RAM adds no room for files |
| Confused pair: NAS and SAN | NAS serves files; SAN serves blocks | Only NAS is on this objective |
| Confused pair: DVD-R and DVD-RW | R records once; RW rewrites | Choose R when files must not change |
| Confused pair: sync and backup | Sync mirrors every change | Deletions spread to every device |
Common misconceptions
- "More RAM gives me more room for files." RAM is volatile working space for running programs. Room for files comes from storage: a drive, a NAS or the cloud.
- "M.2 and NVMe mean the same thing." M.2 is a physical shape and NVMe is a protocol. M.2 drives come in both SATA and NVMe types, and a slot may support only one of them.
- "ROM can never be changed." Early ROM could not be. Modern firmware sits on rewritable flash and is updated by flashing. It is still called ROM because normal use only reads it.
- "An SSD lasts forever because it has no moving parts." Flash cells wear with every write. Endurance is rated, often in TBW, and SSDs fail too.
- "My cloud sync folder is my backup." Sync copies deletions and ransomware damage to every device. A backup is a separate copy that your everyday changes cannot reach.
- "A NAS with two mirrored drives needs no backup." Mirroring survives one drive failing. It does not survive deletion, theft, fire or malware.
Pulling it together
- RAM is volatile. DRAM stores each bit as a charge that must be refreshed constantly, so everything in RAM, including unsaved work, is lost when the power goes.
- Non-volatile storage (ROM, HDD, SSD, optical discs, flash drives, NAS and cloud) keeps data without power. Saving a file copies it from RAM to non-volatile storage.
- Local storage sits inside the computer or plugs straight into it. Network storage (NAS, file server, cloud) is reached across a network and becomes unreachable when that link fails.
- ROM holds the BIOS or UEFI firmware that starts the computer. Today it is usually a rewritable flash chip, and updating it is called flashing.
- An HDD stores data magnetically on spinning platters, commonly at 5,400 or 7,200 RPM. It has the lowest cost per terabyte, but it is the slowest drive and is sensitive to shock.
- An SSD stores data in NAND flash with no moving parts. It is faster and tougher than an HDD, costs more per terabyte, and wears with writes.
- NVMe is a protocol designed for SSDs on the PCIe bus, with lower latency than SATA, whose current revision tops out at 6 Gbps. M.2 is a form factor that can carry either SATA or NVMe.
- Single-layer capacities are about 700 MB for a CD, 4.7 GB for a DVD and 25 GB for a Blu-ray Disc. ROM discs are pressed at the factory, R discs record once, and RW discs can be rewritten.
- A NAS is a file-sharing appliance and a file server is a general-purpose server. Both share files over the LAN using SMB or NFS. A cloud storage service is reachable from anywhere, but it depends on the internet connection and its upload speed, and neither mirroring nor sync is a backup.
Sources
- CompTIA. (2023). CompTIA Tech+ FC0-U71 V6 certification exam: Exam objectives (Document version 4.0). lecbyo.files.cmp.optimizely.com
- chnelson. (n.d.). Introduction to Memory. CITC 1321 course module (chnelson, Quarto Pub). chnelson.quarto.pub
- NVM Express. (n.d.). NVM Express® Base Specification. nvmexpress.org
- NVM Express. (n.d.). Specifications. nvmexpress.org
- Microsoft Learn. (n.d.). File and Storage Services Overview. learn.microsoft.com
- Microsoft Learn. (n.d.). Network File System (NFS) Overview in Windows Server. learn.microsoft.com
- Microsoft Learn. (n.d.). Introduction to Azure Storage. learn.microsoft.com
- Key terms
- Volatile storage
- Storage that loses its contents when power is removed. RAM is the standard example: unsaved work held in it disappears in a power cut.
- Non-volatile storage
- Storage that keeps its data without power, such as ROM, hard drives, solid-state drives, optical discs and flash drives.
- Read-only memory (ROM)
- A non-volatile chip on the motherboard that holds firmware such as BIOS or UEFI. Today it is usually rewritable flash that the computer normally only reads.
- Hard disk drive (HDD)
- A storage drive that records data magnetically on spinning platters read by a moving head. It offers cheap capacity but is slower and sensitive to shock.
- Solid-state drive (SSD)
- A storage drive that keeps data in NAND flash memory with no moving parts. It is fast and shock resistant, but its flash cells wear with writes.
- NVMe (Non-volatile Memory Express)
- A standard protocol for connecting SSDs, in PCs over the PCIe bus. It has lower latency than SATA and is often found in M.2-shaped drives.
- Optical disc
- Removable storage such as a CD, DVD or Blu-ray Disc that a laser reads. ROM discs are pressed at the factory, R discs record once, and RW discs can be rewritten.
- Network-attached storage (NAS)
- An appliance with its own drives and a simplified operating system that shares files with computers on the local network using protocols such as SMB and NFS.
- File server
- A general-purpose server computer with a file-sharing role. It gives users one central, managed place on the network to store and share files.
- Cloud storage service
- A service that stores files on drives in a provider's data centers and makes them reachable over the internet from any device, usually by subscription.
Setting Up Peripherals: Printers, Scanners, Monitors and Drivers
- Explain what a device driver does, how Plug and Play matches a device to a driver, and when you must install a driver yourself.
- Follow one repeatable procedure to install and configure keyboards, mice, webcams, headsets, printers, scanners, external drives and displays, including the other required steps after the driver loads.
- Find an IP-based peripheral on the network, open its web-based configuration page, and secure it by replacing default credentials and updating firmware from a trusted source.
- Decide which devices belong on a UPS's battery outlets, check the load against the watt rating, and connect the UPS so the computer can shut down cleanly.
One desk, nine cartons, fifty minutes before the new hire arrives
This lesson follows one fictional example from start to finish. It is 8:40 on a Monday in a small accounting office, and a new employee starts at 9:30. On her desk are a laptop and nine cartons: a keyboard, a mouse, a webcam, a headset, a 27-inch monitor, a laser printer that the whole office will share, a flatbed scanner, a 2 TB external drive for backups and an uninterruptible power supply. Some of these will work as soon as you plug them in. Others need a driver, a web browser, a password change or some quick arithmetic before they are safe to use.
The skill is knowing which kind of device is in each box, and what to do next when the easy path fails. The exam tests the same skill. It describes a situation and asks for the right next step.
Exam objectives: CompTIA Tech+ FC0-U71 objective 2.4, in domain 2.0 Infrastructure: given a scenario, install and configure common peripheral devices.[1] The objective lists these devices: printers, scanners, keyboards, mice, web cameras, external drives, speakers and headsets, displays (smart TVs, projectors and monitors) and the uninterruptable power supply. It lists these installation types: Plug-n-play vs. driver installation, other required steps, IP-based peripherals (devices reached by their own Internet Protocol, or IP, address) and web-based configuration steps.
A peripheral device is hardware outside the computer's core parts that adds input, output or storage. In Lesson 1's terms, keyboards, mice, webcams and scanners are input devices. Monitors, projectors, speakers and printers are output devices. An external drive is storage, and a headset handles both input and output. The operating system (OS) has to be able to work with each of these devices before it is any use, and the software that makes that possible is the driver.
What a device driver is, and how Plug and Play finds one
A device driver is a small program that lets the OS control one particular kind of hardware. The OS knows how to make general requests, such as "print this page" or "send the next frame from the camera". The driver turns each request into the exact commands one model understands, and turns the device's replies back into something the OS can use. Without a matching driver, the OS can tell that something is plugged in but cannot use it.
How does the OS pick the right driver? Every device carries an identifier set by its manufacturer, called a hardware ID, and reports it when you connect it. The OS then searches its stored drivers for one that matches. Each model is supposed to have its own ID. Microsoft calls it an error in hardware design when a vendor gives the same hardware ID to two different devices.[2] Microsoft's developer documentation has a whole section on how devices and drivers are installed in Windows.[3] The Windows component in charge is the Plug and Play manager, which handles these events for every type of device, not just printers.[2]
Plug and Play (PnP, written "Plug-n-play" in the objectives) means the OS detects the device, matches it and sets it up, and all you do is connect it. This works because Windows ships with a large library of built-in, or "in-box", drivers. Microsoft notes that because of this library, the user normally does not need the original installation media to install a driver.[2] That is why you can usually leave the driver disc in the carton.
The driver also has to pass two checks. The first is that it should be digitally signed. A digital signature is a cryptographic stamp that shows who published the driver and proves nobody has altered it since. When a matching driver signed by Microsoft is available, Plug and Play verifies the signature and installs the driver without asking you anything.[2] The second check decides whether you get involved at all. Windows switches to an installation that involves the user when the driver is not on the system, is not signed, or needs the user to answer questions during setup.[2] That switch is the moment you see an "Unknown device" entry or a prompt asking you to find a driver.
So why does a keyboard almost never need a download, when some printers do? Many types of device follow one published standard for their whole category. Keyboards and mice follow the Universal Serial Bus (USB) human interface device class. External disks follow the USB mass storage class, and most webcams follow the USB video class. The OS includes one class driver for each of these classes, so any device that follows the standard works with it. Printers are different, because they have model-specific features such as extra trays, two-sided printing or stapling. A generic driver may print, but it may not know those features exist.
| Question | Plug and Play | Driver installation |
|---|---|---|
| Who finds the driver? | The OS, from its built-in library or update service | You, from the manufacturer's support site |
| Typical devices | Keyboards, mice, webcams, headsets, external drives, many printers | Newer or specialized printers, feature-rich scanners |
| Signs you are on this path | A brief "setting up" notice, then the device works | An unknown device, a missing feature, or a prompt to choose a driver |
| Main risk | A generic driver works but hides features | A driver taken from an untrustworthy site |
Key idea: Plug and Play does not mean "no driver". It means the OS found a signed, matching driver and installed it for you. You install a driver yourself when that automatic match fails, or when the driver it found leaves out features you need.
The installation procedure, worked on four USB devices
A careful technician installs every peripheral in the same order. The steps marked "other required steps" are what the objective means by that phrase: the work that is left after the driver loads.
- Check compatibility. Make sure the device supports your OS and that you have the right port or network connection. Lesson 9 covers ports.
- Read the quick-start sheet. A few manufacturers want you to run their installer before you connect the cable, so their driver is used instead of a generic one.
- Prepare the hardware (other required step). Remove shipping tape and locks, fit consumables and load media. Apple's printer guide, for example, tells you to follow your printer's instructions to unpack it, install ink or toner and add paper before you add it to the Mac.[4]
- Connect and power on, using a cable, wireless pairing or the network.
- Let Plug and Play finish, or install the manufacturer's driver.
- Verify that the device shows no errors in Device Manager or Settings in Windows, or in System Settings on a Mac.
- Configure (other required step). Set the default device, the resolution or keyboard layout, privacy permissions, firmware and passwords.
- Test the real task, then record it. Write down the model, driver version, IP address and any password you set, and keep the record somewhere safe.
Back at the fictional desk, you plug in the four small USB devices one at a time. Afterwards the Windows device list might look like this (example values):
| Device | Category shown | Status | Driver source |
|---|---|---|---|
| USB keyboard | Keyboards | Working properly | In-box class driver |
| USB mouse | Mice and other pointing devices | Working properly | In-box class driver |
| HD webcam | Cameras | Working properly | In-box class driver |
| USB headset | Audio inputs and outputs | Working properly | In-box class driver |
All four devices went the Plug and Play route, so the driver step is finished. What remains for each of them is configuration.
- Keyboard and mouse. Wired models work straight away. Wireless models come in two kinds. Some use a small USB receiver that the factory has already paired with the device. Others use Bluetooth: hold the pairing button until a light blinks, then add the device under Settings, Bluetooth & devices in Windows, or System Settings, Bluetooth on a Mac. After that, check the keyboard layout and the pointer speed. A UK keyboard set up as US English types the wrong symbol when you press the @ key. For a left-handed user, swap the mouse buttons.
- Webcam. The camera works, but apps may not have permission to use it. Windows (Settings, Privacy & security, Camera) and macOS (System Settings, Privacy & Security, Camera) both let you choose which apps may use it. In the meeting app, select the new camera, because a laptop may keep using its built-in one.
- Headset and speakers. The most common audio fault is that the new device works but the OS or the app is still using a different one. The laptop now has two outputs and two inputs. Choose the headset in the OS sound settings (Settings, System, Sound in Windows), then choose it again inside the meeting app, which often keeps its own setting. The microphone needs the same privacy permission as the camera. The connection type matters too. An analog 3.5 mm jack needs no driver, USB uses a class driver, and Bluetooth needs pairing first.
Then test with a short call. Your colleague should hear the headset microphone rather than the laptop's, and should see the picture from the webcam. Steps 3, 7 and 8 are the ones people skip. A printer with shipping tape still inside the cartridge bay can have a perfect driver and still jam.
The same printer twice, with one changed input
Printers are where the driver step can go two different ways. Run the same procedure twice with one input changed, and the outcome changes.
Run A: the model is in the OS's driver library. You connect the laser printer to the laptop by USB to test it. Windows reads its hardware ID, finds a matching signed in-box driver and creates a print queue, the list where Windows holds jobs waiting for that printer. Microsoft notes that when a new Plug and Play device is connected while the machine starts up, it is usually installed and ready to use by the time the user logs on.[2] You set the printer as the default, print a test page and move on.
Run B: the model is newer than the driver library. This printer is from the same family but came out last spring, and its hardware ID matches no in-box driver. Windows does one of three things. It shows an unknown device, it asks you to choose a driver, or it installs a basic driver that prints but offers no second tray and no two-sided printing. The fix is the driver package from the manufacturer's own support site, chosen for your exact model and OS version.
Why insist on the manufacturer? A driver runs inside the core of the OS. CISA and the NSA report that attackers deliberately load vulnerable drivers and then exploit their known flaws to run code in the kernel, the most privileged part of the OS.[5] Their advisory is about what an attacker can do with a flawed driver. It does not discuss where people download drivers. The download advice that follows is this lesson's own reasoning. Every driver gets that level of access, so take drivers only from the device's maker or from the OS's own update service. Avoid third-party "driver update" sites, because you cannot tell where their files came from.
Apple documents the same two branches on a Mac. To use any printer, you first add it to the printer list in Printers & Scanners settings.[4] When you add one, macOS connects to it using AirPrint, Apple's driverless printing technology.[4] Apple says AirPrint lets you print without installing an app, extra drivers or other software that could compromise your privacy.[4] That is Run A. For a printer that does not support AirPrint, Apple says to install the latest software that came with the printer or from the manufacturer.[4] That is Run B. There is also a middle path: generic PostScript or Printer Command Language (PCL) software, chosen to match your type of printer.[4] Both are widely supported printer languages. Apple warns that printers connected with generic protocols like these may offer limited features.[4] On every OS, a generic driver gives up features in exchange for working with more printers.
Whichever run you are on, finish the other required steps. macOS can usually detect a printer's accessories, such as extra paper trays, extra memory or a duplex unit, which prints on both sides of the page. If it cannot detect them, it asks you to specify them.[4] If the duplex unit is not recorded, two-sided printing stays greyed out even though the hardware is there.
The last trap is a printer that appears twice. Say someone already added the printer by hand and Windows later detects it again. The printer installer compares the driver and port names of the printers already installed. If both match, it reuses the existing queue, which stops a second queue being created for the same device.[2] Here, a port just means the route Windows uses to send jobs, either a USB socket or a network address. Because the check needs both names to match, a printer added once over USB and once over the network ends up with two queues. Jobs then go to whichever one the user happens to pick. Delete the queue you will not use.
Key idea: the procedure stays the same and only the driver step branches. If the model is in the OS's library or supports a driverless standard, Plug and Play finishes the job. If not, install the manufacturer's driver from the manufacturer, then check the features, the default printer and a test page.
Image scanners: setup is mostly about where scans go
An image scanner turns paper into image files. A flatbed scanner has a glass plate for single pages or books. An automatic document feeder pulls a stack of pages through one at a time. Many office printers are multifunction devices with a scanner built in, so one installation covers both jobs.
Operating systems treat scanners as close relatives of printers. On a Mac, they share a settings pane, and the button there says Add Printer, Scanner, or Fax.[4] Windows lists both under Settings, Bluetooth & devices, Printers & scanners. A scanner still needs a driver. If the built-in driver offers only basic scanning, the manufacturer's software adds features such as text recognition, combining several pages into one document, or one-button scanning.
The other required steps decide where scans end up. To test, make a real scan and open it from wherever it was saved. Networked scanners can also scan to email or to a shared folder, which means the device has to sign in to an email server or a file share. CISA and the NSA warn that printers and scanners sometimes have privileged domain accounts loaded on them to make scan-to-folder and scan-to-email easy. An attacker who gets into the device can then use those accounts to move deeper into the network.[5] Give the scanner its own account, allowed to write only to its one scan folder, and never an administrator's account.
IP-based peripherals and web-based configuration
Three people need the office printer, so it cannot stay on a USB cable. An IP-based peripheral has its own network connection and its own IP address, so computers reach it across the network instead of through one machine. Network printers, multifunction scanners, smart TVs, IP cameras and casting devices are all examples.
This changes the installation in two ways. First, the device has to join the network before any computer can add it, either through an Ethernet cable or by joining Wi-Fi from its own control panel. Apple's guide says that if a printer is not on the network yet, you should follow the instructions that came with the printer to connect it.[4] Second, the device stores its own settings, separate from any computer's driver, and you reach those settings through a web browser.
Start by finding the device's address. Most network printers can print a configuration page from their control panel, and the router's list of connected devices shows the address too. Here is a fictional example of a configuration page:
NETWORK CONFIGURATION PAGE (fictional example)
Model ................ OfficeLaser 4200dn
Connection ........... Wired, 100 Mbps
IPv4 address ......... 192.168.1.57
Address source ....... DHCP
MAC address .......... 3C:2A:F4:3F:21:A9
Embedded web server .. Enabled
Admin password ....... Factory default
Telnet ............... Enabled
Firmware version ..... 2.14.0
Read the page the way a technician would. The address came from the Dynamic Host Configuration Protocol (DHCP), the router service that hands out addresses (Lesson 12). A DHCP address can change, for example after a power cut, and every computer that saved 192.168.1.57 would then lose the printer. So give it a fixed address, either a DHCP reservation on the router or a static address on the printer. The MAC (Media Access Control) address is the hardware address of the printer's network port. The embedded web server is switched on, so you can manage the printer from a browser. The most urgent line is the admin password, which is still the factory default.
Work through the web-based configuration steps in this order:
- On a computer on the same network, type the device's address into the browser, for example
https://192.168.1.57. Use https whenever the device offers it. Over plain http, the admin password you are about to type travels across the network unencrypted, and anyone capturing traffic there can read it. The browser may warn you about the device's self-made certificate. Continue past that warning only after you have checked that the address matches the printed configuration page. - Sign in with the default administrator credentials from the label or manual.
- Change the administrator password straight away to a long, unique one, and store it in the office password manager (Lesson 30).
- Set the host name and the fixed or reserved address, plus the Wi-Fi details if the device is wireless.
- Update the firmware, using only the manufacturer's site or the device's own update feature.
- Turn off services nobody will use, such as Telnet or old file-transfer printing.
- Set up the features you do need: scan destinations, the email server and energy-saving timers.
Why does step 3 come so early? CISA and the NSA put default credentials on their list of the ten most common misconfigurations. They name printers, scanners, security cameras, conference-room audiovisual equipment, voice over Internet Protocol (VoIP) phones and Internet of Things (IoT) devices as places where default credentials commonly survive.[5] Their advice is to change or disable vendor-supplied default usernames and passwords when you install the equipment, not later.[5] Step 6 matters because manufacturers ship network devices with exploitable services switched on to make installation and maintenance easier.[6] For step 5, CISA's guidance is to download software, updates and patches only from validated sources.[6]
The last step is to add the printer on each computer. In Windows, open Settings, Bluetooth & devices, Printers & scanners and choose Add device. Windows searches the network and lists the printers it finds, and you pick yours. If the printer does not appear, choose the option to add it manually, then choose to add a printer by IP address or hostname and type 192.168.1.57. Windows creates a Standard TCP/IP Port for the printer. TCP/IP stands for Transmission Control Protocol/Internet Protocol, the rules networks use to carry data. Here the port is just the queue's route to the printer, a network address instead of a USB socket. On a Mac, the printer appears in the Add Printer list. Print a test page from every computer.
In managed offices, a Mac sometimes needs a configuration profile before it can find a network printer. Apple notes that some network printers require one so the printer can be discovered on the network through AirPrint.[4] The network administrator supplies the profile. It is a setup file installed on the computer, not a driver.
Key idea: an IP-based peripheral is a small computer on your network. Before anyone relies on it, join it to the network, browse to its address over https, replace the default password, give it a fixed address, update its firmware from the maker and turn off services you do not use.
Displays: computer monitor, video projector and smart TV
Displays rarely need a driver download. The graphics driver already on the computer does the work, and the display tells the computer which resolutions it supports as soon as the cable is connected. What displays do need is configuration, and each type has a classic fault.
| Item | Computer monitor | Video projector | Smart TV |
|---|---|---|---|
| Usual connection | High-definition Multimedia Interface (HDMI), DisplayPort or USB-C cable | HDMI cable, sometimes a wireless adapter | HDMI cable, or casting over Wi-Fi |
| Signature setting | Native resolution and refresh rate | Focus and keystone correction | Picture size (overscan) |
| Classic fault | Fuzzy text at a non-native resolution | Image shaped like a trapezoid | Edges of the desktop cut off |
| On the network? | No | Some models | Yes, so it needs updates and account security |
Computer monitor. Connect the cable and power, then choose the right input on the monitor's own menu. A monitor set to HDMI 1 shows "No signal" if the cable is plugged into HDMI 2. Then check three things in the OS display settings (Settings, System, Display in Windows, or System Settings, Displays on a Mac). First, the resolution should be the panel's native resolution, the fixed grid of pixels it was built with. Any other resolution stretches the image and makes text look soft. Second, the refresh rate, the number of times per second the picture is redrawn, should be the highest that the monitor and cable support. Third, choose the display mode. Duplicate shows the same image on both screens, which suits presenting. Extend makes one wide desktop that you can drag windows across, which suits everyday work. In Windows, the Windows logo key plus P switches between modes. Also drag the screen icons in the settings so they match how the screens sit on the desk. Otherwise the mouse leaves one screen and appears on the other from the wrong side.
Video projector. Place the projector at the distance its manual gives for the screen size you want. Turn the focus ring until text is sharp. If the projector points up or down at an angle, the image becomes a trapezoid, and keystone correction squares it up again. Presenters usually choose Duplicate so that they see what the room sees. Lamp projectors need time to cool down: switch off with the remote and let the fan finish before you pull the plug.
Smart TV. A smart TV is two things at once. As a display it takes HDMI, and its classic fault is overscan: the TV enlarges the picture slightly and crops the edges, which hides the taskbar. Fix overscan in the TV's picture size setting, whose name varies by maker ("screen fit" is one), or with the scaling option in the graphics settings. It is also a networked computer that joins Wi-Fi, accepts casting from phones and laptops, signs in to streaming accounts and installs updates. That makes it an IP-based peripheral with the same jobs as the printer: keep it updated and protect its accounts.
External drives: check the format, eject before unplugging
An external hard disk drive (HDD) or solid-state drive (SSD) in a case (Lesson 7) uses the USB mass storage class driver, so it is Plug and Play. Its other required steps concern the file system, the way data is organized on the disk.
- Check the format. NTFS (New Technology File System) is the Windows default. macOS can read NTFS but cannot write to it without extra software. APFS (Apple File System) is the modern Mac format, and Windows cannot read it without extra software. exFAT (Extended File Allocation Table) can be read and written on both, so it suits a drive that moves between a PC and a Mac. Formatting erases the drive, so do it before any data goes on, and give the volume a clear name such as BACKUP-2TB.
- Eject before unplugging. The OS may still be writing data after a copy looks finished. Use Eject in File Explorer or Finder, then wait for the message that it is safe to remove the drive. If you pull the cable during a write, you can corrupt the file or the whole file system.
- Test. Copy a file over, eject the drive, reconnect it and open the file. Lesson 26 turns this drive into a backup that actually restores.
The uninterruptible power supply: install it first, then do the arithmetic
The exam spells it "uninterruptable", but the usual spelling is uninterruptible power supply (UPS). A UPS is a box with a battery that keeps equipment running through short outages and voltage dips, long enough to save work and shut down cleanly. Most also filter out power surges. Install it first, because everything else plugs into it.
A desktop UPS usually has two labeled groups of outlets. Battery and surge outlets keep their power during an outage. Surge only outlets are protected from spikes but go dark when the power fails. A sensible rule for deciding what goes where: put on battery only the devices you need in order to save work and shut down. Then check the load. A UPS has two ratings, volt-amperes (VA) and watts (W). Add up the watts of everything on the battery outlets, using each device's label or power adapter. Compare the total with the watt rating, not the larger VA number, and leave some headroom.
Run A uses a fictional UPS rated 600 VA / 330 W. The battery outlets hold the laptop adapter (65 W), the monitor (35 W) and the external drive (12 W). The total is 65 + 35 + 12 = 112 W, and 112 / 330 is about 0.34, so the load is about 34 percent of the rating. That leaves plenty of headroom, and the runtime chart in the manual tells you how many minutes it will last.
Run B changes one input: someone plugs the laser printer into a battery outlet. A laser printer heats its fuser, the part that bonds toner to paper, and draws a large burst of power while it does. Suppose the label gives 900 W while warming up. The battery-side load jumps to 1,012 W, about three times the rating. The UPS sounds an overload alarm and may cut power to its outlets. The laptop keeps running on its own battery, but the monitor and the external drive lose power, possibly in the middle of a backup. Nobody needs to print during a five-minute outage, so the laser printer belongs on a surge-only outlet.
- Connect the internal battery if the unit ships with it disconnected, as many do. The manual shows how.
- Plug the UPS straight into a wall outlet, not into a power strip or another surge protector, and let it charge for the time the manual gives.
- Connect the USB data cable. With it, the OS or the maker's software treats the UPS as a battery and can save work and shut the computer down when the charge runs low. Without it, the UPS simply runs until it is empty, and the computer loses power anyway.
- Run the self-test, and replace the battery when the unit warns you, because UPS batteries wear out.
Do not confuse a UPS with a surge protector, which only blocks spikes and gives no power at all during an outage. If a question mentions keeping equipment running through a blackout or shutting down cleanly, the answer is a UPS.
Reading the exam's scenarios
Objective 2.4 starts with "Given a scenario", so exam questions describe a symptom or a goal. The table below lists the cue words, what they point to, and the answer people most often confuse with it.
| Words in the question | Points to | Easily confused with |
|---|---|---|
| Works as soon as it is connected, no download | Plug and Play with an in-box or class driver | Driver installation |
| Unknown device; features missing | The manufacturer's driver from its own site | Reinstalling the OS |
| Change the printer's own password or scan destination | Browse to its IP address (web-based configuration) | Driver properties on one PC |
| First security step for a new networked device | Change the default credentials | Covering the password label |
| Wants to drag windows onto the second screen | Switch from Duplicate to Extend | Changing the resolution |
| Blurry text on a new monitor | Set the native resolution | Raising the refresh rate |
| Projected image is a trapezoid | Keystone correction | Overscan, a TV setting |
| Desktop edges cut off on a TV | Overscan or picture size setting | Keystone correction |
| Callers hear the wrong microphone | Choose the input device in the OS and in the app | Reinstalling the headset driver |
| Drive must move between Windows and Mac | Format as exFAT | NTFS, which a Mac only reads |
| Keep running through an outage; shut down cleanly | UPS with its USB data cable connected | Surge protector |
CompTIA's next certification goes much further into hardware installation, including printer types and maintenance. Atlas teaches it in CS 105, A+ Certification Prep.
Common misconceptions
- "Plug and Play devices do not use drivers." They do. The OS finds a signed, matching driver, often a class driver, and installs it without asking you. If that driver is missing, the same device suddenly needs a manual installation.
- "If it prints, the setup is finished." A generic driver can print while hiding two-sided printing or extra trays, and the default admin password may still be in place. Configuration and testing are part of the installation.
- "The disc in the box is the safest driver." The disc is often older than your OS. The manufacturer's support site, or the OS's own update service, has the current signed version.
- "A printer or scanner is too simple to be a security risk." Networked printers and scanners often keep factory passwords and stored accounts for scan to email. An attacker can use either to get into the wider network.
- "Any UPS outlet will do." Only the battery outlets stay on during an outage, and a laser printer on one of them can overload the unit. Without its data cable, the UPS cannot tell the computer to shut down.
What you now know
- A device driver translates the OS's general requests into one device's commands. Plug and Play matches the device's hardware ID to a signed driver already on the system and installs it without your input.
- Windows involves the user when the driver is missing, unsigned or needs answers during setup. The usual fix is the manufacturer's driver, downloaded from the manufacturer.
- Keyboards, mice, webcams, headsets and external drives use class drivers. Their other required steps are pairing, keyboard layout, privacy permissions and choosing the default input and output devices in both the OS and the app.
- On a Mac, you add printers in Printers & Scanners, and AirPrint needs no extra driver. Generic PostScript or PCL drivers work but may offer only limited features.
- An IP-based peripheral has its own IP address. Configure it by browsing to that address over https, change the default credentials, give it a fixed address, update its firmware from the maker and turn off services you do not need.
- In Windows, you add a network printer through Printers & scanners, Add device, or by its IP address. Windows then sends jobs to it through a TCP/IP port.
- Monitors need the native resolution and the correct input. Projectors need focus and keystone correction. Smart TVs need overscan fixed and their network side secured. Duplicate mirrors the screen, and Extend adds desktop space.
- Eject an external drive before you unplug it. Use exFAT when the drive must work on both Windows and macOS.
- Put only the devices needed to save work and shut down on a UPS's battery outlets, and keep their total watts within the watt rating. Keep laser printers on surge-only outlets, and connect the USB data cable.
Sources
- CompTIA. (2023). CompTIA Tech+ FC0-U71 V6 certification exam: Exam objectives (Document version 4.0). lecbyo.files.cmp.optimizely.com
- Microsoft Learn. (n.d.). Printer Installation and the Plug and Play Manager. learn.microsoft.com
- Microsoft Learn. (n.d.). Overview of Device Installation. learn.microsoft.com
- Apple Support. (n.d.). Add a printer on Mac. support.apple.com
- CISA. (2023). NSA and CISA Red and Blue Teams Share Top Ten Cybersecurity Misconfigurations. cisa.gov
- CISA. (n.d.). Securing Network Infrastructure Devices. cisa.gov
- Key terms
- Peripheral device
- Hardware outside a computer's core components that adds input, output or storage, such as a keyboard, printer, monitor or external drive.
- Device driver
- Software that lets an operating system control a specific piece of hardware by translating general requests into that device's own commands.
- Plug and Play
- Automatic detection and setup of a newly connected device: the operating system matches the device's hardware ID to a suitable signed driver and installs it without user action.
- Hardware ID
- An identifier a manufacturer builds into a device model, which the device reports when connected so the operating system can find a matching driver.
- Class driver
- A single driver supplied with the operating system that works with any device following a published standard for its type, such as USB keyboards, mass storage drives or webcams.
- IP-based peripheral
- A peripheral, such as a network printer, IP camera or smart TV, that connects to the network with its own IP address instead of attaching to one computer by cable.
- Web-based configuration
- Managing a networked device's own settings by entering its IP address in a web browser and signing in to the configuration pages the device hosts.
- Default credentials
- The factory-set username and password a device ships with, often published in manuals, which should be changed or disabled when the device is installed.
- Native resolution
- The fixed number of pixels a flat-panel display is built with; setting the computer to this resolution gives the sharpest image.
- Uninterruptible power supply (UPS)
- A battery-backed power unit, spelled uninterruptable in the exam objectives, that keeps equipment running through short outages and can signal a computer to shut down cleanly.
Ports and Wireless Links: USB, HDMI, Bluetooth, NFC and More
- Identify USB-A, USB-B, USB-C, Thunderbolt and Lightning by shape and by signal, and choose a cable or adapter that will actually work.
- Compare VGA, DVI, HDMI, DisplayPort and USB-C video, and choose between mirroring, extending and casting for a given task.
- Contrast Bluetooth, NFC, 802.11 Wi-Fi and RF peripherals by range, power and typical use.
- Describe RJ45 and SFP connectors, and use crimping steps and cable tester output to find and fix a cable fault.
A USB-C laptop meets a projector from 2011
Here is a fictional but ordinary Monday. At 8:50 a.m. Dana carries a new thin laptop into a meeting room for a 9:00 presentation. The laptop has two USB-C ports (USB stands for Universal Serial Bus), a headphone jack and nothing else. The ceiling projector, installed in 2011, has one video input: a blue socket with 15 holes in three rows. Dana's wireless mouse needs a thumbnail-sized receiver with a USB-A plug, and no port on the laptop accepts it. Her headset uses Bluetooth. Visitors sign in by tapping a badge on a reader by the door. And the network cable at her desk has a snapped plastic clip, so it falls out of the wall socket whenever someone bumps it.
Each snag is a question about an interface. An interface is the agreed way two devices connect: the plug shape, the wiring or radio method, and the rules for the signals that carry data or power. This lesson works through Dana's morning one problem at a time. By the end you should be able to look at a port, a plug or a wireless feature and say what it carries, roughly how far it reaches, and what to do when the two ends do not match.
Exam objectives: CompTIA Tech+ FC0-U71, objective 2.5: Compare and contrast common types of input/output device interfaces.[1] The objective sorts them into four groups: networking (wired connectors, wireless links, and the tools for building and checking cables), peripheral devices, display ports, and display technology.
Shape and signal: two questions for any port
Every interface has two layers. The connector is the physical shape of the plug and socket. The signal is what travels through the pins: USB data, a video picture, Ethernet network traffic, electrical power, or several of these at once. Most confusion with modern ports comes from mixing the two up.
Older ports usually had one shape for one job. A VGA socket only ever carried analog video. A USB-C socket is a shape that can carry several jobs, and two identical-looking USB-C ports on the same laptop may not do the same things. So ask two questions of any port. What shape is it? That tells you whether a plug will fit. What signal does it carry on this device? That tells you whether the device at the other end will understand what arrives. Adapters answer the first question far more easily than the second:
- Same signal, different shape: a passive adapter works. It is just wires that reroute pins. Dana's mouse receiver speaks USB, and so do her USB-C ports, so a small USB-C to USB-A adapter, or a hub with USB-A sockets, solves her first problem.
- Different signals: you need an active adapter, with a chip inside that converts one signal into the other, for example digital video into analog video.
- No signal at the port: no adapter helps. A USB-C port built for data only cannot be made to output video by plugging something into it.
The point: judge every port by its shape and by its signal. A plug that fits proves nothing about whether the two devices will understand each other.
USB-A, USB-B and USB-C: one bus, three shapes
In Universal Serial Bus, serial means the bits travel one after another down a wire pair. Bus means one shared system that many kinds of device can use: keyboards, drives, phones, printers, cameras. The exam names three connector shapes.
| Connector | What it looks like | Usual end | Reversible? | Typical use |
|---|---|---|---|---|
| USB-A | Flat rectangle | Host: computers, chargers, hubs | No | Flash drives, mouse receivers, the computer end of older cables |
| USB-B | Squarish, top corners cut off; Mini-B and Micro-B are smaller versions | Device | No | Printers and scanners; Micro-B on older phones and cameras |
| USB-C | Small rounded oval | Either end | Yes | Phones, laptops, tablets, docks, monitors |
Why did USB start with two shapes? Every USB link has a host, normally the computer, which runs the conversation, and a device, which answers. Giving the host end one shape (A) and the device end another (B) made it physically impossible to plug two computers together by mistake. USB-C drops that rule. Both ends share one shape, and the two devices agree between themselves which one is the host and which one supplies power. That is why one USB-C cable can charge a phone from a laptop, or a laptop from a power bank.
The shape does not set the speed. The USB version built into the port and the cable does, from USB 2.0 through the USB 3 family to USB4. A USB-A port can be fast USB 3 (makers often color its plastic tongue blue to show this), and a USB-C port can be slow USB 2.0. Cables vary too. Some USB-C cables carry only charging power, or carry data only at USB 2.0 speed, yet they fit exactly like a cable that can run a 4K monitor.
Thunderbolt and the Lightning connector
Thunderbolt is a high-speed interface developed by Intel with Apple. Its first two versions used the Mini DisplayPort connector shape. From Thunderbolt 3 onward it uses the USB-C shape, and you spot it by a small lightning-bolt icon beside the port. One Thunderbolt cable carries several signals at once: fast data (including PCIe, Peripheral Component Interconnect Express, the signal that expansion cards use inside a computer), DisplayPort video and power. That is what lets one cable feed a docking station that runs two monitors, wired networking, external drives and charging. Thunderbolt devices can also be daisy-chained, one plugged into the next.
A Thunderbolt 3 or later port also works as an ordinary USB-C port, so a USB-C flash drive is fine in it. The reverse is not guaranteed. A Thunderbolt dock or fast drive enclosure may not work in a plain USB-C port at all, or may lose features.
The Lightning connector is Apple's proprietary plug: small, flat and reversible, with eight contacts, used on iPhones, iPads, AirPods cases and some Apple keyboards and mice. Proprietary means one company owns and controls it, unlike USB, which is an open industry standard. The other end of a Lightning cable is usually USB-A or USB-C. Apple has been moving to USB-C, on the iPhone starting with the iPhone 15, so you will meet both kinds of cable for years.
The point: a lightning-bolt icon beside a USB-C shaped laptop port means Thunderbolt, a fast interface for docks and drives. Lightning is a different, Apple-only plug for phones and accessories, and it does not fit a USB-C socket.
Display ports from VGA to DisplayPort and USB-C
Display interfaces carry a picture from a computer's graphics hardware to a screen. The exam lists five, and the biggest dividing line between them is analog versus digital. An analog signal represents the picture as smoothly varying voltages: brighter red means a higher voltage on the red wire. The screen measures those voltages and rebuilds the image. Long cables and electromagnetic interference (EMI, electrical noise from motors, power cables and other equipment) bend the voltages, so an analog picture degrades gradually: it goes soft, smeared or ghosted. A digital signal sends the picture as numbers made of 1s and 0s. The screen either reads them correctly and shows a perfect picture, or reads them badly and shows sparkles, flicker or nothing.
| Interface | Signal | Audio too? | How to recognize it | Where you meet it |
|---|---|---|---|---|
| Video Graphics Array (VGA) | Analog | No | D-shaped socket, 15 holes in three rows, usually blue, thumbscrews | Older projectors and monitors, server consoles |
| Digital Visual Interface (DVI) | Digital (DVI-D), analog (DVI-A) or both (DVI-I) | Normally no | Wide, usually white socket with a grid of pins and a flat blade at one side | Older monitors and graphics cards |
| High-Definition Multimedia Interface (HDMI) | Digital | Yes | Flat plug, wider at the top than the bottom; Mini and Micro versions exist | TVs, game consoles, projectors, many laptops |
| DisplayPort | Digital | Yes | Rectangle with one corner cut off; full-size plugs often latch | PC monitors, desktop graphics cards |
| USB-C video | Digital: DisplayPort video carried inside USB-C, or Thunderbolt | Yes | USB-C socket, often with a DisplayPort logo or a lightning bolt | Thin laptops, tablets, USB-C monitors |
The objectives print HDMI as High Definition Media Interface. The industry name, used in the exam's own acronym list, is High-Definition Multimedia Interface. Both mean the same thing.
Two details explain many support calls. First, sound: VGA carries none, and DVI normally carries none either, so a laptop connected over VGA or DVI needs a separate audio cable, or the sound stays in its own speakers. HDMI and DisplayPort carry picture and sound together. Second, adapters. DVI-D and HDMI use compatible digital video, so a passive DVI-D to HDMI adapter works for the picture. DVI-I includes analog pins, so a passive DVI-I to VGA adapter also works. But between VGA and a digital-only port, such as DVI-D, HDMI or DisplayPort, the signal must cross from analog to digital, and that always takes an active converter.
DisplayPort has one everyday extra: on monitors that support it, you can chain one monitor to the next and run two or more screens from a single port on the computer.
Worked problem: Dana's slides on the 2011 projector
- What does the projector accept? A blue 15-hole socket: VGA, which is analog.
- What can the laptop send? Only USB-C. Look beside the ports. A DisplayPort logo or a lightning bolt means the port can output video; with no icon, check the maker's specification sheet. Say Dana's ports show the DisplayPort logo, so they send digital video.
- Do the signals match? No: digital out, analog in. A passive adapter cannot work. Dana needs an active USB-C to VGA adapter with a converter chip inside.
- What about sound? VGA carries none. A clip with audio plays through the laptop speakers, or through a separate cable to the room's speakers.
Now change one input. Over the weekend, facilities replaces the projector with an HDMI model. Both ends are now digital, so there is no analog conversion, and HDMI carries sound: one USB-C to HDMI cable or adapter does the whole job. Most such cables do contain a small chip that translates the DisplayPort signal into HDMI form, but it is built in, and you buy and use the cable as one ordinary item.
Change a different input instead. Suppose the laptop's USB-C ports were data-only, with no DisplayPort logo and nothing about video in the specification. Now no cable or adapter can help, because the video signal does not exist at the port. The options are another laptop, or a wireless method if the room supports one. Spotting this quickly saves you buying the wrong adapter.
The point: for display problems, find the signal at each end first. Same signal, different shape: a simple cable. Analog at one end and digital at the other: an active converter. No video signal at the port: no adapter will help.
Screen mirroring, extending and casting
The display technology bullets are about what appears on a second screen, and where that picture comes from.
Screen mirroring shows the same image on two screens. Everything on the laptop or phone, including the pointer, open windows and pop-up notifications, appears on the TV or projector too. The source device draws every frame and sends it. Mirroring can be wired (an HDMI cable set to duplicate) or wireless, for example Miracast on Windows and many Android devices, or AirPlay screen mirroring on Apple devices. Wireless mirroring keeps the source busy the whole time: it drains the battery, it can lag a little, and it stops if the source locks or leaves range.
Casting works differently. The phone or laptop does not send the picture at all. It sends the receiver, such as a smart TV or a streaming stick, an instruction: play this video, from this point. The receiver then fetches the content from the internet itself, and the phone becomes a remote control. You can lock it, take a call or walk away, and the video keeps playing. Casting needs an app and a receiver that support it, normally on the same network.
On Windows, pressing the Windows logo key and P opens the wired choices:
| Option | What you see | Typical use |
|---|---|---|
| PC screen only | Laptop screen on, external screen off | Working alone |
| Duplicate | The same image on both (mirroring) | A trainer faces the class and sees what the class sees |
| Extend | One desktop spread across both, different content on each | Slides on the projector, speaker notes on the laptop |
| Second screen only | Laptop screen off, external screen on | A laptop closed on a dock |
Match the job to the method. Showing a class a phone's settings screen: mirroring, because the screen itself is the content. Starting a film on the lounge TV and leaving the room: casting, because the TV should do the work. Presenting slides while reading private notes: extend. And in a meeting, remember that a chat message popping up on a mirrored laptop pops up on the projector too.
Wired networking: the RJ45 connector
Dana's broken cable ends in an RJ45 plug. RJ means Registered Jack, an old telephone-industry naming system. The RJ45 is the clear plastic plug on an Ethernet cable, with eight gold contacts and a flexible clip that locks it in. Strictly it is an 8P8C connector (eight positions, eight contacts), but nearly everyone, including the exam, says RJ45. It plugs into a computer's network interface card (NIC), a wall socket, a switch or a router.
Do not confuse it with RJ11, the narrower telephone plug with fewer contacts. RJ11 connects landline phones and DSL (Digital Subscriber Line) modems to the phone line. An RJ11 plug will sit loosely in an RJ45 socket without working, which is a classic mistake.
Inside a typical Ethernet cable are eight thin copper wires, twisted into four color-coded pairs: orange, green, blue and brown, each with a white-striped partner. The twist is deliberate. Both wires of a pair pick up roughly the same noise, and the receiver, which reads the difference between the two, cancels that noise out. Twisting cuts both EMI and crosstalk (signal leaking from one pair into the next).
The eight wires must land on the eight pins in a set order. Most new installations use T568B:
| Pin | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
|---|---|---|---|---|---|---|---|---|
| Wire | White-orange | Orange | White-green | Blue | White-blue | Green | White-brown | Brown |
The other standard, T568A, swaps the orange and green pairs: white-green and green move to pins 1 and 2, and white-orange and orange move to pins 3 and 6. Using the same standard at both ends gives an ordinary straight-through cable. Getting the color order wrong is the most common beginner error.
Building and checking a cable: crimpers and cable testers
A crimping tool, usually just called a crimper, fixes an RJ45 plug onto a cable. Most have a blade for cutting, a notch for stripping the outer jacket, and a shaped jaw, the die, that matches the plug. To replace Dana's broken plug:
- Cut off the damaged plug and strip a short length of outer jacket, without nicking the inner wires.
- Untwist the pairs, straighten the wires and line them up in T568B order.
- Trim the ends straight and short, so the outer jacket will reach inside the back of the plug.
- Push the wires into a new plug until all eight copper tips reach the front, visible through the clear plastic.
- Squeeze the plug firmly in the die. The gold contacts are pressed down through each wire's insulation, and a plastic tab clamps the jacket so a tug cannot pull the wires loose.
- Test the cable before calling it finished.
A cable tester does that test. A basic one has a main unit at one end and a small remote unit at the other. The main unit sends a signal down each wire in turn and reports a wire map: which pin at one end connects to which pin at the other. It flags an open (a wire connected to nothing), a short (two wires touching) and crossed or miswired wires (wires landing on the wrong pins). Here is example output, made up for this lesson, from Dana's first attempt:
WIRE MAP Cable ID: DESK-14 (example output)
Main Remote Result
1 1 OK
2 2 OK
3 3 OK
4 - OPEN
5 5 OK
6 6 OK
7 8 CROSSED
8 7 CROSSED
RESULT: FAIL
Read it line by line. Pin 4 is OPEN: in T568B that is the blue wire, and it reaches nothing at the far end, most likely because it stopped short of the front of the plug and the contact missed it. Pins 7 and 8 are CROSSED: white-brown and brown were swapped while lining up the wires. Dana replaced only one plug and left the factory plug at the other end alone, so both faults are almost certainly in her new plug. A crimped plug cannot be reused, so she cuts it off, re-terminates the end carefully and tests again.
Now change one input. After the re-crimp, the tester shows all eight pins OK and RESULT: PASS, but the computer still reports no network connection. The tester has done its job: it has ruled the cable out. Following the troubleshooting method from Lesson 4, the next theory moves along the path: the wall socket, the switch port at the other end, or a network adapter disabled in the operating system. A pass means the copper between the two test units is wired correctly, not that the network works.
The point: a crimper attaches the RJ45 plug, and a cable tester proves the wire map. Opens, shorts and crossed wires point to a bad termination, and a pass sends you looking somewhere other than the cable.
Optical fiber and the SFP module
Copper Ethernet has practical length limits, and because it carries electricity it picks up interference. Between buildings, or between floors of a large office, networks often use optical fiber instead: thin strands of glass carrying the signal as pulses of light, which is immune to EMI and travels much farther.
The objective names this as the fiber connector small form-factor pluggable.[1] A Small Form-factor Pluggable (SFP) port is a slot, common on business switches, routers and some server network cards, that takes a small removable transceiver module (a combined transmitter and receiver). The module turns the switch's electrical signals into light and back, and the fiber patch cable plugs into the front of the module, usually with one strand to send and one to receive.
Why a slot plus a module, rather than fiber built into the switch? Flexibility. The same switch can take a module for short fiber runs, another for long runs between sites, or even a copper module with an RJ45 socket. Modules are hot-swappable: they can be pulled and inserted while the switch runs. Faster versions such as SFP+ follow the same idea. The catch is matching: both ends of a fiber link need modules for the same fiber type and light wavelength, or the link will not come up even though everything plugs in neatly. Atlas's Network+ course covers fiber and transceivers in depth.
Wireless links compared: Bluetooth, NFC and 802.11 Wi-Fi
| Technology | Typical range | Power needs | Typical job | How you connect |
|---|---|---|---|---|
| Bluetooth | About 1 m to 100 m, by device class | Low | Headsets, keyboards, speakers, watches, sensors | Pair once; it reconnects automatically |
| NFC | A few centimeters | Very low; many tags need no battery | Tap to pay, door badges, tap-to-open links | Hold the devices together |
| 802.11 Wi-Fi | A home or office floor around an access point, the box that broadcasts the network and links it to the wired network | Higher | Joining a network and the internet | Choose the network name, its Service Set Identifier (SSID), and enter the password |
How Bluetooth works
Bluetooth is short-range radio. It sends data in the 2.4 gigahertz (GHz) Industrial, Scientific, and Medical (ISM) band, over distances measured in meters.[2] It was developed in the late 1990s by a group of companies led by Ericsson and standardized by the IEEE (Institute of Electrical and Electronics Engineers) as 802.15.1.[2] Its original purpose explains its design: it was meant to replace the cables between portable personal devices.[2] That is why Bluetooth builds a personal area network (PAN), also called a wireless PAN (WPAN): a small network of your own devices around your body or desk.
The 2.4 GHz band is crowded, so Bluetooth keeps moving. Classic Bluetooth splits the band into 79 channels, each 1 megahertz (MHz) wide, and hops among them 1,600 times per second.[2] If one channel is noisy, the next hop is probably clear. The neighbors are noisy indeed: the same unlicensed spectrum is used by older 802.11b and g Wi-Fi, by microwave ovens and by ZigBee smart-home devices.[2] Every Bluetooth packet also carries a 32-bit access address, which lets a receiver quickly pick out real Bluetooth signals and discard the rest.[3] Even a phone's own mobile radio can interfere: the Long-term Evolution (LTE) radio used for 4G can work in bands right next to 2.4 GHz.[3] The Bluetooth SIG's advice to device makers includes filters between the radios and careful scheduling of radio time slots.[3] This is the mechanism behind a familiar complaint: a headset that crackles when the office microwave runs.
A classic Bluetooth network has one primary device and up to seven active secondary devices sharing the channel.[2] A phone connected to earbuds, a watch and a car is that arrangement. Range depends on transmit power, and devices fall into classes, from about 1 meter for Class 3 up to roughly 100 meters for Class 1.[2] Real range also shrinks with walls, bodies and other obstacles in the way.
There are two main flavors. Classic Bluetooth handles audio and file transfer, while Bluetooth Low Energy (BLE) is built for sensors and Internet of Things (IoT) devices that value battery life over speed.[2] Under Bluetooth 5, BLE tops out at 2 megabits per second (Mbps).[2] That is plenty for a heart-rate strap or a door sensor, and far too little to replace Wi-Fi.
Connecting is called Bluetooth pairing. You put the accessory into pairing mode (often by holding a button until a light flashes), choose it on the phone or computer, and sometimes confirm a matching code on both screens. The devices store a shared key, so next time they reconnect on their own. Paired means they remember each other; connected means they are talking right now. A headset can be paired to a laptop yet connected to a phone, which explains many calls that begin with my headset won't work.
How NFC works
Near-field communication (NFC) is very short-range radio, typically needing 4 cm or less before a connection starts.[4] That tiny range is a feature. A tap is a deliberate act, so a payment or a door unlock happens only when you mean it, and someone across the room cannot easily join in. Many NFC tags, the stickers and cards with a chip and antenna inside, need no battery: they draw power from the reader when it comes close.[5] That is why a transit card in a wallet works for years.
A phone with NFC plays two roles. In reader/writer mode, it reads and writes passive tags and stickers, such as a sticker beside a museum exhibit that opens a web page.[4] In card emulation mode, the phone acts as an NFC card itself, so a shop's payment terminal reads it like a contactless bank card.[4] NFC is also compatible with the huge number of contactless cards and readers already in use worldwide, which is why the same terminal takes a card or a phone.[5] NFC can also start a Bluetooth pairing: tap the earbuds case to the phone, NFC passes the details, and Bluetooth then carries the audio.
802.11 Wi-Fi generations and bands
The objective writes 802.11X. The X is a placeholder for the letters of the IEEE 802.11 family, the standards behind Wi-Fi and the wireless local area network (WLAN). Do not confuse it with 802.1X (no second 1 after 802), a separate standard for checking who may join a network. The Wi-Fi Alliance now gives generations simple numbers, so learn both names:
| Generation name | IEEE standard | Radio bands |
|---|---|---|
| Older, unnumbered | 802.11b and g; 802.11a | 2.4 GHz; 5 GHz |
| Wi-Fi 4 | 802.11n | 2.4 GHz and 5 GHz |
| Wi-Fi 5 | 802.11ac | 5 GHz |
| Wi-Fi 6 and 6E | 802.11ax | 2.4 GHz and 5 GHz; 6E adds 6 GHz |
| Wi-Fi 7 | 802.11be | 2.4 GHz, 5 GHz and 6 GHz |
The bands trade reach for speed. The Wi-Fi Alliance describes using 5 GHz or 6 GHz for higher throughput and 2.4 GHz for range.[6] Higher-frequency radio carries more data but fades faster through walls. Wi-Fi 7 adds multi-link operation, which lets a device combine channels across different bands at the same time.[6] Compared with Bluetooth, Wi-Fi uses more power, reaches farther and does a different job: it joins devices to a network and the internet, rather than linking one accessory to one phone. Later lessons in this course cover setting up home Wi-Fi and securing it.
The point: choose a wireless link by distance and job. A few centimeters and a deliberate tap: NFC. Accessories around one person: Bluetooth. Network access for a home or office: 802.11 Wi-Fi.
RF peripherals and the little USB receiver
The list also includes radio frequency (RF). Bluetooth and Wi-Fi are radio too, but an RF peripheral here means a wireless keyboard, mouse or presenter clicker that talks to its own small USB receiver, often called a dongle, rather than to the computer's built-in Bluetooth. Most use the 2.4 GHz band, which is why the box often says 2.4 GHz wireless.
Receiver and device are matched at the factory. Plug in the receiver, switch on the mouse, and it works with no pairing step. The computer sees the receiver as an ordinary USB keyboard or mouse, so an RF keyboard often works on startup and setup screens, before the operating system (OS) has loaded its Bluetooth software. The costs: the receiver takes up a USB port, and if it is lost, the mouse usually cannot talk to anything until you get a matching replacement from the maker. Sharing the 2.4 GHz band with Bluetooth does not make the two compatible. Do not confuse RF with infrared (IR), the invisible light used by most TV remotes, which needs a clear line of sight; RF passes through desks and cushions.
Exam cues: what the stem says, and where it points
| If the question mentions... | Think | Do not confuse with |
|---|---|---|
| Analog video, blue 15-pin socket, thumbscrews | VGA | DVI, usually digital and white |
| TV or console, picture and sound in one cable | HDMI | DisplayPort, the PC-monitor favorite |
| One cut corner, daisy-chained monitors | DisplayPort | HDMI |
| Lightning-bolt icon, one-cable laptop dock | Thunderbolt | Lightning, Apple's phone plug |
| Printer cable with a square end | USB-B | USB-A, the flat host plug |
| Tap to pay, a few centimeters, battery-free tag | NFC | Bluetooth |
| Headset, pairing, personal area network | Bluetooth | RF with a USB receiver |
| Mouse with its own dongle, no pairing | RF | Bluetooth |
| SSID, WLAN, joining a wireless network | 802.11 Wi-Fi | 802.1X, a sign-in standard |
| Eight-contact Ethernet plug with a clip | RJ45 | RJ11, the phone or DSL plug |
| Hot-swappable module, fiber link on a switch | SFP | RJ45 |
| Wire map, opens, shorts, crossed pairs | Cable tester | Crimper, which attaches plugs |
| TV fetches the stream, phone is free | Casting | Mirroring, which copies the screen |
Common misconceptions
- If the plug fits, it will work. A shape match says nothing about the signal. A charge-only USB-C cable fits a monitor's USB-C port perfectly and shows no picture.
- Every USB-C port does video and charging. USB-C is a connector shape. What a port does depends on how the maker built it, so check the icons or the specification sheet.
- Thunderbolt and Lightning are the same thing. Thunderbolt is a fast laptop and dock interface that now uses the USB-C shape. Lightning is Apple's own small plug for phones and accessories.
- A VGA to HDMI cable is just wires. VGA is analog and HDMI is digital, so the trip between them needs an active converter. Passive adapters work only where the signals already match, such as DVI-D to HDMI, or DVI-I to VGA using DVI-I's analog pins.
- Casting is just wireless mirroring. Mirroring copies the source's whole screen, so the source must keep working. Casting hands the TV an instruction, and the TV fetches and plays the content itself.
The takeaway
- Every interface has a connector shape and a signal. Same signal, different shape: a passive adapter. Different signals: an active converter. No signal at the port: no adapter works.
- USB-A is the flat host-end plug, USB-B the squarish device-end plug used on printers, and USB-C the reversible oval that can carry data, power and video. The USB version, not the shape, sets the speed.
- Thunderbolt uses the USB-C shape from version 3 onward, is marked with a lightning-bolt icon, and carries fast data, DisplayPort video and power. Lightning is Apple's proprietary eight-contact plug.
- VGA is analog with no audio; DVI may be digital, analog or both and normally carries no audio; HDMI, DisplayPort and USB-C video are digital and carry audio. VGA to a digital-only port needs an active converter.
- Mirroring duplicates the source screen; extending gives each screen different content; casting tells the receiver to fetch and play content itself.
- RJ45 is the eight-contact Ethernet plug, usually wired in T568B order; RJ11 is the smaller phone and DSL plug.
- A crimper attaches an RJ45 plug; a cable tester reports the wire map, including opens, shorts and crossed wires. A pass rules out the cable, not the whole network.
- An SFP slot takes a hot-swappable transceiver module, often converting electrical signals to light for fiber, and the modules at both ends must match.
- Bluetooth uses the 2.4 GHz ISM band for personal area networks, with up to seven active secondary devices; NFC works at about 4 cm or less, often with battery-free tags; 802.11 Wi-Fi joins devices to a network, using 2.4 GHz for range and 5 or 6 GHz for speed.
Sources
- CompTIA. (2023). CompTIA Tech+ FC0-U71 V6 certification exam: Exam objectives (Document version 4.0). lecbyo.files.cmp.optimizely.com
- IEEE TechNav. (n.d.). Bluetooth. technav.ieee.org
- Bluetooth SIG. (n.d.). How Bluetooth Technology Creates Reliability from Unreliable Foundations. bluetooth.com
- Android Developers (Google). (n.d.). Near field communication (NFC) overview. developer.android.com
- NFC Forum. (n.d.). NFC is in most everything. nfc-forum.org
- Wi-Fi Alliance. (2024). Wi-Fi CERTIFIED 7 Technology Overview. next.ink
- Key terms
- USB-C
- A small, reversible, oval Universal Serial Bus connector used at both ends of a cable; depending on how a port is built, it can carry data, charging power and display video.
- Thunderbolt
- A high-speed interface developed by Intel with Apple that, from version 3 onward, uses the USB-C connector, is marked with a lightning-bolt icon, and carries fast data, DisplayPort video and power through one cable.
- VGA
- Video Graphics Array: an older analog video interface using a blue, D-shaped 15-pin connector with thumbscrews; it carries no audio.
- HDMI
- High-Definition Multimedia Interface: a digital interface that carries video and audio in one cable, standard on TVs, game consoles and projectors.
- RJ45
- The eight-contact clip-locking plug on twisted-pair Ethernet cables, wired to a standard color order such as T568B.
- SFP
- Small Form-factor Pluggable: a slot on network equipment that accepts a hot-swappable transceiver module, often one that converts electrical signals to light for a fiber cable.
- Cable tester
- A two-part tool that sends signals down each wire of a cable and reports the wire map, showing opens, shorts and crossed wires.
- Bluetooth
- A short-range radio technology in the 2.4 GHz band that links personal devices such as headsets and keyboards into a personal area network after a one-time pairing.
- NFC
- Near-field communication: radio that works over a few centimeters, used for tap-to-pay, door badges and battery-free tags.
- Casting
- Sending a receiver such as a smart TV an instruction to fetch and play content itself, so the phone or laptop acts only as a remote; unlike mirroring, which copies the source's whole screen.
Module 3: Networks, Virtualization and the Cloud
How virtual machines and cloud services work, how homes and offices get online, and how small wired and wireless networks move data.
Virtual Machines and the Cloud: Hypervisors, IaaS, PaaS and SaaS
- Explain what a hypervisor does, tell a guest operating system from a host operating system, and tell bare metal hypervisors from hosted ones.
- Classify a workload as Infrastructure as a Service, Platform as a Service or Software as a Service by asking which layers the customer still manages.
- Compare on-premises, cloud and hybrid deployment models and say which workload facts favor each.
- Check whether a set of virtual machines fits on a physical host by adding up their virtual CPU, memory and disk.
One clinic, three servers and a 2011 definition
In 2011 the United States National Institute of Standards and Technology (NIST) published Special Publication 800-145, in which Peter Mell and Tim Grance set out what the word "cloud" should mean. Their definition has five essential characteristics, three service models and four deployment models.[1] The names of the three service models in this lesson, IaaS, PaaS and SaaS, come from that document. First, though, here is the kind of decision those names exist to settle.
This fictional example runs through the whole lesson. Harbor Street Dental is a clinic with nine staff. A closet behind reception holds three aging servers. One runs the appointment-scheduling program, one stores patient X-ray images and one handles email. All three warranties end in March. The owner, Dr. Ana Reyes, asked two people what to do and got opposite answers.
- Marco has looked after the clinic's computers for ten years. His advice: buy one powerful new server, run all three systems on it as virtual machines, and keep it in the closet.
- Priya works for a managed information technology (IT) company. Her advice: stop owning servers. Move scheduling and email to subscription services on the internet, and put the imaging system on a virtual server rented from a cloud provider.
Both advisers know what they are doing, and both have real evidence behind them. To judge between them you need the exam's vocabulary: hypervisor, guest operating system, IaaS, PaaS, SaaS, on premises, cloud and hybrid. Each of those words names something Marco or Priya is actually proposing.
Exam objectives: CompTIA Tech+ FC0-U71 objective 2.6, Compare and contrast virtualization and cloud technologies. It covers virtualization (hypervisor, guest operating system), cloud concepts (Platform as a Service, Infrastructure as a Service, Software as a Service) and deployment models (on premises, cloud, hybrid).[2]
Virtualization: one physical computer acting as several
NIST's guide to virtualization security, SP 800-125, defines virtualization as simulating the software or hardware that other software runs on. The simulated environment is called a virtual machine (VM).[3] The exam means full virtualization: a complete operating system (OS) runs on hardware that exists only in software. Each OS, with its applications, sits in a VM of its own, and NIST calls each one a guest operating system.[3]
Something has to stand between the guests and the real hardware. That job belongs to the hypervisor. NIST describes it as the software that manages the guests and controls the flow of instructions between them and the physical hardware: the central processing unit (CPU), disk storage, memory and network interface cards (NICs).[3] The hypervisor also isolates the guests, so that each one reaches only its own share of the machine. The physical computer underneath it all is called the host.
A picture helps. Think of the host as an apartment building, the hypervisor as the building manager and each guest OS as a tenant. Each tenant has a front door, a kitchen and an address, and lives as if the apartment were a whole house. The manager decides who gets which rooms and keeps the tenants out of each other's homes. Here is where the analogy breaks: real tenants know they live in a shared building. A guest OS normally acts as if its virtual hardware were a real, private computer. That is why you can install an ordinary copy of Windows or Linux in a VM in much the same way you would install it on a physical PC.
Why bother? Two reasons come up again and again. Virtualization makes better use of hardware, which is why cloud providers depend on it, and it lets one computer run applications built for several different operating systems. Think about the clinic's closet. Each of the three servers does one job and spends the night doing almost nothing. Put all three as guests on one host, and the clinic buys, powers and maintains one machine instead of three.
What a virtual machine looks like from the inside
A hypervisor gives each guest a set of virtual parts. The exam's official acronym list includes four of them: the vCPU (virtual central processing unit), vRAM (virtual random-access memory, the working memory a guest is given), vHDD (virtual hard disk drive) and vNIC (virtual network interface card). Here is a fictional settings page for the clinic's scheduling VM. It shows what the guest sees and where each part really comes from.
| Setting | Value | What the guest OS sees | Where it really comes from |
|---|---|---|---|
| vCPU | 4 | A processor with four cores | Time on the host's physical cores, shared out by the hypervisor |
| vRAM | 8 GB | 8 GB of installed memory | 8 GB of the host's physical RAM, set aside for this guest |
| vHDD | 120 GB | A 120 GB disk it can partition and format | One large file on the host's solid-state drive |
| vNIC | Bridged | A network card with its own MAC (Media Access Control) address, the card's hardware address | A software switch inside the hypervisor, connected to the host's physical NIC |
| Guest OS | Windows Server | Itself, installed as normal | Files stored inside the vHDD file |
The vHDD row explains a property the exam likes. To the host, the guest's whole disk is just a file. So the whole VM, with its settings file and its disk file, can be copied, moved to another host or saved as a snapshot, which is a saved copy of the VM's state at one moment that you can roll back to later. That portability is a big part of why virtualization is useful, and it cuts both ways. A stolen copy of the disk file is a stolen server. And a snapshot sitting on the same host is not a backup: if the host's solid-state drive (SSD) fails, the snapshot fails with it. Lesson 26 deals with backups properly.
Virtual parts are not free. Every one of them is paid for out of real hardware. Lesson 6 introduced random-access memory (RAM) as the computer's working memory, and on a virtualization host it is usually the tightest limit. Here is why. A vCPU is only a share of processor time, and most guests sit idle most of the time, so hosts often run more vCPUs than they have physical cores. vRAM is different. Memory given to one guest generally cannot be used by another at the same moment. Some hypervisors have tricks for squeezing memory, but a guest that is short of real RAM slows badly. The safe planning rule is that the vRAM of all running guests should fit inside physical RAM, with some left for the hypervisor itself.
Worked example: will Marco's plan fit? Marco has priced a host with 8 physical cores, 32 GB of RAM and a 1 TB SSD. His inventory screen would look something like this (fictional).
Host: HSD-HOST01 CPU: 8 cores RAM: 32 GB SSD: 1 TB (1000 GB)
VM name Guest OS vCPU vRAM vHDD State
SCHED-01 Windows Server 4 8 GB 120 GB Running
XRAY-01 Windows Server 2 12 GB 500 GB Running
MAIL-01 Linux 2 6 GB 200 GB Running
- Add the vRAM: 8 + 12 + 6 = 26 GB. The host has 32 GB, which leaves 6 GB for the hypervisor and for growth. That fits.
- Add the vHDD sizes: 120 + 500 + 200 = 820 GB. The SSD holds 1000 GB, which leaves 180 GB for snapshots and new X-rays. That fits, though the X-ray disk will keep growing.
- Add the vCPUs: 4 + 2 + 2 = 8, one for each physical core. That is comfortable, because the three guests are rarely busy at the same moment.
Now change one input. A year later, Dr. Reyes buys a 3D imaging scanner. Its software wants its own guest with 16 GB of vRAM and a 400 GB disk. Add again: vRAM becomes 26 + 16 = 42 GB on a 32 GB host, and disk becomes 820 + 400 = 1220 GB on a 1000 GB drive. Both checks fail. Marco now has to order more RAM and a bigger drive, wait for them to arrive and install them out of hours, or run the new workload somewhere else. That delay is the opening for Priya's argument, which comes later in the lesson.
Two kinds of hypervisor: bare metal and hosted
NIST notes that some hypervisors run on top of another operating system, and that underlying OS is called the host operating system.[3] This gives two designs. The industry usually calls them Type 1 and Type 2, and NIST's guide calls them bare metal and hosted.
| Question | Bare metal hypervisor (Type 1) | Hosted hypervisor (Type 2) |
|---|---|---|
| What does it run on? | Directly on the physical hardware | As an application on an ordinary host OS |
| Is there a host OS? | No general-purpose OS underneath | Yes, such as Windows, macOS or Linux |
| Typical home | Servers, data centers, cloud providers | Desktops and laptops used for testing, training or a second OS |
| Overhead | Lower, because no host OS is using resources too | Higher, because the host OS and its apps also use CPU and RAM |
| If the layer underneath crashes | A hypervisor failure stops every guest, but there is no separate host OS to crash or need updates | A host OS crash or restart takes every guest down with it |
| Commonly cited products | VMware ESXi, Microsoft Hyper-V | Oracle VirtualBox, VMware Workstation |
Worked example, first run. Lena, a fictional student, has a Windows 11 laptop. She installs a hosted hypervisor, creates a VM and installs Linux in it for a programming class. Name the parts. The hardware is the laptop. The host OS is Windows 11. The hypervisor is the hosted application. The guest OS is Linux. If Windows 11 restarts for an update, her Linux guest stops too, because it was running inside an application on Windows.
Second run, one input changed. Marco installs a bare metal hypervisor straight onto the clinic's new server, with nothing underneath it. He manages it from a web console on his own laptop. Ask the same question: what is the host OS? There isn't one in the usual sense. The hypervisor is the layer that touches the hardware, and all three Windows Server and Linux systems are guests. On the exam, "installed directly on the hardware" points to bare metal. "Runs as an application on the user's existing OS" points to hosted.
Whatever the design, someone standing at the machine has power. On Lena's laptop, anyone at the keyboard can open the VM program and start, stop or delete her guest. A bare metal server needs physical security too, because someone who can reboot it may be able to change its settings. The clinic's closet door matters more after virtualization than before, because one machine now holds every system. The next certification on the CompTIA path is A+, taught in the Atlas A+ course.
Securing the layer everything sits on
Many people believe that a VM is safe just because it is a VM. It is true that the hypervisor keeps guests apart. But a guest OS is still a full operating system, and it has the same flaws it would have on a physical machine. NIST's advice is plain: use the same security controls for a virtualized OS that you would use for the same OS running directly on hardware.[3] An unpatched Windows Server guest is just as open to attack as an unpatched physical one.
The hypervisor brings a new risk of its own: one control point for everything. NIST points out that the security of the whole virtual infrastructure depends on the management system that controls the hypervisor.[3] Anyone who can sign in to Marco's console can start, stop, copy or delete all three clinic servers. It also pays to turn off virtual hardware nobody uses, and hypervisor features the clinic does not need, such as a shared clipboard or file sharing between host and guest. Each of those features is a path across the wall that is supposed to separate guests.
There is one more risk, and this one is about availability rather than attackers. Three servers in a closet can fail one at a time. A single host fails all at once. If its power supply unit (PSU) dies, scheduling, X-rays and email all stop together. That is why virtualized hosts so often get a redundant PSU and an uninterruptible power supply (UPS).
What matters here: a hypervisor shares one host's real CPU, RAM, disk and NIC among isolated guest operating systems. A bare metal hypervisor runs on the hardware itself, while a hosted one runs on a host OS. Every guest still needs patching and protection, and the hypervisor's console becomes the most valuable account in the building.
From virtualization to cloud computing: what the extra word adds
Here is where people often go wrong. Marco's server will be heavily virtualized. Is it a cloud? Not by NIST's standard. NIST defines cloud computing as a model for convenient, on-demand network access to a shared pool of configurable computing resources.[1] Its five essential characteristics spell out what that means in practice:
- On-demand self-service. You create a server or storage yourself, through a web portal or a program, without waiting for a person at the provider.
- Broad network access. You reach the resources over the network from laptops, phones and other ordinary devices.
- Resource pooling. The provider's hardware is shared among many customers, and each one gets a slice when they need it.
- Rapid elasticity. Capacity can grow or shrink quickly, sometimes automatically, so it can look close to unlimited.
- Measured service. Use is metered, so you pay for, and can see, what you actually consume.
Virtualization is a technique: it lets one machine host many. Cloud computing is a way of delivering resources as a metered, self-service product. The two are closely linked, because most clouds are built on hypervisors, but they are not the same thing. Look back at the 3D scanner example. When Marco needed a fourth guest, he had to buy RAM and wait. A cloud customer types in the size of the VM it wants, and the VM exists minutes later. That gap is exactly what self-service and elasticity mean.
Three service models: who manages which layer
Picture any IT system as a stack of layers. From the bottom up: the building and its power, the physical network, the physical servers, the hypervisor, the operating system, the runtime (the software a program needs in order to run, such as a Python interpreter), middleware (software between the OS and applications that supplies shared services such as database connections), the application and, at the top, your data and user accounts. The three service models differ in one thing only: how much of that stack the provider runs for you.
Software as a Service (SaaS) hands you a finished application, usually reached through a web browser; web-based email is the classic example. Under SaaS the customer does not manage the network, servers, operating systems or storage, and does not even control most of the application's features, apart from a few user settings.[4] Microsoft 365 is a familiar example. As a SaaS customer you still sign in, adjust the settings you are offered, add and remove users, look after your data and protect the laptops and phones you use to reach the service.
Platform as a Service (PaaS) is for people who have their own application but do not want to run servers for it. You upload code written in languages and tools the provider supports. In NIST's terms, you control the deployed application and possibly some settings for the environment that hosts it.[4] You never pick, install or patch the operating system: the provider runs it, along with the runtime and middleware beneath your code. Azure App Service is one example.
Infrastructure as a Service (IaaS) rents you the raw parts: processing, storage and networking, on which you can install any software you like, operating systems included. In NIST's wording, you control the operating systems, storage and deployed applications, and possibly a few networking components such as host firewalls.[4] Azure Virtual Machines is an example. In practice, an IaaS VM is a guest OS on someone else's hypervisor, and patching it is your job.
The exam's acronym list also includes Desktop as a Service (DaaS). Here a provider hosts complete desktop operating systems in its data center and streams them to users' devices. It is a specialized offering built on the same idea, and staff sign in to it the way they would sign in to a remote PC.
Microsoft publishes a responsibility matrix that sets out, area by area, who handles what in each model.[5] Here it is in simplified form. "Provider" stands where Microsoft's table says Microsoft.
| Layer | On premises | IaaS | PaaS | SaaS |
|---|---|---|---|---|
| Customer data | You | You | You | You |
| Configurations and settings | You | You | You | You |
| Identities and user accounts | You | You | You | You |
| Client devices | You | You | You | Shared |
| Applications | You | You | Shared | Shared |
| Network controls | You | You | Shared | Provider |
| Operating system | You | You | Provider | Provider |
| Physical hosts | You | Provider | Provider | Provider |
| Physical network and data center | You | Provider | Provider | Provider |
Read the table from left to right and you can watch your responsibilities fall away one row at a time. Now look at the top three rows. They never change. Microsoft states that in every cloud deployment type, you own your data and identities.[5] Moving to SaaS does not move the job of choosing strong passwords, removing a departed employee's account or deciding who may see patient records. Even the devices staff use to reach a SaaS service are only partly the provider's concern. The operating system row is where IaaS and PaaS part company, and under IaaS the customer also configures network security such as firewalls.
What matters here: to tell the service models apart, ask which layer the customer manages. If the customer manages the operating system, it is IaaS. If the customer brings only application code, it is PaaS. If the customer only uses a finished application, it is SaaS. In all three, data and user accounts remain the customer's job.
Worked example: sorting the clinic's workloads
Here is a three-question test. Run it on each workload in order, and stop at the first yes.
- Does a finished application from another company already do this job, and can staff simply use it? If yes, it is a SaaS candidate.
- Is this our own code, and can it run on a platform the provider supports, without us picking or patching an OS? If yes, it is a PaaS candidate.
- Do we need to choose or control the operating system, or install software that expects a whole machine? If yes, it needs IaaS, or our own hardware.
| Workload | Key fact | First yes | Model | Who patches the OS? |
|---|---|---|---|---|
| A subscription web-based email service exists | Question 1 | SaaS | Provider | |
| Scheduling | The vendor sells a browser-based subscription version | Question 1 | SaaS | Provider |
| X-ray imaging | The vendor ships only an installer that requires a particular Windows Server version | Question 3 | IaaS | The clinic |
Now flip two inputs. First, Dr. Reyes's nephew writes a small online booking form in Python. It is the clinic's own code, and it does not care which OS runs it. It passes question 2, so it is a PaaS job, and the nephew never patches a server. Second, suppose the scheduling vendor drops its browser version and sells only a Windows Server installer. Scheduling then fails question 1 and lands on question 3: IaaS. The business task, booking appointments, has not changed at all. The model changed because what the clinic must manage changed. That is the reasoning the exam is testing.
Deployment models: on premises, cloud and hybrid
A service model says what you rent. A deployment model says where the hardware sits and who shares it. The exam lists three, and they match the categories in an Amazon Web Services (AWS) overview paper.
- Cloud. Every part of the application runs on a provider's infrastructure, reached over the internet. Nothing of it lives in your building.
- On premises. The hardware is in your own building, and you own and run it. AWS notes that on-premises resources run with virtualization and resource management tools are sometimes called a private cloud.[6] In most cases it is traditional in-house IT with virtualization added.
- Hybrid. AWS describes the most common hybrid deployment as linking the cloud with existing on-premises infrastructure, so that an organization can grow into the cloud.[6]
NIST counts four deployment models rather than three, and its names overlap with CompTIA's in ways that can trip you up. A private cloud is built for the exclusive use of one organization, which may contain many business units.[4] NIST adds that it may sit on or off premises.[4] A community cloud is shared by organizations with common concerns, such as a group of hospitals with the same compliance rules. A public cloud is open to the general public and sits on the cloud provider's premises. A hybrid cloud joins two or more separate cloud infrastructures that stay distinct.[4] One reason to join them is cloud bursting: sending overflow load to a second cloud when the first is busy.
| Exam term | Where the hardware sits | Who owns and runs it | Closest NIST term |
|---|---|---|---|
| On premises | Your own building | You | A private cloud, but only if it offers self-service, pooling, elasticity and metering |
| Cloud | A provider's data center | The provider | Usually a public cloud; a private or community cloud can also be hosted off premises |
| Hybrid | Both, connected | Split between you and the provider | Hybrid cloud |
So is Marco's single virtualized server a "private cloud"? Some vendors would say so. Under NIST's definition it falls short, because staff cannot provision new capacity themselves and nothing is metered. For the exam, stick to the plain terms. Hardware in your building is on premises. Resources in a provider's data center are cloud. A mix that works together is hybrid.
The case for keeping it on premises
Marco's argument is stronger than "it's what we've always done." Here are his points, each with the fact it rests on.
- Dedicated resources. The hardware serves only the clinic. The X-ray viewer in each treatment room pulls images across the local area network (LAN) at LAN speed. It does not wait on the clinic's internet connection, and it does not compete with other customers.
- It keeps working when the internet doesn't. If the internet service provider (ISP) has an outage, an on-premises imaging server keeps serving images in the building. A SaaS scheduling system cannot be reached at all. Lesson 11 compares internet service types, and a small clinic often has only one connection.
- Control over timing. The clinic decides when updates are installed, and the software's features change only when the clinic chooses. A SaaS provider can redesign its screens on a Monday morning.
- A known cost. One purchase replaces a monthly bill that never ends. Be careful with this point, though. Electricity, a UPS, replacement drives and Marco's hours are all real costs, and they never appear on the price tag.
The weak points showed up earlier. One host is a single point of failure. Capacity has to be guessed in advance, and the 3D scanner showed what happens when the guess is wrong. Every layer in the "On premises" column of the responsibility table belongs to a nine-person dental practice.
The case for the cloud
Priya has evidence too, though the loudest voices on her side are cloud vendors, which have a commercial interest in the answer.
- Less undifferentiated work. AWS argues that cloud computing lets IT teams avoid procurement, maintenance and capacity planning.[6] For Harbor Street, that means no shopping for RAM when the 3D scanner arrives. Priya would resize the rented VM, or add a new one, in minutes.
- Security help at the bottom of the stack. Vendors also claim that providers cover security work that small organizations tend to leave undone. Treat that as a sales pitch, but notice that the responsibility table backs the narrower point: under SaaS, the provider patches the operating system and guards the physical hosts and data center, jobs a clinic otherwise does by itself.
- No servers to patch for routine work. Once email and scheduling are SaaS, the clinic has no mail-server OS to update.
- Elasticity and metering. The clinic pays for what it uses. Capacity follows demand instead of a forecast made three years earlier.
Her weak points are just as real. Every cloud workload depends on the internet connection. Monthly fees keep coming as long as the clinic exists. Leaving a provider can be hard once your data and workflows live in its formats. And the top rows of the responsibility table never move: if a receptionist's password is stolen, the patient records leak whichever data center they sit in.
What would settle it
NIST calls its service and deployment models a simple taxonomy that is not meant to prescribe or constrain any particular way of deploying systems.[4] In other words, the definitions do not tell you to choose cloud. Facts about each workload decide. Here are the facts that tip the balance, and the direction each one pushes.
| Fact about the workload | Pushes toward | Why |
|---|---|---|
| A good SaaS product already does the job | Cloud (SaaS) | No servers, OS or application code to maintain |
| Very large files used constantly inside the building | On premises | LAN speed beats the internet link, and it works during an outage |
| Demand jumps unpredictably, or new projects need servers fast | Cloud (IaaS or PaaS) | Self-service and elasticity replace buying hardware |
| Only one internet connection, and the work cannot stop | On premises, or a second connection | A cloud system is unreachable when the link is down |
| Nobody on staff can patch and secure servers | Cloud (SaaS first) | The provider takes over the lower layers of the stack |
| Hardware must connect physically to local equipment | On premises | A data center cannot plug into the clinic's scanner |
Run Harbor Street through that table. Email and scheduling have good SaaS options, so they go to the cloud. X-ray imaging involves large files used all day in the building, and the clinic has one internet connection, so it stays on a small virtualized server on premises. Its backups go off-site to cloud storage. The result is a hybrid deployment, and both advisers were partly right. Change one fact and the answer changes. If the clinic adds a second, independent internet connection and the imaging vendor launches a SaaS version, imaging can move to the cloud too, and the closet can finally be emptied.
What matters here: on premises, cloud and hybrid are not ranked from worst to best. Each workload is placed by its own facts: file size, how much downtime it can tolerate, how predictable demand is, what skills the staff have, and whether it must physically connect to local equipment. A mix of placements is a hybrid deployment.
Exam cues: the words in the question and where they point
| If the question says | Think | Commonly confused with |
|---|---|---|
| Software that runs several operating systems at once on one physical computer | Hypervisor | Guest OS (the systems it runs, not the software running them) |
| The OS installed inside the virtual machine | Guest operating system | Host OS (the one a hosted hypervisor runs on) |
| Installed directly on the server hardware, no OS underneath | Bare metal (Type 1) hypervisor | Hosted (Type 2) hypervisor |
| Runs as an application on the user's existing Windows or macOS | Hosted (Type 2) hypervisor | Bare metal hypervisor |
| Users sign in through a browser; the provider manages everything | SaaS | PaaS |
| Developers upload code; no OS to manage or patch | PaaS | IaaS |
| Rent virtual servers; the customer installs and patches the OS | IaaS | PaaS |
| Hardware owned and kept in the company's own building | On premises | Private cloud (NIST allows it off premises too) |
| Some systems in the office, others at a provider, connected | Hybrid | Cloud |
| Who protects the data and user accounts? | Always the customer | "The provider, in SaaS" |
Common misconceptions
- "Virtualization and cloud computing are the same thing." Virtualization is the technique of running guests on a hypervisor. Cloud computing is a self-service, elastic, metered way of delivering resources over a network. Clouds are usually built on virtualization, but a single virtualized server in a closet is not a cloud.
- "A virtual machine doesn't need patches or anti-malware because it is isolated." A guest OS has the same weaknesses as the same OS on physical hardware. NIST recommends the same security controls for both.
- "In the cloud, security is the provider's problem." The provider takes over the lower layers, and how many depends on the service model. In every model, the customer still owns its data, its settings, its identities and its user accounts.
- "IaaS and PaaS are the same, since both run on VMs." The difference is who manages the operating system. Under IaaS the customer does. Under PaaS the provider does, and the customer brings only the application.
- "On premises is outdated, and the cloud is always cheaper." Large local files, a single internet connection or physical links to local equipment can all make on premises the better choice for a particular workload. That is why hybrid deployments are common.
Summing up
- A hypervisor controls the flow of instructions between guest operating systems and the host's physical CPU, memory, disk and network cards, and keeps the guests isolated from each other.
- A guest OS runs inside a VM. A host OS is the ordinary operating system that a hosted (Type 2) hypervisor runs on. A bare metal (Type 1) hypervisor runs on the hardware with no host OS underneath.
- A VM's virtual parts (vCPU, vRAM, vHDD, vNIC) come from real host hardware. Before adding a guest, check that the total vRAM of running guests fits in physical RAM and the total vHDD fits on the drive. Running more vCPUs than physical cores is normal for mostly idle guests.
- Because a VM is stored as files, it is portable. That same fact means a copied disk file is a copied server, and a snapshot on the same host is not a backup.
- NIST SP 800-145 (2011) gives cloud computing five essential characteristics, three service models and four deployment models.
- Under SaaS, the customer only uses the finished application. Under PaaS, the customer deploys its own code without managing the OS. Under IaaS, the customer manages the operating systems and applications on rented infrastructure.
- In every model, including SaaS, the customer remains responsible for its data, settings, identities and user accounts.
- On premises means your own hardware in your own building, and cloud means resources in a provider's data center. Hybrid connects the two. NIST's version of hybrid joins two or more distinct clouds, for example to burst overflow load from one to the other.
Sources
- Peter Mell, Timothy Grance. (2011). NIST SP 800-145 The NIST Definition of Cloud Computing. NIST CSRC. csrc.nist.gov
- CompTIA. (2023). CompTIA Tech+ FC0-U71 V6 certification exam: Exam objectives (Document version 4.0). lecbyo.files.cmp.optimizely.com
- Karen Scarfone, Murugiah Souppaya, Paul Hoffman. (2011). Guide to Security for Full Virtualization Technologies (SP 800-125). NIST. nvlpubs.nist.gov
- Peter Mell, Timothy Grance. (2011). The NIST Definition of Cloud Computing (SP 800-145). NIST. nvlpubs.nist.gov
- Microsoft Learn. (n.d.). Shared responsibility in the cloud. learn.microsoft.com
- Amazon Web Services. (n.d.). Types of cloud computing - Overview of Amazon Web Services. docs.aws.amazon.com
- Key terms
- Virtualization
- Simulating the hardware or software that other software runs on, so that one physical computer can run several separate operating systems at once.
- Virtual machine (VM)
- A simulated computer, with virtual CPU, memory, disk and network card, in which a complete operating system and its applications run.
- Hypervisor
- Software that creates and runs virtual machines, shares the host's physical CPU, memory, storage and network cards among them, and keeps them isolated from each other.
- Guest operating system
- An operating system installed and running inside a virtual machine, which treats the virtual hardware it is given as if it were real.
- Host operating system
- The ordinary operating system on the physical computer that a hosted (Type 2) hypervisor runs on as an application; a bare metal hypervisor has none.
- Infrastructure as a Service (IaaS)
- A cloud service model in which the customer rents processing, storage and networking and manages the operating systems and applications on them.
- Platform as a Service (PaaS)
- A cloud service model in which the customer deploys its own application code onto a provider-managed platform without managing servers or operating systems.
- Software as a Service (SaaS)
- A cloud service model in which the customer uses a finished application run entirely by the provider, usually through a web browser.
- On premises
- A deployment model in which the organization owns and runs the hardware for its systems in its own building.
- Hybrid deployment
- A deployment model that connects on-premises systems with cloud resources, or joins two or more distinct clouds, so they work together.
Getting Online: Comparing Internet Service Types
- Explain how fiber optic, cable, DSL, RF fixed wireless, satellite and cellular service each carry data to a customer, and the trade-offs that follow from each medium.
- Compare internet services by download speed, upload speed, latency and availability, and identify a service type from its equipment and symptoms.
- Recommend an internet service type for a given location and use, and show the reasoning, including upload-time arithmetic.
Three wires and three kinds of radio
On 31 December 2021, about 71.8 million American homes reached the internet over cable, 24.2 million over fiber and 15.2 million over digital subscriber line. Those counts come from Table 2 of a Congressional Research Service (CRS) primer, which lists fixed broadband connections in the United States by technology as of that date.[1] Cable led by a wide margin. In each of those homes, the internet service was whatever carried data between the building and the provider: a coaxial cable, a strand of glass, or a pair of copper telephone wires. Other homes used no wire at all. They reached the internet by radio, from a tower, a satellite or a cell site.
That split gives this lesson its shape: three services use a wire into the building, and three use radio. The Benton Institute for Broadband and Society points out the fact that trips up beginners: even a home with Wi-Fi probably still has a fixed, wired connection behind it.[2] A home can have a Wi-Fi router whichever service it buys. Wi-Fi is only the short radio hop between your devices and that router. The internet service is the link that leaves the building.
Exam objectives: CompTIA Tech+ FC0-U71 objective 2.7, "Compare and contrast common internet service types."[3] It names fiber optic, cable, digital subscriber line (DSL) and wireless, and it splits wireless into RF, satellite and cellular.
Four questions to ask of any connection
An Internet service provider (ISP) is the company you pay to connect you. Broadband means always-on, high-speed access, far faster than the old dial-up modems that tied up a phone line for every session. Speeds are quoted in bits per second, usually megabits per second (Mbps) or gigabits per second (Gbps). Lesson 3 showed that a bit is not a byte: a 100 Mbps line moves at most 12.5 megabytes each second.
Every connection has two speeds. Download (downstream) is data coming to you. Upload (upstream) is data you send. A plan sold as "300/20" means 300 Mbps down and 20 Mbps up. Home plans usually download faster than they upload. A link with equal speeds both ways is called symmetrical, and one with unequal speeds is asymmetrical.
Speed is not the whole story. Latency is delay: the time a small piece of data takes to reach the far end and come back. It is measured in milliseconds (ms) and shown as "ping" in speed tests. Download speed decides how fast a big file arrives. Latency decides whether a video call feels like a conversation or like a walkie-talkie exchange. A link can be fast and laggy at once.
So ask four questions of any service. How fast does data come down? How fast does it go up? How much delay is there? And can I actually get it at this address? People forget the fourth, but the best technology is useless if it does not reach the house.
The six services side by side
The speed column below comes from a CRS table of ranges advertised by a sample of providers.[1] They are not measurements at any address, and they date from around 2021, so treat them as relative positions, not promises. Cellular is missing from the CRS sample because CRS covered only fixed services.
| Service | What carries the signal | Box at your end | Advertised speeds | Latency | Biggest limit |
|---|---|---|---|---|---|
| Fiber optic | Pulses of light in glass | Optical network terminal (ONT) | 250-1,000 / 250-1,000 Mbps | Low | Expensive to build, so missing in many areas |
| Cable | Radio-frequency signals on TV coaxial cable | Cable modem | 10-500 / 5-50 Mbps | Low | Capacity shared with neighbors; mostly in towns and cities |
| DSL | High-frequency signals on copper phone lines | DSL modem on a phone jack | 5-35 / 1-10 Mbps | Low to moderate | Speed falls with distance from the phone company |
| Wireless: RF (fixed wireless) | Radio from a tower to an antenna on your building | Aimed outdoor antenna plus power unit | 10-25 / 1 Mbps | Low to moderate | Line of sight to the tower; weather; congestion |
| Wireless: satellite (GEO) | Radio to a satellite 35,786 km up | Dish plus satellite modem | 25 / 3 Mbps | Very high | Distance becomes delay; data caps; weather |
| Wireless: satellite (LEO) | Radio to satellites a few hundred km up | Dish that tracks moving satellites | 25-220 / 5-20 Mbps | Far lower than GEO | Needs a wide, open view of the sky |
| Wireless: cellular | Radio from a carrier's cell sites (4G LTE, 5G) | Phone, hotspot or cellular router | Not in the CRS sample; varies with signal | Low to moderate; varies | Data caps, throttling, changing signal |
Read the table in two halves. In the wired half, the difference is the medium: light in glass, radio-frequency signals in coaxial copper, or electrical signals in thin telephone copper. In the wireless half, every service uses radio, so the difference is where the other end of the link sits. It may be a tower a few miles away, a satellite in space, or a carrier's cell sites built for people who move. The order of the speeds is stable even as providers raise their top tiers: fiber at the top and symmetrical, cable fast down and slow up, DSL and GEO satellite at the bottom.
Why this matters: exam questions rarely name the service outright. They describe the medium, the box on the wall, or a symptom such as evening slowdowns or long pauses, and expect you to work back to the service. Learn the mechanism behind each row and the clues follow from it.
Fiber-optic internet: light in a strand of glass
A Fiber-optic cable carries data as pulses of light through a glass filament.[2] A laser at one end flashes on and off at enormous speed, and a detector at the far end reads the flashes as ones and zeros. Because the signal is light, not electricity, motors and power lines cannot disturb it with electromagnetic interference (EMI), and it fades far less over distance than a signal in copper. Fiber is the service most commonly sold to homes with symmetrical speeds, so uploads are as fast as downloads.
The weakness is money, not physics. Benton notes that fiber can carry a near unlimited amount of data and users but is expensive to lay down. Many companies hesitate to build it where the return is uncertain, especially in rural areas.[2] Digging up streets and running new lines to every house costs far more than reusing a cable or phone line that is already there.
In Fiber to the home (FTTH), the glass runs into the building and ends at a small box called an Optical network terminal (ONT). The ONT turns light into ordinary Ethernet on an RJ45 port, the Registered Jack connector used on standard network cables, and that feeds your router. Read the adverts carefully. Some providers run fiber only to a neighborhood cabinet and finish the trip over copper, and that service behaves like the copper part. Many FTTH networks also split one strand among a group of homes, so fiber capacity can be shared too. It is so large, though, that busy-hour slowdowns are far less common than on cable. When home fiber fails, the cause is usually physical: a patch cord bent sharply or pinched, a dirty connector, or an ONT that has lost power.
Cable internet: data on the TV coax
Cable internet reaches the home over a Coaxial cable: a copper center wire inside insulation and a braided metal shield. Cable providers can send TV and internet down the same coax at once by putting each on its own frequency channels.[1] Picture the cable as a wide radio band trapped inside a wire. Some channels carry TV, one block carries downloads, and a smaller block carries uploads. A Cable modem screws onto the coax with a round F-type connector, tunes to the data channels and hands your router Ethernet.
Modern cable networks are Hybrid fiber-coaxial (HFC) systems. The provider runs fiber to a neighborhood node, and coax covers the last stretch to the homes on that node. Those homes share the same data channels. Benton names the two problems that follow: cable is mostly available in denser areas, and it suffers from network congestion.[2] When many neighbors are online at once, everyone slows down. The classic cable symptom is a plan that tests near its advertised speed at 10 a.m. and well below it at 9 p.m.
Cable is also strongly asymmetrical. In the CRS sampling, cable downloads reached 500 Mbps but uploads topped out at 50 Mbps. That suits streaming and browsing. For someone who sends large files, the upload figure sets the pace, not the headline download number.
Digital subscriber line: broadband on the telephone wire
The Federal Communications Commission (FCC) describes Digital subscriber line (DSL) as a wireline technology that sends data faster over the copper telephone lines already installed in homes and businesses.[4] Dial-up used the same wires but squeezed data into the narrow band of sound frequencies meant for voice. It was slow, and nobody could make a call while it ran. DSL uses frequencies far above the voice band, which the copper can carry but telephones never use.
That frequency split explains the most testable fact about the home version, Asymmetric digital subscriber line (ADSL). The FCC notes that ADSL downloads faster than it uploads and runs over the same line as voice service without disrupting phone calls.[4] Small microfilters plug in between each phone and the wall jack so that the phone hears only the voice band. The DSL modem connects to the jack with a phone cord on an RJ11 port, the smaller Registered Jack used for telephones, and gives your router Ethernet on RJ45. Businesses that send as much as they receive can order Symmetric digital subscriber line (SDSL), where downstream and upstream speeds are equal.[4] The FCC also lists faster forms, HDSL and VDSL, short for high-data-rate and very high-data-rate DSL.
DSL's signature weakness is distance. High frequencies lose strength fast on thin copper, so the farther a home is from the phone company's equipment, the slower its connection. Benton puts the drop-off at about 3 miles.[2] Two neighbors on the same plan can get very different speeds if one lives at the far end of a long rural road. DSL can congest as well: Benton notes that the more people use the network, the slower it gets.[2] So cable and DSL can both slow at busy times, but their clearest clues differ. Cable's is the evening dip on a shared node. DSL's is speed that depends on the address.
A DSL modem's status page shows the distance effect. Here is a fictional example.
DSL status (fictional example)
Line mode ............ VDSL2
Sync rate down ....... 38,200 Kbps
Sync rate up ......... 7,900 Kbps
Attenuation down ..... 14.2 dB
Line status .......... Up 6 days 4 hours
The sync rate is the speed the modem and the phone company's equipment agreed on for this line, in kilobits per second (Kbps): 38,200 Kbps is 38.2 Mbps. Attenuation is how much the signal weakened on the way, in decibels (dB). A longer line shows higher attenuation and usually a lower sync rate.
Why this matters: if two homes on the same plan get different speeds all day, think DSL and line length. If one home slows every evening and recovers overnight, think cable and a shared node.
Wireless RF: fixed wireless from a tower
RF stands for radio frequency. Strictly speaking, every wireless service uses it, satellite and cellular included. On the Tech+ list, though, RF sits beside satellite and cellular as its own item. The service it points to is Fixed wireless, also called terrestrial fixed wireless: radio between a provider's tower and an antenna fixed to your building. It is sold by a Wireless Internet service provider (WISP). Benton describes it as a connection that starts at a tower, which sends connectivity to the user by radio waves.[2]
At the house, a small dish or panel antenna on the roof, a pole or a silo is aimed at that tower, and a cable runs indoors to a power adapter and then the router. The radio link is only the last stretch. The tower itself connects back to the provider's network over fiber, another wire or a microwave radio hop. One tower can reach homes miles away without a trench to each farm, which is why fixed wireless suits rural areas. The same radio physics brings the drawbacks Benton lists: possibly slower service, the need for line of sight, network congestion, weaker signal in bad weather, and equipment costs.[2] Line of sight means an unblocked straight path to the tower. A new barn, a growing stand of trees or a hill can cut a link that worked last year.
Fixed wireless is not Wi-Fi: Wi-Fi spans a house, while fixed wireless spans miles. It is not cellular either, even when it shares a tower, because the antenna is bolted down, aimed, and serves one location. Mobile carriers also sell home internet over 4G and 5G with a box that stays put. Questions usually flag that with the words cellular, LTE or 5G, and flag RF with a WISP, a rooftop antenna and a tower.
Satellite internet: why distance becomes delay
Satellite Internet access needs no wire and no nearby tower, so it reaches almost anywhere with a view of the sky. The FCC lists what a customer needs, including a satellite modem and a clear line of sight to the provider's satellite, along with a dish.[4] Data goes from your dish up to the satellite, down to the provider's ground station, and on into the internet.
Traditional satellite broadband uses satellites in Geostationary orbit (GEO), 35,786 km above the equator. At that height a satellite circles once a day, matching the Earth's spin, so it seems to hang still and a dish can be aimed once and left alone. The price is distance, and you can work out the cost yourself:
- Your request goes up to the satellite and down to the ground station: 2 x 35,786 km.
- The reply makes the same two legs back: another 2 x 35,786 km.
- Total: 4 x 35,786 = 143,144 km.
- Radio travels at about 300,000 km per second, which is 300 km per millisecond.
- 143,144 / 300 = about 477 ms, nearly half a second, before any equipment or routing adds its own delay.
No better dish or modem removes that half second, because it comes from the distance itself. You feel it as the pause after you stop speaking on a video call. Benton lists the other satellite complaints as high prices, low data caps, high latency and weather disruption.[2] Heavy rain absorbs the signal, an effect technicians call rain fade.
Newer services use Low Earth orbit (LEO) satellites, which are far closer to the ground. Run the same arithmetic with an example altitude of 550 km: 4 x 550 = 2,200 km, and 2,200 / 300 is about 7 ms. Real LEO pings are higher because of routing, but on distance alone GEO has about 65 times more delay. The CRS sample also shows LEO downloads advertised up to 220 Mbps, against 25 Mbps for GEO. The cost of being close is that each LEO satellite crosses the sky in minutes. A provider needs a large fleet of them, and your dish must hand off from one satellite to the next. So a LEO dish needs a wide, open view of the sky, not one gap in the trees.
Speed test A (fictional example)
Ping .......... 652 ms
Download ...... 23.4 Mbps
Upload ........ 2.9 Mbps
Speed test B (fictional example)
Ping .......... 38 ms
Download ...... 141.7 Mbps
Upload ........ 14.2 Mbps
Both tests came from rural homes with a dish on the roof. Test A's ping of over 600 ms is the fingerprint of a GEO link. Test B's ping is close to wired service, which points to LEO. The download numbers alone would not tell you which is which, but the latency does.
Why this matters: when a remote customer complains of lag or pauses rather than slow downloads, think geostationary satellite, and blame the distance to orbit rather than the equipment.
Cellular internet: the network built for moving
Internet over a Cellular network, often called mobile broadband, comes from the same towers that serve your phone. The carrier divides its area into cells, each served by an antenna site, and hands your connection from one cell to the next as you move. That handoff is what separates cellular from every other service in this lesson. The generations you will see are 4G LTE (Long-term Evolution) and 5G, the fifth generation. A device joins the carrier's network using a SIM (Subscriber Identity Module) card. A laptop can share a phone's connection by tethering or through a mobile hotspot, where the phone acts as a small Wi-Fi router. Dedicated hotspots and cellular routers do the same job for a van, a site office or a house.
Cellular's strengths: it works wherever there is signal, it follows you, and it makes a good backup when the wired line goes down. Its limits make it a weak replacement for home broadband. Speed changes with your distance from the tower and the walls in the way. Most phone plans also carry data caps or throttling, which means the carrier deliberately slows the connection after a set amount of data.[2] Caps bite harder when a hotspot feeds laptops and smart TVs instead of one phone.
Choosing a service: a worked example, then a flip
Price, bundles with phone or TV service, and what actually reaches the address all shape the choice. There is also a floor. CRS reports that in 2015 the FCC defined broadband as at least 25 Mbps down and 3 Mbps up.[1] CRS also warned that some DSL and GEO satellite services that meet 25/3 may not meet a higher benchmark.[1] The FCC has since raised its benchmark, so 25/3 is no longer the current figure.
Now a decision. The Reyes household (a fictional example) lives in a town. A lookup on their address shows these plans, with fictional prices.
| Service | Plan | Down / up | Monthly price |
|---|---|---|---|
| DSL (VDSL) | Phone Net 40 | 40 / 5 Mbps | $45 |
| Cable | Cable 300 | 300 / 20 Mbps | $55 |
| Fiber to the home | Fiber 500 | 500 / 500 Mbps | $80 |
| Cellular home internet (5G) | Home 5G | Varies with signal | $50 |
Run 1. Two adults and a teenager stream on two TVs, browse and game a little. One adult works from home and is on video calls three days a week. The video service's help page (also fictional) says each HD call needs about 4 Mbps in each direction.
- Downloads: every wired plan here covers two streams and browsing, so download speed does not decide this.
- Uploads: one call at 4 Mbps, plus phones backing up photos. DSL's 5 Mbps up leaves almost no room. Cable's 20 Mbps up is comfortable.
- Latency: DSL, cable and fiber are all low. The 5G plan varies with signal inside the house, which is a risk for paid work.
- Price: cable meets every need for $25 a month less than fiber.
Decision: cable. Fiber would also work, but here it costs more without solving a problem the family has.
Run 2: one input changes. The adult who works from home becomes a video editor and must upload 40 GB of footage to a client's cloud storage every evening. Nothing else changes. Use Lesson 3's conversions.
- Convert to bits: 40 GB x 8 = 320 Gb, which is 320,000 Mb.
- On cable's 20 Mbps upload: 320,000 / 20 = 16,000 seconds, about 4 hours 27 minutes at the full advertised rate.
- On fiber's 500 Mbps upload: 320,000 / 500 = 640 seconds, about 10 minutes 40 seconds.
- While cable's upload is saturated for four and a half hours, everyone else's calls and games compete with it.
Decision: fiber. The upload number, which barely mattered in Run 1, now decides everything, and only the symmetrical service handles it. The download speeds never changed. The household's use did.
Why this matters: a recommendation starts from the use, not from the biggest number in the advert. Find the one figure the use depends on (upload, latency, mobility or availability) and the right service usually becomes obvious.
Exam cues: words in the question and where they point
| Words in the question | Points to | The reasoning |
|---|---|---|
| Pulses of light, glass strand, ONT, immune to EMI | Fiber optic | Only fiber carries light, and light ignores electrical interference |
| Coaxial cable, same outlet as cable TV, F-connector, slows every evening | Cable | TV and data share one coax; homes on a node share capacity |
| Telephone jack, RJ11, microfilters, slower the farther from the phone company | DSL | High frequencies on thin copper fade with distance |
| Calls and internet on one phone line at once, faster down than up | ADSL | Voice and data use different frequency bands |
| Business DSL with equal upload and download speeds | SDSL | The symmetrical form of DSL |
| Antenna aimed at a tower, WISP, line of sight to the tower | Wireless: RF (fixed wireless) | A fixed radio link between two points on the ground |
| Remote area, dish, nothing wired available, rain fade, data caps | Wireless: satellite | Reaches almost anywhere with a view of the sky |
| Ping of 600 ms or more, dish aimed once at one fixed point in the sky | GEO satellite | 35,786 km each way turns into about half a second of delay |
| Ping near wired levels, dish needs a wide open view of the sky | LEO satellite | Close, fast-moving satellites: low delay, frequent handoffs |
| Moving vehicle, hotspot, tethering, SIM card, LTE, 5G | Wireless: cellular | The only service built to follow a user from cell to cell |
| Confusing pair: "line of sight" | RF if the path is to a tower; satellite if it is to the sky | Both need a clear path, so ask where the other end is |
| Confusing pair: advert says "fiber-powered" but the modem screws onto coax | Cable (hybrid fiber-coaxial) | A service is named for the link into your building |
| Confusing pair: a wireless router in the home | Wi-Fi, which is not an internet service type | Wi-Fi only links your devices to your router |
Common misconceptions
- "My internet is Wi-Fi." Wi-Fi only links devices to the router. A service such as fiber, cable or DSL sits behind it, and that service is what the exam asks about.
- "A faster plan will fix a laggy GEO satellite link." The lag comes from a round trip of about 143,000 km. More download speed does not shorten the trip; only a closer satellite or a different service does.
- "Cable and DSL slow down for the same reason." Both can congest, but cable's telltale is the evening dip on a shared node, and DSL's is speed set by the length of the phone line.
- "If the advert says fiber, the glass reaches my house." Only fiber to the home ends at an ONT in the building. Fiber-fed cable or DSL finishes the trip over copper.
- "The advertised speed is the speed I will get." Advertised figures are ranges a provider sells, not measurements at your address. Test your own line.
Looking back
- Fiber carries pulses of light through glass, is immune to EMI and is the service most often sold to homes with symmetrical speeds. Its main drawback is building cost, and fiber to the home ends at an ONT.
- Cable sends TV and data down one coaxial cable on separate frequency channels. Homes on a node share capacity, so the classic symptom is an evening slowdown, and uploads are far slower than downloads.
- DSL uses copper phone lines at frequencies above voice. ADSL lets calls and data share one line, SDSL has equal speeds both ways, and speed falls with distance, noticeably beyond about 3 miles.
- RF fixed wireless links an aimed antenna on your building to a WISP's tower. It needs line of sight to the tower and suffers in bad weather.
- A geostationary satellite sits 35,786 km up, so the four legs of a round trip add about 477 ms of delay that no equipment can remove. LEO satellites are much closer and have far lower latency.
- Satellite needs a dish, a satellite modem and a clear line of sight to the sky. High prices, data caps and rain fade are its usual complaints.
- Cellular (4G LTE and 5G) is the only service built to follow a moving user. Caps, throttling and changing signal limit it as a replacement for home broadband.
- Judge any service by download speed, upload speed, latency and availability. Advertised speeds are ranges, and the use decides which number matters.
Sources
- Congressional Research Service. (2023). Fixed Technologies Used to Deliver Broadband Service: A Primer and Considerations for Congress. everycrsreport.com
- Benton Institute for Broadband & Society. (n.d.). Broadband Technologies. benton.org
- CompTIA. (2023). CompTIA Tech+ FC0-U71 V6 certification exam: Exam objectives (Document version 4.0). lecbyo.files.cmp.optimizely.com
- Federal Communications Commission. (n.d.). Getting Broadband Q&A. fcc.gov
- Key terms
- Fiber-optic internet
- Internet service that carries data as pulses of light through glass strands. It is fast, often symmetrical and not affected by electromagnetic interference, but costly to build.
- Cable internet
- Internet service delivered over the coaxial cable used for cable TV, on frequency channels separate from TV. Homes on a neighborhood node share capacity, so speeds can drop at busy hours.
- Digital subscriber line (DSL)
- Internet service carried on copper telephone lines at frequencies above the voice band. Speed falls as the distance to the phone company's equipment grows.
- ADSL
- Asymmetric digital subscriber line, the home form of DSL. It downloads faster than it uploads, and phone calls keep working on the same line at the same time.
- Fixed wireless (RF)
- Internet service sent by radio between a provider's tower and an antenna fixed to the customer's building. It needs line of sight to the tower and is common in rural areas.
- Geostationary satellite
- A satellite about 35,786 km above the equator that appears fixed in the sky, so a dish can be aimed once. Each round trip adds roughly half a second of delay.
- Low Earth orbit satellite
- A satellite orbiting a few hundred kilometers up. It gives much lower latency than geostationary service but needs many satellites and a dish with an open view of the sky.
- Cellular broadband
- Internet service from a mobile carrier's 4G LTE or 5G network that keeps working as the user moves. It is often limited by data caps, throttling and signal strength.
- Latency
- The delay for data to make a round trip across a connection, measured in milliseconds and reported as ping. It is separate from download or upload speed.
How a Network Moves Data: Addresses, Routers, Switches and Firewalls
- Explain how a MAC address, an IP address and a port number each identify a different thing as data crosses a network.
- Tell apart the jobs of a modem, router, switch, access point and firewall, and trace a packet through them from a LAN out to a WAN.
- Match secure web browsing, file transfer and email tasks to the right protocols and ports, and tell encrypted options from unencrypted ones.
- Choose between the client/server and peer-to-peer models for a given situation.
8:02 a.m. at Harbor Street Tax: one click, five jobs
At 8:02 on a Monday morning, Priya opens her laptop at Harbor Street Tax and types her bank's web address into a browser. Harbor Street is a three-person accounting office invented for this lesson. About a second later, the bank's login page appears. In that second her request passed through five separate jobs inside the office: a wireless access point, a switch, a router, a firewall and a modem. Then it crossed networks owned by other companies, reached a server that may be hundreds of kilometers away, and came back. This lesson follows that trip. Then it follows three more from the same office: an email, a file sent to the bank, and a folder shared between two desks.
Exam objectives: CompTIA Tech+ FC0-U71 objective 2.8, "Identify basic networking concepts."[1] The objective has five parts. Network identifiers: IP address, media access control (MAC) address and ports. Basic network services: secure web browsing, file transfer and email. Networking devices: modem, router, switch, access point and firewall. Networking models: client/server and peer-to-peer. Network scopes: the local area network (LAN) and the wide area network (WAN).
Here is the office. Every name and address in it is fictional. The public addresses come from blocks reserved for documentation, so they never belong to a real machine.
| Item | What it is | Addresses |
|---|---|---|
| Cable modem | Supplied by the internet service provider (ISP). The coaxial cable from the street plugs into it. | Managed by the ISP |
| Office "router" | One box that is a router, a four-socket switch, a Wi-Fi access point, a DHCP server and a firewall | Office side 192.168.1.1; internet side 203.0.113.200 |
| Priya's laptop | On Wi-Fi | IP 192.168.1.23; MAC 3C-22-FB-7A-91-0E |
| Marco's desktop | Ethernet cable into the box's switch | IP 192.168.1.31; MAC 00-1A-2B-3C-4D-5E |
| Printer | Ethernet cable into the box's switch | IP 192.168.1.40; MAC 9C-B6-54-11-22-33 |
Packets, frames and the rules both ends follow
A web page is too big to send as one lump. Data crossing the web travels as many small chunks, and each chunk is called a Network packet.[2] Every packet has a header and a payload. MDN's beginner guide gives a simplified picture of the header: it holds the client's and server's IP addresses, plus numbering details such as the packet's number and the total number of packets in the transmission.[2] The payload is one slice of the actual data. In a real network, the addresses sit in the IP header and TCP does the numbering, as the next paragraph explains. The idea is the same either way: each piece carries enough information to be delivered and put back together.
Why cut data into pieces? A shared link works like a shared road. Small packets from many conversations can take turns on the same wire, so one person's 2-gigabyte video does not block everyone else. And if one packet is damaged, only that piece has to be sent again.
A Communication protocol is a set of rules that both ends agree to follow, much like two people agreeing to speak the same language. The internet's core pair is TCP/IP (Transmission Control Protocol/Internet Protocol). IP handles addressing and delivery: it gets each packet to the right machine. TCP handles the bookkeeping: it numbers the pieces, puts them back in order and asks again for any that go missing. A lighter relative, UDP (User Datagram Protocol), skips the bookkeeping. It suits live voice, where speed matters more than perfection. Web browsing, file transfer and email are protocols of their own, and they all run on top of TCP/IP.
For each local stretch of the trip, the packet is also wrapped in an Ethernet frame, or its Wi-Fi equivalent. A frame is an outer envelope that carries hardware addresses for that one stretch. Think of a parcel crossing the country. The address on the box stays the same the whole way, but each truck gets its own delivery slip for its own leg. The IP address is the address on the box. The MAC address is the slip for the current leg.
Remember: data crosses a network as packets. The IP addresses on a packet stay the same from end to end, but the frame around it is replaced on every local leg.
LAN and WAN: where the building ends
Priya's laptop, Marco's desktop and the printer share one Local area network (LAN). A LAN covers a single home, office, floor or campus, and it is usually owned by the people who use it. Speed inside a LAN is cheap. Ordinary office Ethernet runs at 1 gigabit per second (Gbps), and nobody pays a monthly fee per cable.
A Wide area network (WAN) links networks across cities, countries or continents. Organizations rarely own those long cables. They rent capacity from an ISP or a carrier, so a WAN link costs money every month and is usually slower than the LAN. The internet is the largest WAN: a network of networks. A bank that joins branches in four cities through leased carrier lines has built a private WAN.
The boundary between the two is a physical place: the router. On one side are the office's private addresses. On the other side are the ISP and everything beyond it. CompTIA's acronym list includes a few related scopes:
- PAN or WPAN, the personal area network: a phone and its earbuds over Bluetooth.
- WLAN, the wireless LAN: the Wi-Fi part of a LAN.
- MAN, the metropolitan area network: a network that spans one city.
On the exam, geography words give the scope away. "A home", "one building" or "a floor" means a LAN. "Branch offices in different cities" or "the internet" means a WAN.
Three identifiers: MAC address, IP address and port
To get the login page back to Priya, the network has to answer three questions. Which piece of hardware on this local network? Which machine, anywhere in the world? Which program on that machine? Each question has its own identifier.
On Windows, typing ipconfig /all in a Command Prompt shows the first two identifiers. macOS and Linux have similar commands, such as ifconfig and ip addr. Here is a shortened example for Priya's Wi-Fi adapter. The values are fictional, but the layout matches what Windows prints:
Wireless LAN adapter Wi-Fi:
Physical Address. . . . . . . . . : 3C-22-FB-7A-91-0E
DHCP Enabled. . . . . . . . . . . : Yes
IPv4 Address. . . . . . . . . . . : 192.168.1.23(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
DHCP Server . . . . . . . . . . . : 192.168.1.1
DNS Servers . . . . . . . . . . . : 192.168.1.1
The MAC address (media access control address) is the "Physical Address" line. It is a 48-bit number given to the network interface card (NIC) when the card is made. It is written as 12 hexadecimal digits in six pairs, separated by hyphens on Windows and usually by colons elsewhere. The first three pairs normally identify the manufacturer. Here the hexadecimal from Lesson 2 pays off: each hex digit stands for 4 bits, and 12 digits times 4 bits is 48 bits.
Switches and access points deliver frames by MAC address, and a MAC address never travels past a router. There is one modern twist. Phones and laptops now often use a randomized MAC address for each Wi-Fi network, so shops and venues cannot track them. "Burned in at the factory" describes the default, not an unbreakable rule.
The IP address (Internet Protocol address) is the logical address that routers use to move packets between networks. Priya's address, 192.168.1.23, is an IPv4 address. IPv4 addresses are 32 bits long, written as four decimal numbers called octets. Each octet is 8 bits, so no octet can be larger than 255 (binary 11111111). IPv4 has only about 4.3 billion possible addresses, which is not enough for every device on Earth. The newer IPv6 uses 128 bits instead. It is written as eight groups of hexadecimal digits separated by colons, and a run of all-zero groups can be shortened to a double colon, as in 2001:db8::1a2b.
An IP address is not built into the hardware. It comes from configuration and is usually handed out automatically by a Dynamic Host Configuration Protocol (DHCP) server. At Harbor Street, the office router plays that role. At a coffee shop, Priya's laptop would get a different IP address from the shop's router, while its factory MAC address stayed the same.
The subnet mask, 255.255.255.0, says that the first three octets (192.168.1) name the network and the last octet names the device. That lets the laptop decide, before it sends anything, whether it needs a router at all. A destination that starts with 192.168.1 is on this LAN, and the laptop reaches it directly. Anything else goes to the Default gateway, which is the router at 192.168.1.1.
Addresses that begin with 10, with 172.16 through 172.31, or with 192.168 are private. Millions of LANs reuse them, and they are not routed on the public internet. Harbor Street's router holds one public address from the ISP, 203.0.113.200. On the way out, it uses Network address translation (NAT) to swap each device's private address for that public one. It keeps a table of the swaps, so every reply finds its way back to the right device inside.
The port number finishes the job. One server may run a website and a mail service at the same time. A port number is a 16-bit number, from 0 to 65535, carried in the TCP or UDP header, and it names the program the data is for. Servers listen on agreed, well-known numbers below 1024. A client picks a temporary high number for its own end of each conversation.
Priya's browser talks from 192.168.1.23 port 51544 to the bank's server on port 443. An IP address plus a port identifies one end of one conversation, which is how twenty open browser tabs never mix up their replies. These are the port numbers to know. The rest of the lesson refers back to this table.
| Port | Protocol | Job | Encrypted? |
|---|---|---|---|
| 20, 21 | FTP | File transfer (21 for commands, 20 for data) | No |
| 22 | SSH, SFTP | Secure remote command line; secure file transfer | Yes |
| 25 | SMTP | Mail passed between mail servers | Not by itself |
| 53 | DNS | Looking up the IP address for a name | Not by itself |
| 80 | HTTP | Web pages | No |
| 110 and 995 | POP3 and POP3S | Downloading mail to one device | 110 no; 995 yes |
| 143 and 993 | IMAP and IMAPS | Reading mail kept on the server | 143 no; 993 yes |
| 443 | HTTPS | Web pages over TLS | Yes |
| 465 and 587 | SMTPS; SMTP submission | A mail program handing outgoing mail to its server | Yes (587 switches encryption on after connecting) |
| 990 | FTPS | FTP inside TLS (one common mode) | Yes |
Watch the vocabulary. "Port" also means a physical socket, like the USB ports from Lesson 9 or the numbered sockets on a switch. When an exam question talks about services, protocols or firewall rules, "port" means the number.
| Identifier | Example | Where it comes from | Who reads it | Crosses routers? |
|---|---|---|---|---|
| MAC address | 3C-22-FB-7A-91-0E | Set on the NIC at the factory (sometimes randomized) | Switches and access points | No; it is replaced on each leg |
| IP address | 192.168.1.23 | Configuration, usually from DHCP | Routers | Yes (NAT swaps private for public at the edge) |
| Port number | 443 | Chosen by the service, or picked at random by the client | The operating system at each end; firewalls | Yes |
Remember: a MAC address identifies hardware on the local network, an IP address identifies a machine across networks, and a port number identifies the program on that machine.
Leaving the building: access point, switch, router and modem
The bank's address does not start with 192.168.1, so Priya's laptop addresses its frame to the router's MAC address. Now the hardware takes over.
Wireless access point. Priya's frame first travels by radio to a Wireless access point (AP). An AP is a bridge between radio and cable. It passes wireless frames onto the wired LAN and passes wired traffic back out to wireless devices. It announces its network by name. That name is the Service set identifier (SSID), which CISA describes as a unique name that identifies a particular wireless local area network.[3] An AP does not route between networks, and on its own it does not connect anyone to the internet. Larger offices mount several APs on the ceilings, all wired back to switches, so people can move between rooms without losing the connection. Lesson 13 covers setting up Wi-Fi.
Network switch. Marco's desktop and the printer plug into a Network switch, which connects wired devices on the same LAN. A switch learns as it goes. Each time a frame arrives, the switch notes the sender's MAC address and the socket the frame came in on, and builds a table from those notes. When a frame arrives for a MAC address it already knows, the switch sends it out of the matching socket only, instead of to every device.
Below is a logical view of the table inside Harbor Street's box, with fictional values. In an all-in-one box, the access point and the router connect to the built-in switch internally, so those two rows are internal links, not sockets with cables in them. If the three devices were separate boxes, those links would be real cables in real sockets.
| Connection | MAC address learned | Device behind it |
|---|---|---|
| Internal link to the access point | 3C-22-FB-7A-91-0E | Priya's laptop, over Wi-Fi |
| Socket 1 | 00-1A-2B-3C-4D-5E | Marco's desktop |
| Socket 2 | 9C-B6-54-11-22-33 | Printer |
| Internal link to the router | F0-9F-C2-08-77-01 | The router's office side |
An unmanaged switch, the kind sold for homes and small offices, needs no setup: plug it in and it starts learning. A switch reads MAC addresses, not IP addresses, and it never sends traffic to a different network on its own.
Router. Next the frame reaches the Router, the device that joins separate networks and forwards packets between them by destination IP address. The router removes the local frame and reads the destination IP address in the packet header. It looks that address up in its routing table, then sends the packet out of the matching connection inside a new frame. A small office's routing table has just two lines:
| Destination | Send it to | Meaning |
|---|---|---|
| 192.168.1.0, mask 255.255.255.0 | The office-side connection | Office devices: deliver directly |
| 0.0.0.0/0 | The ISP's router, through the internet side | Everything else |
The second line is the default route. In the notation 0.0.0.0/0, the /0 says that zero bits have to match, so the line catches any address the lines above it did not. Every router between Harbor Street and the bank repeats the same steps with a bigger table: read the destination, pick the next hop, pass the packet on. No router knows the whole path. Each one only knows which neighbor is one step closer.
Modem. The last box before the street is the Modem, short for modulator-demodulator. The ISP's line does not carry Ethernet. Cable service sends radio-frequency signals over coaxial cable, a DSL (Digital Subscriber Line) service uses telephone wire, and fiber uses light. The modem converts between the line's signal and the Ethernet the router uses. It does not route packets, hand out addresses or filter traffic. On fiber, the matching box is usually called an optical network terminal. Lesson 11 compared these service types.
In homes and small offices, several of these jobs often share one box. CISA notes that many vendors, and some ISPs, sell integrated small office and home office routers that also include firewall features.[4] Some ISPs go further and supply one gateway box with the modem built in as well. The exam asks about functions, so learn the job each function does, whatever the label on the case says.
| Device | What it reads | What it does | Where it works |
|---|---|---|---|
| Modem | The ISP line's signal | Converts between the line signal and Ethernet | At the edge, between the router and the ISP's line |
| Router | Destination IP address | Forwards packets between networks | Between the LAN and the WAN, or between any two networks |
| Switch | Destination MAC address | Sends each frame out of the right socket | Inside one wired LAN |
| Access point | Wireless frames | Bridges Wi-Fi devices onto the wired LAN | Inside one LAN, at its radio edge |
| Firewall | Addresses, ports, sessions, sometimes applications | Allows or blocks traffic according to rules | At the network boundary, or on each computer |
Remember: a switch moves frames inside a LAN by MAC address, a router moves packets between networks by IP address, an access point puts Wi-Fi devices onto the LAN, and a modem translates the ISP's signal.
The network firewall: a rulebook at the border
On its way to the modem, Priya's packet passes the firewall. One NIST definition calls a firewall a gateway that limits access between networks according to local security policy.[5] "Local security policy" simply means the owner's rules. NIST's glossary also defines a packet filter as a routing device that controls access by host address and communication session.[6] That is a reminder that routing and filtering often happen in the same box. CISA lists what the rules can match: a firewall can block data from particular network addresses, applications or ports while letting necessary traffic through.[4]
A firewall reads its rules from top to bottom, and the first rule that matches decides. Here is a simplified, fictional rule set for Harbor Street's edge firewall:
| Rule | Direction | Port | Action |
|---|---|---|---|
| 1 | Outbound from office devices | 22, 53, 80, 443, 587, 993 | Allow |
| 2 | Inbound to 203.0.113.200 | Any | Allow only replies to a session an office device opened |
| 3 | Any | Any | Block |
Work three packets through it.
- Priya's request to the bank, port 443. It is outbound, and rule 1 lists port 443, so it is allowed. The bank's reply comes back inbound, and rule 2 lets it in because it belongs to a session Priya's laptop opened. A firewall that keeps track of sessions like this is called stateful. That is why a home network needs no inbound rule for every website you visit.
- A stranger tries to connect to 203.0.113.200 on port 21. It is inbound and is not a reply to anything, so rule 2 does not apply and rule 3 blocks it.
- A program on Marco's desktop tries to connect out to port 4444. Rule 1 does not list port 4444, so rule 3 blocks it. Now change one input: replace rule 3 with "allow all outbound", a common home default. The same connection now goes straight out. If that program were malware sending out stolen files, that one line would be the difference between a contained infection and a data breach.
Firewalls come in two placements. A network (hardware) firewall sits between the LAN and the internet and protects every device behind it. A host (software) firewall runs on each computer. CISA says the advantage of a software firewall is that it can control the network behavior of individual applications on that system.[4] Windows, macOS and Linux all include one. A host firewall keeps protecting a laptop on coffee-shop Wi-Fi, far from the office's edge firewall.
A firewall judges traffic, not intentions. CISA states that firewalls mainly protect against malicious traffic, not malicious programs.[4] Suppose Priya opens an infected attachment. The malware runs with her permissions and can send data out on an allowed port such as 443. A host firewall with per-application rules might catch it. Anti-malware software and careful habits cover what traffic rules cannot.
Secure web browsing: HTTPS from a name to a padlock
Back to 8:02. Priya typed a name, www.bank.example, but packets need an IP address. Here is the trip in four steps.
- Find the address. The browser asks the Domain Name System (DNS), the internet's directory of names, for the address of the server the website lives on.[2] Her ipconfig output listed 192.168.1.1 as the DNS server, so the router takes the question on port 53 and passes it to the ISP's DNS servers. The reply comes back: 203.0.113.10.
- Build a secure channel. The browser opens a TCP connection to 203.0.113.10 on port 443 and starts Transport Layer Security (TLS). TLS is a protocol that lets a client communicate securely with a server across an untrusted network.[7] In a short exchange called the handshake, the two sides agree on a TLS version, the server presents its certificate, and they agree on a secret key. The current version is TLS 1.3.[7]
- Ask for the page. Inside that encrypted channel, the browser sends an ordinary HTTP request.
- Read the reply. The response begins with a status code. 200 OK means success, 404 Not Found means the resource does not exist, and 403 Forbidden means the user is not allowed to see it.[8] The browser then sends more requests for the images and scripts the page refers to.
Here is the request from step 3, followed by the first lines of a successful reply (fictional site):
GET /login HTTP/1.1
Host: www.bank.example
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64)
Accept: text/html
HTTP/1.1 200 OK
Content-Type: text/html
HTTPS is simply HTTP carried inside TLS. CompTIA's acronym list expands it as Hypertext Transfer Protocol over Secure Sockets Layer. SSL was the older protocol that TLS replaced, and today's HTTPS uses TLS, so expect to see either name. TLS gives a connection three protections:
- Encryption: the data is scrambled while it travels, so an eavesdropper cannot read it.[7]
- Integrity: nobody can secretly change the data on the way without being detected.[7]
- Authentication: on the web, the server normally proves who it is to the browser, but the browser does not usually prove who it is to the server.[7] The proof is the server's digital certificate. It binds the site's keys to its domain name, so the browser knows it really reached that name.[7]
MDN calls HTTPS the defense against a manipulator-in-the-middle (MITM) attack, in which someone slips between the browser and the server to read or change the traffic.[7] On coffee-shop Wi-Fi, anyone nearby can capture Priya's packets. With HTTPS, all they see is scrambled data headed for 203.0.113.10.
Now change one input: she types http://www.bank.example instead. The browser connects on port 80, and her login crosses the network as readable text that anyone on the same network could read or quietly change. Well-run sites answer a port 80 request by sending the browser straight to the HTTPS version, and browsers mark plain HTTP pages "Not secure".
Be exact about what the padlock means. It means the connection is encrypted and leads to the domain shown in the address bar. It does not mean the business is honest. A scammer can get a valid certificate for a lookalike domain such as bank-example-login.com. Some current browsers, Chrome among them, have replaced the padlock with a neutral settings icon, because people kept reading the padlock as "safe". The exam still says padlock, and the check is the same either way: look for https:// and read the exact domain name.
Remember: HTTPS is HTTP inside TLS, on port 443. It provides encryption, integrity and server authentication. It proves which domain you reached, not that the domain's owner is honest.
File transfer: FTP, SFTP and FTPS
At 10:15, Priya has to send a client's tax file to the bank's file server. The bank's instructions name three protocols, and two of them have almost the same name.
| Protocol | How it is built | Login and file on the wire |
|---|---|---|
| FTP (File Transfer Protocol) | The original protocol, with separate command and data connections | Readable text |
| SFTP (Secure File Transfer Protocol, also called the SSH File Transfer Protocol) | A different protocol that runs inside one SSH (Secure Shell) connection | Encrypted |
| FTPS (in practice, FTP over SSL/TLS; CompTIA's acronym list expands it as File Transfer Protocol over Secure File Transfer Protocol) | Ordinary FTP commands wrapped in TLS, the way HTTPS wraps HTTP | Encrypted |
FTP comes from the early internet, when the network was a small group of universities that trusted one another. It encrypts nothing. On any link where someone can capture packets, the password is sitting right there in the capture. That makes it the wrong choice for a tax file.
The pair that trips people up is SFTP and FTPS. FTPS is the old FTP protocol, unchanged, running inside a TLS tunnel. SFTP is not FTP at all. It is a separate file transfer protocol that runs over SSH on port 22. Both encrypt the login and the file. The difference matters to whoever writes the firewall rules, because the two use different ports. A fourth, everyday option is a web portal's upload button, which sends the file over HTTPS.
The bank supports SFTP, so Priya connects on port 22, which Harbor Street's rule 1 already allows. Now flip the input: suppose the bank offered only FTP on port 21. The right move would be to ask for SFTP, FTPS or a secure portal, not to send the file and hope. Inside an office, Windows shared folders use yet another protocol, SMB (Server Message Block), on port 445. Tech+ does not list SMB, but you will meet it in A+ (CS 105) and Network+.
Email: SMTP to send, POP3 or IMAP to collect
At 11:30, Priya sends a client a summary and checks her inbox. Her mail program's settings (fictional) show two different servers. Incoming mail comes from imap.harborstreet.example using IMAPS on port 993. Outgoing mail goes to smtp.harborstreet.example on port 587, with encryption required. Sending and receiving use different protocols.
- Simple Mail Transfer Protocol (SMTP) sends mail. Priya's program hands the message to her own mail server on port 587, or on port 465 for SMTPS. Her server then passes it to the recipient's mail server, traditionally on port 25. SMTP only pushes mail toward its destination. It never fetches mail for you to read.
- Post Office Protocol version 3 (POP3) downloads messages to one device, on port 110, or on port 995 for POP3S over TLS. Many setups then delete the messages from the server, though that is usually a setting you can change. The downloaded mail can be read offline, but it lives on that one device.
- Internet Message Access Protocol (IMAP) leaves mail on the server, on port 143, or on port 993 for IMAPS over TLS. Every device sees the same folders and the same read and unread marks. CompTIA's acronym list expands IMAP as Internet Mail Access Protocol. Both names refer to the same protocol.
Here is a worked example. Priya reads mail on her laptop during the day and on her phone at night. With IMAP, a message she reads and files at noon shows as read, in the same folder, on her phone that evening. Both devices are just views of one mailbox on the server.
Now flip the input. Suppose her laptop is set up with POP3 and "delete from server after download". At 9:00, the laptop downloads twelve new messages and removes them from the server. That evening, her phone checks the server and finds nothing. The mail is not lost: it is sitting on a laptop in the office. Anyone who reads mail on more than one device needs IMAP. POP3 suits a single computer that must keep mail while offline.
Webmail, where you read mail in a browser, uses HTTPS between you and the provider. Behind the scenes, the provider's servers still pass mail to other servers with SMTP.
Who serves whom: client/server and peer-to-peer
Everything Priya has done so far follows the Client-server model. Her browser is the client, the side that asks. The bank's machine is the server, the side that answers. MDN describes servers as computers that store webpages, sites or apps and send copies to clients.[2] "Server" names a role, not a special kind of box: any computer running software that answers requests is acting as a server.
That afternoon, Marco shares a folder of templates from his desktop and Priya opens it. Meanwhile, Marco opens a folder that Priya shares. Each machine is a client and a server at the same time, and no central machine is in charge. This is Peer-to-peer (P2P) networking. Sending a photo straight to a nearby phone is another example. So is BitTorrent, where every downloader also uploads pieces of the file to other people.
| Question | Client/server | Peer-to-peer |
|---|---|---|
| Who provides resources? | Dedicated servers | Every participating device |
| Who controls access? | One administrator and one set of accounts | Each machine's owner, one machine at a time |
| Backups | Done in one place | Scattered across machines and easy to miss |
| If one machine is off | Clients carry on, unless it is the server | Whatever that machine shared disappears |
| Cost and scale | Higher cost; grows to thousands of users | Nearly free; suits a handful of devices |
For three people sharing templates, peer-to-peer works fine: it is free and takes minutes to set up. Now flip the input. Harbor Street grows to 25 staff. Client records need nightly backups, and only the two partners may open the payroll folder. Then Marco goes on vacation and turns off his desktop, and the templates vanish for everyone. The firm now needs client/server: a file server, a network attached storage (NAS) box or a cloud service. That gives it central accounts, central permissions and one place to back up.
The whole trip, and the print job that never leaves the room
Here is Priya's 8:02 login page from start to finish.
- DNS turns www.bank.example into 203.0.113.10.
- The laptop sees that 203.0.113.10 is not on the 192.168.1 network. It builds a packet from 192.168.1.23 port 51544 to 203.0.113.10 port 443, inside a frame addressed to the default gateway's MAC address.
- The access point carries the frame from radio onto the wired LAN, and the switch delivers it to the router.
- The router picks the default route, and NAT swaps in the public address 203.0.113.200. The firewall allows port 443 and records the session.
- The modem converts the signal for the cable line, and routers across the WAN forward the packet hop by hop to the bank.
- The TLS handshake, the HTTP request and the 200 OK follow. Replies come back the same way in reverse: the firewall admits them because they match the recorded session, and NAT hands them to 192.168.1.23.
Now change one input. At 2:00 p.m. Priya prints to 192.168.1.40. That address is on the 192.168.1 network, so the laptop does not need the router. It asks the LAN which device has 192.168.1.40, a lookup called ARP (Address Resolution Protocol). It learns the printer's MAC address, 9C-B6-54-11-22-33, and sends the frame directly through the access point and the switch. Routing, NAT, the edge firewall, the modem and DNS all sit idle.
That contrast is a troubleshooting tool from Lesson 4. Suppose the modem's online light goes dark at 3:00 p.m. The office can still print and open Marco's folder, because those trips never leave the LAN. Every website fails, because those trips must cross the modem. "Local works, internet does not" points you toward the modem, the router's internet side or the ISP, not toward the laptop.
Exam cues: what the question says, and where it points
| If the question says | Think | Commonly confused with |
|---|---|---|
| Forwards frames by hardware address within one LAN | Switch | Router, which forwards by IP address between networks |
| Default gateway; connects the LAN to the internet | Router | Modem, which only converts the signal |
| Converts the cable, DSL or fiber signal | Modem | Router |
| Lets wireless devices join the wired LAN; broadcasts an SSID | Access point | Router (a home router contains one) |
| Allows or blocks traffic by address, port or application | Firewall | Anti-malware, which inspects programs |
| Physical address; 12 hexadecimal digits | MAC address | IP address |
| Logical address; assigned by DHCP; dotted decimal | IP address | MAC address |
| Which service; 443, 25, 22 | Port number | A physical socket |
| Mail stays on the server and syncs across devices | IMAP (IMAPS on 993) | POP3, which downloads to one device |
| Sending mail; mail between servers | SMTP | POP3 and IMAP, which retrieve mail |
| File transfer over SSH, port 22 | SFTP | FTPS, which is FTP inside TLS |
| Padlock; certificate; encrypted web page; port 443 | HTTPS | HTTP on port 80 |
| No central server; each device shares and requests | Peer-to-peer | Client/server |
| One building, versus offices in several cities | LAN, versus WAN | MAN, which covers one city |
Common misconceptions
- "The modem and the router are the same thing." They often share a case, but they do different jobs. The modem converts the ISP line's signal. The router forwards packets between networks and usually runs DHCP, NAT and the firewall.
- "A MAC address and an IP address are two names for one address." A MAC address names a network card on the local network and is replaced on every leg. An IP address names a machine's place in the wider network and travels end to end.
- "The padlock means the website is safe." It means the connection is encrypted to the domain in the address bar. A scam site on a lookalike domain can show a valid padlock.
- "SFTP is just FTP with encryption added." That description fits FTPS. SFTP is a separate protocol that runs over SSH on port 22.
- "I have a firewall, so I don't need anti-malware." A firewall filters traffic by rules. Malware you run yourself can send data out on a port the firewall allows.
Recap
- Data travels as packets. The IP addresses in a packet's header stay the same from end to end, while the frame around it, which carries MAC addresses, is replaced on every local leg.
- A MAC address is 48 bits, written as 12 hexadecimal digits. Switches and access points use it inside one LAN, and it never crosses a router.
- An IPv4 address is 32 bits, written as four octets from 0 to 255. IPv6 is 128 bits, written in hexadecimal. IP addresses are logical and usually come from DHCP.
- A destination on the same subnet is reached directly. Any other destination goes to the default gateway, which is the router.
- A port number, from 0 to 65535, picks out the service: 21 FTP, 22 SSH and SFTP, 25 SMTP, 53 DNS, 80 HTTP, 110 POP3, 143 IMAP, 443 HTTPS, 993 IMAPS, 995 POP3S.
- A switch forwards by MAC address inside a LAN. A router forwards by IP address between networks. An access point bridges Wi-Fi onto the wired LAN. A modem converts the ISP's line signal. A firewall allows or blocks traffic by rules.
- HTTPS is HTTP inside TLS on port 443. It provides encryption, integrity and server authentication through a certificate tied to the domain name.
- SMTP sends mail, POP3 downloads it to one device, and IMAP keeps it on the server and syncs it. SFTP (over SSH) and FTPS (FTP inside TLS) encrypt file transfers; plain FTP encrypts nothing.
- Client/server puts resources and control on central servers, while in peer-to-peer every device both shares and requests. A LAN covers one site, and a WAN links sites far apart; the internet is the largest WAN.
Sources
- CompTIA. (2023). CompTIA Tech+ FC0-U71 V6 certification exam: Exam objectives (Document version 4.0). lecbyo.files.cmp.optimizely.com
- MDN Web Docs (Mozilla). (n.d.). How the web works. developer.mozilla.org
- CISA. (n.d.). Home Network Security (ST15-002). cisa.gov
- CISA. (n.d.). Understanding Firewalls for Home and Small Office Use. cisa.gov
- NIST CSRC. (n.d.). firewall (Glossary). csrc.nist.gov
- NIST CSRC. (n.d.). packet filter (Glossary). csrc.nist.gov
- MDN Web Docs (Mozilla). (n.d.). Transport Layer Security (TLS). developer.mozilla.org
- MDN Web Docs (Mozilla). (n.d.). Client-server overview. developer.mozilla.org
- Key terms
- MAC address
- Media access control address: a 48-bit hardware address, written as 12 hexadecimal digits, that identifies a network interface card on the local network. Switches and access points use it, and it is replaced on each leg of a trip across routers.
- IP address
- Internet Protocol address: a logical address, usually assigned by DHCP, that identifies a device's place in a network so routers can deliver packets between networks. IPv4 uses 32 bits and IPv6 uses 128 bits.
- Port number
- A number from 0 to 65535 in a TCP or UDP header that identifies which program or service on a device the data is for, for example 443 for HTTPS.
- Router
- A device that connects separate networks and forwards packets between them by reading destination IP addresses and consulting a routing table. It usually serves as a LAN's default gateway.
- Network switch
- A device that connects wired devices within one LAN. It learns which MAC address is reached through each socket and forwards each frame only out of the matching socket.
- Wireless access point
- A device that bridges Wi-Fi devices onto a wired LAN, converting between radio and cable and announcing its network by an SSID.
- Modem
- Modulator-demodulator: a device that converts between the signals on an ISP's line (cable, DSL telephone wire or fiber) and the Ethernet used by a router.
- Firewall
- A device or program that allows or blocks network traffic according to rules based on addresses, ports, sessions or applications, placed at a network boundary or on an individual computer.
- HTTPS
- HTTP carried inside a TLS connection, normally on port 443. It encrypts web traffic, detects tampering and authenticates the server with a certificate tied to its domain name.
- Peer-to-peer
- A networking model in which each device both provides and requests resources, with no central server in charge. It suits a handful of devices but scales poorly.
Wi-Fi at Home and in a Small Office
- Match 802.11n, 802.11ac and 802.11ax to their Wi-Fi generation names, bands and main improvements, and predict which standard a connection uses when old and new devices share a network.
- Explain what limits real wireless speed, and identify the bottleneck from a device's link rate and the internet plan.
- Compare the 2.4 GHz, 5 GHz and 6 GHz bands, and choose a band for a device based on its distance, the obstacles in the way and its hardware.
- Tell interference from attenuation by their symptoms, and propose a suitable fix for each.
Twelve-ten, and the front desk drops off Wi-Fi
At about 12:10 every weekday, the check-in tablet at the front desk of a small physiotherapy clinic drops off Wi-Fi for a minute or two. In treatment room 3, at the far end of the ground floor, a laptop playing exercise videos buffers every few seconds. Upstairs, the owner's video calls freeze when she walks from her desk toward the street window. The clinic pays for a fast internet plan and the provider's line tests clean, so the trouble is inside the building. The clinic has one router, about eight years old. It sits on the floor of a metal cabinet in the ground-floor hallway, a few steps from the staff kitchen. The clinic is a fictional example, but small offices have each of these problems.
Each symptom has a different cause. To find them you need four ideas: which version of Wi-Fi each device speaks, what really limits wireless speed, which radio band each device uses, and what weakens or disrupts a signal as it crosses a building. We build those ideas one at a time, then go back to the clinic.
Exam objectives: 2.9 Explain the basic capabilities of a small wireless network.[1] The objective lists 802.11n/ac/ax, older versus newer standards, speed considerations, interference and attenuation factors, and three band options: 2.4GHz, 5GHz and 6GHz.
What a small wireless network is made of
A Wireless LAN (WLAN, Wireless Local Area Network) is a local network whose devices connect by radio instead of by cable. At home and in small offices, "Wi-Fi" and "WLAN" mean the same thing. The radio rules come from IEEE 802.11, a family of standards from the Institute of Electrical and Electronics Engineers. Each revision adds letters after 802.11, such as n, ac or ax.
As Lesson 12 showed, the box most people call a router does several jobs. It routes traffic to the internet, switches traffic between local devices, filters traffic with a firewall and hands out addresses with DHCP (Dynamic Host Configuration Protocol). It also contains a Wireless access point, the radio part that connects wireless devices (called clients) to the wired network. A larger office may cable several separate access points back to one router.
The rest of the lesson relies on three more terms.
- SSID (Service Set Identifier): the network name a client sees in its list, such as ClinicStaff.
- A frequency band: a range of radio frequencies that Wi-Fi may use. Home Wi-Fi uses bands near 2.4, 5 and 6 GHz. GHz (gigahertz) means billions of cycles per second, the unit you met for processor clock speed in Lesson 3. Think of a band as a road.
- A channel: a slice of a band, like one lane of that road. A network uses one channel per band at a time. The channel's width, measured in megahertz (MHz), sets how much data it can carry. A 40 MHz channel is two 20 MHz channels joined together.
One fact explains much of what follows. All the devices on a channel share the same air and take turns. While one transmits, the others nearby wait. A switch gives each device its own cable. Wi-Fi is more like a single-lane road with traffic lights. So a network's speed depends on how fast each device can talk, and also on how many devices are waiting and how long each one holds the air.
802.11n, 802.11ac and 802.11ax: three generations, two names each
Wi-Fi standards have two sets of names. The IEEE uses technical ones: 802.11n, 802.11ac and 802.11ax. The Wi-Fi Alliance is the industry group that tests and certifies Wi-Fi products, and it prints generation numbers on boxes. Wi-Fi 4 is 802.11n, Wi-Fi 5 is 802.11ac and Wi-Fi 6 is 802.11ax. The Alliance's Wi-Fi 6 certification launched in 2019 and covers devices based on IEEE 802.11ax.[2] The exam can use either name, so learn the pairs.
| IEEE standard | Generation name | Bands | Widest channel | What it added |
|---|---|---|---|---|
| 802.11b, 802.11a, 802.11g | Usually just called legacy | b and g: 2.4 GHz; a: 5 GHz | 20 MHz | The first widely sold Wi-Fi; one data stream at a time |
| 802.11n | Wi-Fi 4 | 2.4 GHz and 5 GHz | 40 MHz | MIMO: several antennas sending several streams at once; 40 MHz channels |
| 802.11ac | Wi-Fi 5 | 5 GHz only | 160 MHz | 80 and 160 MHz channels, denser packing of bits, multi-user MIMO for downloads |
| 802.11ax | Wi-Fi 6; Wi-Fi 6E when it also uses 6 GHz | 2.4 GHz and 5 GHz; 6E adds 6 GHz | 160 MHz | OFDMA, target wake time, better handling of crowded networks |
802.11n (Wi-Fi 4) brought MIMO (multiple input, multiple output). A MIMO device has two or more antennas. It can send two or more separate data streams at the same moment on the same channel, and two streams carry roughly twice as much as one. 802.11n could also join two 20 MHz channels into one 40 MHz channel. It works in both 2.4 and 5 GHz. But a standard that allows two bands does not guarantee that a device has two radios. Many cheap 802.11n gadgets, such as smart plugs, older printers and budget tablets, have only a 2.4 GHz radio. That detail matters at the clinic.
802.11ac (Wi-Fi 5) works only at 5 GHz and went for raw speed. It added 80 and 160 MHz channels and a denser way of packing bits into the signal. It also added multi-user MIMO, which lets the access point send to several clients at once in the download direction. Because 802.11ac has no 2.4 GHz mode, a "Wi-Fi 5 router" still runs 802.11n on its 2.4 GHz radio.
802.11ax (Wi-Fi 6) aimed at efficiency when many devices share the air. The Wi-Fi Alliance promoted it for challenging places with many connected devices, naming stadiums, airports and industrial parks.[2] Its main tools include orthogonal frequency division multiple access (OFDMA) and target wake time (TWT).[3]
- OFDMA splits one channel into many small sub-channels, so the access point can serve several devices in one turn. Picture a van that drops parcels at five houses on one trip instead of making five trips. The small messages from phones, sensors and smart speakers no longer take up a whole turn each.
- Target wake time lets the access point agree a schedule with a device, so a battery-powered sensor can sleep until its slot. It saves battery. It does not add speed.
How do the three compare on speed? As a rule, each newer generation allows higher link rates than the one before when the band, channel width and antennas are the same. The gains differ in kind, though. Most of 802.11ac's jump came from wider channels in a less crowded band. 802.11ax raises the top rate more modestly. Its bigger gain shows under crowding, when OFDMA lets many devices share each turn instead of queueing for their own. In a flat with two laptops, Wi-Fi 6 may feel only a little faster than Wi-Fi 5. In a busy office full of devices, the difference is clearer.
Wi-Fi 6E is the same 802.11ax standard; the E means the device can also use the 6 GHz band. Shops now also sell Wi-Fi 7 (IEEE 802.11be), but the FC0-U71 objectives stop at 802.11ax. Box labels such as AX3000 add up the theoretical top rates of all of a router's radios, so no single device ever sees that number.
In short: 802.11n is Wi-Fi 4 and introduced multiple antennas and streams. 802.11ac is Wi-Fi 5; it works only at 5 GHz and chased speed with wide channels. 802.11ax is Wi-Fi 6; it chased efficiency in crowded networks, and it is called Wi-Fi 6E when it adds the 6 GHz band.
Older and newer standards on the same network
Wi-Fi is backward compatible: a newer access point can still talk to older devices, using the older standard in the same band. Each connection runs at the newest standard that both ends support. The router cannot upgrade a client. An old client also does not drag the other devices' connections down to its standard, though it still costs them time, as you will see.
| Device | Its Wi-Fi hardware | Resulting connection |
|---|---|---|
| Phone bought last year | Wi-Fi 6 (802.11ax), dual-band | 802.11ax on 5 GHz |
| 2017 laptop | Wi-Fi 5 (802.11ac), dual-band | 802.11ac on 5 GHz |
| Smart thermostat | 802.11n, 2.4 GHz only | 802.11n on 2.4 GHz |
| New tablet | Wi-Fi 6E (802.11ax with 6 GHz) | 802.11ax on 5 GHz, because this router has no 6 GHz radio |
The last row catches people out. A 6 GHz connection needs 6 GHz support on both ends. A Wi-Fi 6E tablet on a plain Wi-Fi 6 router behaves as Wi-Fi 6. In the same way, a plain Wi-Fi 6 laptop cannot use a Wi-Fi 6E router's 6 GHz band.
Router settings screens often list modes for each band, such as 802.11b/g/n/ax. Apple advises enabling every mode the router offers, so that all devices, older ones included, can connect using the fastest radio mode they support.[4] Switching off the old modes to make the network "faster" mostly locks old devices out.
Older devices still have a cost. The air is shared, so a slow sender holds the channel longer to move the same data, and everyone else on the channel waits. This is one reason the Wi-Fi Alliance promoted 6 GHz as free of the overhead and traffic that legacy devices create.[5] Old hardware may also support only old security settings. Lesson 32, Locking Down a Small Wireless Network, covers that.
Speed considerations: why the number on the box never shows up
A Wi-Fi device reports a link rate. This is the rate, in megabits per second (Mbps), at which it is currently signaling to the access point. You never actually get that rate. Real throughput is lower, because Wi-Fi spends airtime on acknowledgements, on waiting its turn and on resending damaged data, and because the device shares the channel with others.
| Factor | What it means | Why it changes speed |
|---|---|---|
| Standard both ends support | The newest generation shared by client and access point | Newer standards pack more data into each transmission |
| Channel width | 20, 40, 80 or 160 MHz | A wider channel carries more at once, like a wider road |
| Number of streams | How many antennas both ends can use together | Each extra stream adds roughly another lane; phones often have fewer antennas than laptops |
| Signal quality | Signal strength compared with background noise | A weak or noisy signal forces a slower, sturdier way of sending |
| Active devices | How many clients take turns on the channel | Each device's share of airtime shrinks as more join |
| The internet connection | The plan and line from Lesson 11 | Internet traffic cannot move faster than the slowest link on its path |
People forget the last row most often. Wi-Fi only carries data between your device and the router. For anything coming from the internet, the slowest link on the whole path sets the ceiling. So the first speed question is always the same: which link is the bottleneck?
Run 1: the internet is the limit. A fictional office has a 100 Mbps internet plan. The owner's laptop shows a Wi-Fi link rate of 433 Mbps. Suppose real Wi-Fi throughput is well below that, say 250 Mbps. That is still far above 100 Mbps, so the plan is the bottleneck, and downloads will top out near 100 Mbps. Using Lesson 3's conversion (8 bits make a byte), 100 divided by 8 is 12.5 megabytes per second (MB/s). A new Wi-Fi 6 router would not speed up internet downloads at all. It might speed up copies to a NAS (Network Attached Storage) box on the local network, because that traffic never touches the internet link.
Run 2: one input changes, and the answer flips. The office upgrades to a 1 gigabit per second (Gbps) plan, which is 1,000 Mbps. In the back room, an older laptop with a 2.4 GHz-only 802.11n adapter on a 20 MHz channel shows a link rate of 72 Mbps. Now the Wi-Fi link is the bottleneck by a wide margin. That laptop gets at most 72 divided by 8, or 9 MB/s, and less in practice. A faster internet plan would change nothing for this laptop. A newer dual-band adapter would help. So would an Ethernet cable, or an access point closer to the room.
In short: find the slowest link first. Wi-Fi speed depends on the shared standard, the channel width, the number of streams, the signal quality and how many devices share the air. No Wi-Fi upgrade can make internet traffic faster than the plan allows.
Band options: 2.4 GHz, 5 GHz and 6 GHz
The bands trade distance against capacity, and the reason is physics. Higher-frequency waves lose energy faster with distance and through walls, while lower frequencies carry farther. But the higher bands have far more room for channels, and wider channels carry more data. No band wins on every measure.
| Feature | 2.4 GHz | 5 GHz | 6 GHz |
|---|---|---|---|
| Range and wall penetration | Longest | Medium | Shortest |
| Room for channels | Very little; in North America only channels 1, 6 and 11 avoid overlapping | Many more | The most |
| Typical channel width | 20 MHz | 40 to 160 MHz | Up to 160 MHz |
| Crowding and interference | Heavy: neighbors' Wi-Fi, Bluetooth, microwave ovens, cordless phones | Lighter | Lightest, and no legacy devices |
| Standards that use it | 802.11b, g, n, ax | 802.11a, n, ac, ax | 802.11ax as Wi-Fi 6E, and newer |
| Best suited to | Distant devices, low-bandwidth smart-home gadgets | Most laptops, phones and TVs within a room or two | Newer devices close to the router that need top speed |
2.4 GHz has so few non-overlapping channels that wide channels make crowding worse. Apple recommends a 20 MHz width there to avoid performance and reliability problems near other Wi-Fi networks and 2.4 GHz devices, including Bluetooth.[4] Bluetooth and Wi-Fi both use 2.4 GHz, while many Wi-Fi devices can use 5 GHz instead.[6] So keep 2.4 GHz for devices that need its reach or have no other radio, and move everything else up.
5 GHz is the everyday workhorse. Apple notes that interference is less of a concern in the 5 GHz and 6 GHz bands and recommends automatic channel widths there.[4] The price is range. Through two or three interior walls, a 5 GHz signal may arrive weaker than 2.4 GHz from the same router.
6 GHz opened to Wi-Fi with Wi-Fi 6E. The Wi-Fi Alliance says it adds 1200 MHz of spectrum, three times the combined spectrum of the 2.4 and 5 GHz bands.[5] That room allows up to seven extra-wide 160 MHz channels.[3] Only Wi-Fi 6E or newer devices can use the band. Its range is the shortest, and many 6 GHz devices are held to low power indoors. The Alliance's summary of the rules describes a low-power indoor-only class that relies on the building's own walls to contain the signal.[5] Whether 6 GHz Wi-Fi is allowed at all, and at what power, depends on each country's radio regulator.
Most current routers are dual-band (2.4 and 5 GHz), and some are tri-band. Many broadcast one SSID on all bands and move each client to a suitable band, a feature often called band steering.
In short: 2.4 GHz reaches farthest but is crowded and narrow. 5 GHz is faster and has more channels, but shorter range. 6 GHz has the most room and no legacy devices, but the shortest range, and it needs Wi-Fi 6E on both ends.
Interference and attenuation: two different ways a signal goes wrong
The exam lists these two words together, but they name different problems with different fixes.
Interference means that other radio energy on the same frequencies competes with your signal. Your signal may arrive strong, yet it collides with something else and data must be sent again. The cause can be another Wi-Fi network on the same or an overlapping channel. It can also be a non-Wi-Fi device: the general term for unwanted electrical noise of this kind is Electromagnetic interference (EMI). Apple's list of common sources includes power cables, microwave ovens, fluorescent lights, wireless video cameras and cordless phones.[6] A Microwave oven heats food with radio energy near 2.4 GHz. A little of it leaks, which is why 2.4 GHz Wi-Fi near a kitchen often suffers at lunchtime. The fixes move you away from the competing signal: change the channel, change the band, or move the router away from the source. Apple recommends leaving channel selection on automatic so the router picks the best channel itself.[4]
Signal attenuation means that the signal itself grows weaker. It weakens with distance and each time it passes through something, and higher frequencies lose more. Apple's support guide ranks common materials. Water, brick and marble rate as medium.[6] Plaster, concrete and bulletproof glass rate as high.[6] Metal alone rates very high.[6] Apple's example is a metal-reinforced concrete floor between the router and the device, which can cause poor Wi-Fi performance.[6] Apple files these materials under "interference potential". In exam terms, a wall that weakens a signal causes attenuation: nothing is competing with the signal, it is simply being absorbed.
Attenuation fixes shorten the path or clear it. Google advises placing the router off the ground and in plain view, such as on a shelf or TV stand, ideally in a central spot.[7] When one router cannot cover a building, a Wireless mesh network adds units that relay traffic to each other by radio. Google advises putting each extra point about halfway toward the weak area, no more than two rooms from the router or another point.[7] A mesh point placed inside the dead zone would have no good signal to pass on. A wired access point is different. It gets its data through its own Ethernet cable, so it can go right inside the dead zone.
| Clue | Points to attenuation | Points to interference |
|---|---|---|
| Signal strength reading | Weak, and stronger as you move closer | Can be strong, yet the connection still struggles |
| Timing | Bad all day in the same place | Comes and goes, often tied to a time or a device being switched on |
| Location | Far rooms, upstairs, behind concrete or metal | Near kitchens, cordless phone bases, neighbors' routers, unshielded cables |
| What helps | Moving the router, adding an access point or mesh point, using 2.4 GHz for reach | Changing channel, moving to 5 or 6 GHz, moving away from the source |
In short: interference is a competing signal, so you change the channel or band or move away from the source. Attenuation is a weakening signal, so you shorten the distance, clear the path or add another access point.
Back to the clinic: working the three symptoms
Here is the clinic router's wireless settings page before any changes, and the readings from each problem device. Both are fictional but laid out like real ones.
| Setting | 2.4 GHz radio | 5 GHz radio |
|---|---|---|
| Network name (SSID) | ClinicStaff | ClinicStaff |
| Mode | 802.11b/g/n | 802.11a/n/ac |
| Channel | 6 (manual) | 36 (manual) |
| Channel width | 40 MHz | 80 MHz |
| Device | Where it sits | Wi-Fi hardware | Band | Signal | Link rate | Complaint |
|---|---|---|---|---|---|---|
| Front desk tablet | 6 m from router, open hallway | 802.11n, 2.4 GHz only | 2.4 GHz | Strong, 4 of 4 bars | 72 Mbps | Drops around 12:10 daily |
| Treatment room 3 laptop | 18 m away, through two brick walls | Wi-Fi 5, dual-band | 5 GHz | Weak, 1 of 4 bars | 29 Mbps | Video buffers all day |
| Owner's laptop | Upstairs, above a reinforced concrete floor | Wi-Fi 5, dual-band | 5 GHz | Fair at desk, weak by window | 117 Mbps at desk | Calls freeze near the window |
The modes show that this is a Wi-Fi 5 router: 802.11ac on 5 GHz, 802.11n on 2.4 GHz.
Symptom 1, the tablet. The signal is strong, and the failure comes at the same time every day, a few steps from the kitchen. A strong signal with a time-linked failure points to interference, and lunchtime points to the microwave oven. Moving the tablet to 5 GHz would be the obvious fix, but this 802.11n tablet has only a 2.4 GHz radio. So move the router away from the kitchen, narrow the 2.4 GHz channel to 20 MHz and set the channel to automatic. Later, replace the tablet with a dual-band one.
Symptoms 2 and 3, treatment room 3 and upstairs. Both signals are weak all day and get weaker with distance. Room 3 sits behind 18 metres and two brick walls, and the owner is above reinforced concrete. Both point to attenuation, so a new channel will not help. One change helps all three symptoms: take the router out of the metal cabinet, lift it off the floor and put it somewhere central and open. For upstairs, add a mesh point near the top of the stairs, about halfway toward the owner's office, or run a cable to a wired access point inside the office itself.
Now the flip. A first instinct for room 3 is "5 GHz is faster, so keep it on 5 GHz." Test it. In that room, a fictional 2.4 GHz reading shows 3 of 4 bars and 58 Mbps, double the 29 Mbps on 5 GHz, because the lower frequency gets through brick with less loss. Carry the same laptop to the front desk and the result reverses: 433 Mbps on 5 GHz against 144 Mbps on 2.4 GHz. The rule did not change. The input did: distance and walls.
Exam cues: what the question says and where it points
| The question says | Think | Do not confuse with |
|---|---|---|
| Wi-Fi 4 / Wi-Fi 5 / Wi-Fi 6 | 802.11n / 802.11ac / 802.11ax | Wi-Fi 6E, which is 802.11ax plus the 6 GHz band |
| Standard that works only at 5 GHz | 802.11ac | 802.11n and 802.11ax, which also use 2.4 GHz |
| Many devices, crowded venue, efficiency | 802.11ax with OFDMA | Wider channels, which raise top speed, not efficiency |
| Older devices must still connect | Backward compatibility; enable all modes | Disabling legacy modes, which locks old devices out |
| Longest range, far end of the house | 2.4 GHz | 5 GHz, faster but shorter reach |
| Least congested, most spectrum, no legacy devices | 6 GHz | 5 GHz, still shared with older devices |
| Drops when the microwave runs; strong signal | Interference: change channel or band | Attenuation, which does not depend on the time of day |
| Weak behind concrete, metal or upstairs | Attenuation: move router, add access point | Interference, which a channel change can fix |
| Fast Wi-Fi link, slow internet downloads | The internet plan is the bottleneck | Needing a newer router |
Common misconceptions
- "5 GHz is always better than 2.4 GHz." It is faster close to the router, but it loses more through walls and distance. In a far room, 2.4 GHz can deliver more.
- "A Wi-Fi 6 router turns every device into a Wi-Fi 6 device." Each connection uses the newest standard both ends share. An 802.11n thermostat stays 802.11n.
- "Thick walls cause interference." Walls weaken the signal, which is attenuation. Interference is a competing signal and needs different fixes.
- "Faster Wi-Fi will fix slow internet." If the plan is the slowest link, a Wi-Fi upgrade changes nothing for internet traffic.
- "Wi-Fi 6E is a different standard from Wi-Fi 6." Both are 802.11ax. The E adds the 6 GHz band, and both ends need it to use that band.
What to carry forward
- 802.11n is Wi-Fi 4. It uses 2.4 and 5 GHz and introduced MIMO, which uses multiple antennas to send multiple data streams at once.
- 802.11ac is Wi-Fi 5. It works only at 5 GHz and raised speed with 80 and 160 MHz channels.
- 802.11ax is Wi-Fi 6. It added OFDMA and target wake time for crowded networks, and Wi-Fi 6E is 802.11ax extended into 6 GHz.
- A connection runs at the newest standard both ends support. Using 6 GHz needs Wi-Fi 6E or newer on both the router and the device.
- Link rate is not throughput, and the slowest link on the path sets the ceiling. Divide Mbps by 8 to get MB/s.
- 2.4 GHz reaches farthest but has only three non-overlapping channels in North America (1, 6, 11), shares the band with Bluetooth and microwave ovens, and works best with 20 MHz channels.
- 5 GHz offers more and wider channels with shorter range. 6 GHz adds 1200 MHz of spectrum with no legacy devices, but has the shortest range.
- Interference is a competing signal, often linked to a time or a device. Attenuation is weakening from distance and materials, with metal and concrete the worst.
- Place the router centrally, off the floor and in the open. Put mesh points about halfway toward a weak area, not inside it. A wired access point can go inside it.
Sources
- CompTIA. (2023). CompTIA Tech+ FC0-U71 V6 certification exam: Exam objectives (Document version 4.0). lecbyo.files.cmp.optimizely.com
- Wi-Fi Alliance. (2019). Wi-Fi CERTIFIED 6 delivers new Wi-Fi era. wi-fi.org
- Wi-Fi Alliance. (2021). Wi-Fi Alliance delivers Wi-Fi 6E certification program. wi-fi.org
- Apple Support. (n.d.). Recommended settings for Wi-Fi routers and access points. support.apple.com
- Wi-Fi Alliance. (2021). Wi-Fi 6E and 6 GHz Update. wi-fi.org
- Apple Support. (n.d.). Resolve Wi-Fi and Bluetooth issues caused by wireless interference. support.apple.com
- Google Home and Nest Help. (n.d.). Where to place your Wifi devices. support.google.com
- Key terms
- IEEE 802.11
- The family of standards from the Institute of Electrical and Electronics Engineers that defines how Wi-Fi radios communicate. Letter suffixes such as n, ac and ax mark successive versions.
- Wi-Fi 4, Wi-Fi 5, Wi-Fi 6
- The Wi-Fi Alliance's generation names for 802.11n, 802.11ac and 802.11ax. Wi-Fi 6E is 802.11ax extended into the 6 GHz band.
- Backward compatibility
- The ability of newer Wi-Fi equipment to communicate with older devices. Each connection runs at the newest standard both ends support.
- Frequency band
- A range of radio frequencies that Wi-Fi may use, such as 2.4 GHz, 5 GHz or 6 GHz. Each band is divided into channels.
- Channel width
- How wide a slice of a band one Wi-Fi channel occupies, such as 20, 40, 80 or 160 MHz. Wider channels carry more data but leave fewer channels that do not overlap.
- Link rate
- The data rate at which a Wi-Fi device and its access point are currently signaling. Real throughput is lower because of overhead, shared airtime and resent data.
- Interference
- Unwanted radio energy on the same frequencies, from other networks or from devices such as microwave ovens. It competes with a Wi-Fi signal and forces data to be sent again.
- Attenuation
- Loss of signal strength as radio waves travel over distance and pass through materials. Higher frequencies lose more, and metal and concrete absorb the most.
- OFDMA
- Orthogonal frequency division multiple access: an 802.11ax feature that splits one channel into small sub-channels, so an access point can serve several devices in one transmission.
- Wireless mesh network
- Several Wi-Fi units that relay traffic to one another by radio and act as one network, extending coverage beyond what a single router reaches.
Module 4: Operating Systems and Software
What operating systems are made of and why they exist, how to choose and use software, how to use a web browser well, and where artificial intelligence fits.
What an Operating System Is Made Of
- Trace a single file save through an operating system and name the component at work at each step: interface, process, naming rules, folders, permissions, filesystem, driver, attributes and services.
- Tell apart processes, services, drivers and system utilities, and say where you would inspect each on Windows, macOS or Linux.
- Compare filesystem types (NTFS, FAT32, exFAT, ext4, APFS) on permissions, compression, encryption and file size limits, and predict what changes when a file moves between them.
- Apply file management rules: valid names on Windows and Linux, file extensions, folder paths, permission levels, and file attributes such as read-only, hidden, system and archive.
A Save button that said no
At 4:52 on a Friday afternoon, Priya, the office manager at a small accounting firm (a fictional example used throughout this lesson), types a name into Excel's Save As box: Q3 payroll: draft?.xlsx. Windows refuses and lists the characters a file name cannot contain. The colon and the question mark are both on the list. She renames the file Q3 payroll draft.xlsx, clicks Save, and it lands in her Payroll folder in under a second.
That second hid a chain of work. Every link in it is a component of the operating system (OS), the software that runs the computer and gives programs shared services. Naming those components is what this objective asks of you.
Exam objectives: CompTIA Tech+ FC0-U71 objective 3.1, Identify components of an OS. It lists filesystem characteristics (compression, encryption, types and extensions), file management (folders and directories, permissions, naming restrictions), system applications and utilities, services, processes, drivers, and interfaces (console or command line, graphical user interface, and file attributes and properties).[1]
The verb is "identify", so exam questions usually describe an action or a symptom and ask which component is involved. This lesson works as a procedure. You follow Priya's save once, naming each component as it acts. Then you study each component. Finally you rerun the save with one input changed and watch several results flip.
Run one: one Save, nine components
| Step | What happens | Component at work | Where you inspect it on Windows |
|---|---|---|---|
| 1 | Priya clicks File, then Save As, types a name and picks a folder with the mouse. | Graphical user interface | The desktop and File Explorer |
| 2 | Excel, running with its own process ID, asks the OS to create a file. | Process | Task Manager |
| 3 | The OS checks the name. The first try fails on the colon and the question mark. | Naming restrictions | The error message |
| 4 | The OS follows the path C:\Users\Priya\Documents\Payroll to the folder. | Folders and directories | File Explorer's address bar |
| 5 | The OS checks Priya's account against the folder's permission list. She has Modify, so writing is allowed. | Permissions | Properties, Security tab |
| 6 | NTFS (New Technology File System) creates a record for the file, chooses where its data goes and encrypts it, because the folder is set to encrypt. | Filesystem type; encryption or compression | Disk Management; Properties, Advanced |
| 7 | A stack of drivers turns the write into commands the SSD understands. | Drivers | Device Manager |
| 8 | The filesystem records the file's size, its dates and its archive flag. | File attributes and properties | Properties, General tab |
| 9 | The Windows Search service indexes the new file. A backup tool copies it tonight. | Services; system utilities | The Services console |
Priya sees only steps 1 and 3. Hiding the rest is the OS's job. When something breaks, though, a technician has to work out which step failed, so each one gets a closer look below.
The upshot: most questions on this objective describe one step in a chain like this and ask which component performs it. Know what each component handles and the question becomes a lookup.
Interfaces: the graphical user interface and the command line
An interface is how a person gives the OS instructions. A Graphical user interface (GUI) shows windows, icons, menus and a pointer. You recognize an action instead of remembering it, because the Save button is right there on screen. That suits discovering features and one-off jobs. It does not scale: renaming 400 files one right-click at a time takes an afternoon.
A Command-line interface (CLI), also called the console or terminal, is a text window where you type commands. A program called a shell reads each line, runs it and prints the result. Windows ships two shells, Command Prompt and PowerShell. On Windows 11 both normally open inside Windows Terminal, the newer app that hosts them in tabs. macOS uses the zsh shell in its Terminal app, and most Linux systems use bash. You must type commands exactly, but the effort pays: one line can act on thousands of files, commands can be saved as a script, and a CLI works over a remote connection to a server that has no desktop at all.
Windows Command Prompt
C:\Users\Priya> mkdir Payroll
C:\Users\Priya> cd Payroll
C:\Users\Priya\Payroll> dir
C:\Users\Priya\Payroll> copy "Q3 payroll draft.xlsx" "Q3 backup.xlsx"
Linux or macOS terminal
$ mkdir payroll
$ cd payroll
$ ls -l
$ cp "q3 payroll draft.xlsx" "q3 backup.xlsx"
Look at the quotation marks. The shell splits a line at each space, so without them it reads Q3, payroll and draft.xlsx as three separate items. That is the commonest reason a beginner's command complains that a file does not exist. Both interfaces reach the same files, with one trap: deleting with the Windows del command skips the Recycle Bin, so there is no easy undo.
Processes and threads: programs that are running now
A program sitting on the drive, such as excel.exe, is just a file. Starting it turns it into a process. Microsoft describes a process as a program that is currently running and identified by a unique process ID (PID).[2] The OS gives each process its own private memory, the program's code, the files it has open and the account it runs as. Inside each process is at least one thread, which is the part the OS actually schedules to run.[3] The OS gives each thread a short slice of time on the central processing unit (CPU) and then switches to another. That is how a laptop with a few cores (Lesson 6) seems to run thirty programs at once.
Excel freezes, so Priya presses Ctrl+Shift+Esc to open Task Manager and goes to the Details tab. The rows below are an illustrative example, with memory shown in megabytes (MB).
| Name | PID | Status | CPU | Memory |
|---|---|---|---|---|
| EXCEL.EXE | 8124 | Not responding | 24% | 612 MB |
| msedge.exe | 5532 | Running | 1% | 210 MB |
| msedge.exe | 5610 | Running | 0% | 95 MB |
| explorer.exe | 4410 | Running | 1% | 140 MB |
| spoolsv.exe | 2300 | Running | 0% | 9 MB |
Three things stand out. The browser appears twice with two PIDs, because modern browsers split their work across several processes. explorer.exe is the Windows desktop and File Explorer, so the GUI is itself a process. And End task on the frozen Excel row destroys that process and everything in its memory, including unsaved changes. Give a "Not responding" program a minute first: it may be busy rather than stuck. macOS does the same job in Activity Monitor; Linux uses the top, ps and kill commands.
The upshot: a program is a file on the drive. A process is that program running, with its own PID and memory. Threads inside it take turns on the CPU.
Services: processes the OS runs in the background
Some work must happen whether or not anyone is signed in: requesting the computer's Internet Protocol (IP) address, queuing print jobs, indexing files. Windows calls the programs that do this services. Linux and macOS call them daemons, and their names often end in d, such as sshd.
A service is not a different kind of thing from a process. What makes it a service is how it is managed. The OS starts it, often at boot. It usually has no window. It usually runs under a system account rather than as you. On Windows many services share host processes named svchost.exe, which is why that name appears many times in Task Manager. The Print Spooler service runs as spoolsv.exe, the last row of the table above.
| Name | Status | Startup type | What it does |
|---|---|---|---|
| Print Spooler | Running | Automatic | Holds print jobs in a queue and feeds them to printers |
| Windows Search | Running | Automatic (Delayed Start) | Indexes files so searches return quickly |
| DHCP Client | Running | Automatic | Gets and renews the IP address through the Dynamic Host Configuration Protocol (DHCP), as in Lesson 12 |
| Windows Update | Stopped | Manual | Downloads and installs updates when started |
Automatic starts the service at boot. Manual starts it when something asks for it. Disabled stops it starting at all. A classic case: jobs pile up in the print queue even after every app is closed. The jobs now belong to the Print Spooler, not to the app that sent them, so restarting that service is the standard first fix. Equally, disabling a service you do not understand can quietly break networking or search days later.
Drivers: translators between the OS and hardware
Microsoft defines a Device driver as a software component that lets the operating system and a device communicate.[4] An app asks the OS for data, the OS calls the driver, and the driver, which knows the device's own command language, fetches the data and passes it back up. Manufacturers usually write drivers. But if a device follows a published hardware standard, Microsoft can write the driver instead.[4] That is why a Universal Serial Bus (USB) flash drive or keyboard works the moment it is plugged in, while a specialist label printer may need its maker's download (Lesson 8).
Where a driver runs matters. The kernel is the core of the OS, with full access to memory and hardware, and many drivers run there in kernel mode. Microsoft notes that device drivers that do not need kernel-mode resources can run in user mode, the restricted mode where ordinary apps live.[4] A bug in an app crashes that app. A bug in kernel-mode code can take down the whole system, which on Windows appears as a stop error, the "blue screen". If crashes begin right after a driver update, suspect the driver.
Device Manager lists every device. A yellow warning triangle marks a driver or configuration problem, and a device's properties let you update, roll back, disable or uninstall its driver.
System applications and utilities
Application software such as Excel does the user's work. System utilities ship with the OS to configure, monitor and maintain the machine. A utility also differs from a service: you open a utility, it does a job and you close it, while a service runs on its own.
| Job | Windows | macOS | Linux |
|---|---|---|---|
| See and end processes | Task Manager | Activity Monitor | top, ps, kill |
| Partition and format drives | Disk Management | Disk Utility | fdisk, mkfs |
| Check and repair a filesystem | chkdsk | Disk Utility's First Aid | fsck |
| Read system logs | Event Viewer | Console | journalctl |
| Change settings | Settings, which has replaced much of the older Control Panel | System Settings | The desktop's settings app |
Microsoft's NTFS documentation says chkdsk can scan and repair NTFS volumes while keeping them online, so it is usually the first check when a drive reports errors.[5]
Filesystem types: NTFS, FAT32, exFAT and others
A filesystem is the set of rules and on-disk structures that turns a drive's raw storage into named files inside folders. It records each file's name, where its pieces sit, which space is free, the file's dates and, on some filesystems, who may use it. You choose one when you format a drive, and formatting erases the drive.
NTFS is the default filesystem for modern Windows.[5] It keeps a transaction log, a record of changes it is about to make, and after a crash it uses that log to put the filesystem back into a consistent state.[5]
| Filesystem | Typical home | Per-user permissions | Notable traits |
|---|---|---|---|
| NTFS | Windows system and internal drives | Yes, through access control lists | Built-in compression and file encryption; transaction log |
| File Allocation Table 32 (FAT32) | Small or older flash drives, cameras, car stereos | No | Read by almost every device; a single file must be smaller than 4 gigabytes (GB) |
| exFAT (Extended File Allocation Table) | Large flash drives and memory cards shared between Windows and macOS | No | Handles very large files |
| ext4 (fourth extended filesystem) | Many Linux distributions | Yes: owner, group and others | Windows cannot read it without extra software |
| Apple File System (APFS) | macOS, iPhone and iPad | Yes | Built-in encryption, used by FileVault |
Read the table as trade-offs. FAT32 is old and plain, so almost anything can read it, but it stores no permissions and rejects any single file of 4 GB or more. exFAT lifts the size limit but still stores no permissions. NTFS has everything Windows needs, but some cameras, TVs and older devices cannot read it. The right choice depends on who must read the drive. Microsoft counts NTFS, exFAT, UDF and FAT32 as the four main Windows filesystems.[6] The Universal Disk Format (UDF) is the one built for optical discs such as a Digital Video Disc (DVD) or Blu-ray.
Compression: the same data in fewer bytes
Compression rewrites data to take less space by encoding repeated patterns more briefly. Lossless compression rebuilds the original exactly, bit for bit. Lossy compression, used in .jpg photos and in Moving Picture Experts Group Layer-3 Audio (MP3) and Layer-4 (MP4) files, throws away detail people are unlikely to notice. A filesystem must hand a file back exactly as it was saved, so filesystem compression is always lossless. Microsoft states that NTFS uses Lempel-Ziv compression, a lossless algorithm.[6]
NTFS compression is transparent. Tick "Compress contents to save disk space" in a file's or folder's Advanced attributes and the file still opens normally. The filesystem compresses data as it is written and decompresses it as it is read, at the cost of extra processor work. Text, logs and spreadsheets often shrink a lot. Photos, videos and .zip files are already compressed and barely shrink.
A .zip archive is a different thing. It is a separate container file you create on purpose, usually to send a bundle, and its contents are extracted before use. Filesystem compression creates no new file; it changes how the existing file is stored.
Encryption: data that is useless without a key
Encryption scrambles data so only someone with the right key can read it. Operating systems offer it at two levels.
- File or folder encryption. On Windows, the Encrypting File System (EFS) protects individual files on NTFS volumes using public-key cryptography.[6] The key belongs to the user account, so Priya opens her payroll file normally while another account on the same laptop gets "access denied".
- Full-volume encryption. BitLocker encrypts a whole drive and can use the computer's Trusted Platform Module security chip. It protects data even if the drive is removed and installed in another system.[5] macOS offers FileVault for the same purpose.
Why have encryption when NTFS already has permissions? Permissions are rules that the running OS enforces. Attach a stolen laptop's SSD to another computer and that computer's administrator can ignore the rules or take ownership of the files. Encryption needs no OS to cooperate: without the key, the bytes are meaningless. The catch is the key itself. Lose the password and the recovery key and the data is gone for good, which is why BitLocker makes you save a recovery key. Lesson 31 returns to encryption in everyday use.
One NTFS rule links the two features. A file can be compressed or EFS-encrypted, but not both, so ticking one of those boxes in Advanced attributes clears the other.
The upshot: compression makes data smaller and hides nothing. Encryption makes data unreadable without a key. Permissions protect data only while the OS that enforces them is in charge.
File types and extensions
All filesystems follow the same basic naming pattern: a base file name and an optional extension, separated by a period.[7] In Q3 payroll draft.xlsx, the extension is .xlsx, the part after the last period.
| Extension | What it usually holds |
|---|---|
| .txt | Plain text with no formatting |
| .docx, .xlsx, .pptx | Word documents, spreadsheets, presentations |
| A fixed-layout Portable Document Format (PDF) document | |
| .jpg, .png | Images |
| .mp3, .mp4 | Audio; video |
| .zip | A compressed archive of other files |
| .exe, .msi | A Windows program; a Windows installer package |
| .bat, .ps1, .sh | Scripts for Command Prompt, PowerShell and Linux shells |
Windows uses the extension to pick the app that opens a file, an arrangement called a file association. The extension is only a label. Renaming report.docx to report.pdf converts nothing: the bytes are still a Word document, and the PDF reader reports the file as damaged. To convert, open the file and export it or use Save As with the new type.
Attackers exploit that label. File Explorer hides extensions for known file types by default, so a program named invoice.pdf.exe shows as invoice.pdf, and double-clicking it runs a program. Turning extensions on (in Windows 11, View, then Show, then File name extensions) removes the disguise. Linux and macOS lean less on extensions: whether a file can run depends on its permissions.
Folders, directories and paths
Folder and directory mean the same thing. Folder is the GUI word; directory is the command-line word. Under the hood, a directory is a special file that holds a list of the names inside it and where each one lives. Folders nest into a tree whose top is the root: C:\ for a Windows drive, or / on Linux and macOS, where every drive appears somewhere in one tree. A path spells out the route from the root to a file.
| Path | Meaning |
|---|---|
| C:\Users\Priya\Documents\Payroll\Q3 payroll draft.xlsx | Windows absolute path: drive C, then each folder down to the file |
| /home/priya/payroll/q3.xlsx | Linux absolute path from the single root |
| Payroll\Q3 payroll draft.xlsx | Windows relative path, starting from the folder you are in now |
| \\fileserver\finance\q3.xlsx | Windows network path to a shared folder on another computer |
Windows separates path parts with a backslash. That is exactly why a backslash cannot appear inside a file or folder name: it is reserved for splitting a path into its parts.[7] Linux and macOS use the forward slash for the same job.
Because a folder is just a list, moving a 5 GB file to another folder on the same drive finishes at once: only the lists change. Moving it to a different drive takes minutes, because every byte must be copied and the original deleted.
Naming restrictions: why some names are refused
Priya's first name failed for a mechanical reason. On Windows, each forbidden character already has a job:
\and/separate the parts of a path, and:follows a drive letter, as in C:.*and?are wildcards meaning "any characters" and "any one character".<,>and|redirect and pipe output in command shells, and"wraps names that contain spaces.
If names could contain these, the OS could not tell a file called draft? from a search for every name starting with draft. Windows also keeps reserved names that early versions defined for special devices such as communication ports and the console.[7] So CON, PRN, AUX, NUL, COM1 to COM9 and LPT1 to LPT9 are refused even with an extension added, as in AUX.txt. A Windows name also may not end in a space or a period, and very deep folder trees can hit the path-length limits that some older Windows programs still enforce.
Case is the other big difference. Windows keeps the capitals you type but treats OSCAR, Oscar and oscar as one name. NTFS can support case-sensitive behavior, but that is not the default.[7] Linux treats them as three different files.
| Rule | Windows (NTFS) | Linux (ext4) | macOS (APFS, default settings) |
|---|---|---|---|
| Forbidden characters | < > : " / \ | ? * | Only / | / at the filesystem level; Finder also refuses : |
| Upper and lower case | Treated as the same name | Different names | Treated as the same name |
| Path separator | \ | / | / |
| Reserved device names | CON, PRN, AUX, NUL, COM1-9, LPT1-9 | None | None |
| How a file is hidden | The hidden attribute | A name starting with a period | A name starting with a period, or a hidden flag |
A habit that works everywhere: letters, numbers, hyphens and underscores, with dates written as 2026-11-10 so files sort in date order.
Permissions: who may do what
Apple's Mac User Guide puts it simply: permission settings determine who can view and alter files.[8] Every OS asks the same three questions: which account, which item, and which action.
Windows (NTFS). Each file and folder carries an Access-control list (ACL). The list names users and groups and the access each has, such as read, write or modify.[5] The Security tab offers levels including Full control, Modify, Read and execute, Read, and Write, each set to Allow or Deny. New files inherit their folder's permissions, so setting them once on the Payroll folder covers every file saved there.
macOS. Finder's Get Info window gives each user or group one of four privilege settings. Read and Write lets a user open and change an item. Read only lets a user open it but not change it. No Access blocks it entirely. The fourth, Write only (Drop Box), turns a folder into a drop box.[8] Others can copy items into a drop box, but only its owner can open it.
Linux. Every file has an owner, a group and everyone else ("others"). Each of the three gets read (r), write (w) and execute (x) permission, or not. Here is an example line from ls -l:
-rw-r----- 1 priya finance 52814 Nov 3 16:52 payroll.xlsx
Decode it left to right. The first hyphen means an ordinary file; a d there would mean a directory. Then come three sets of three: rw- for the owner, priya, who may read and write; r-- for the finance group, who may only read; and --- for everyone else, who may do nothing. The chmod command changes these settings.
Enforcement happens every time a file is opened or saved. Sam, an intern, has Read on the payroll share. Excel opens the file, because reading is allowed. When he clicks Save, the OS checks the ACL again, finds no write permission and returns "access denied". The rule behind this, giving each account only the access it needs, is called least privilege (Lesson 27). Permissions exist only where a filesystem stores them: NTFS, ext4 and APFS do; FAT32 and exFAT do not.
File attributes and properties
A file's properties are everything the filesystem keeps about it apart from its contents: name, type, location, size, dates and owner. Attributes are a particular kind of property: simple on-or-off flags. The Windows attrib command displays, sets or removes the attributes of files and directories.[9]
| Letter | Attribute | Effect |
|---|---|---|
| R | Read-only | Programs are told not to change the file |
| H | Hidden | Left out of normal listings in File Explorer and dir |
| S | System | Marks a file the OS itself depends on |
| A | Archive | Marks a file that has changed since it was last backed up |
The archive flag has a mechanism worth learning. It marks files that have changed since the last backup.[9] The filesystem turns it on whenever a file is written, and a backup tool can turn it off after copying the file. An incremental backup then copies only files whose flag is on. Typing attrib +r report.txt sets read-only; a minus sign in place of the plus clears a flag.
Two confusions are worth settling. The read-only attribute is not the same as a Read only permission. The attribute is one flag that applies to every user, and anyone allowed to change attributes can untick it; a permission is set per account. And hidden is not secure: anyone who turns on Hidden items in File Explorer sees the file at once.
The Properties window (right-click, then Properties) shows all of this together. Here is an illustrative example for Priya's file, with sizes in kilobytes (KB).
| Field | Value |
|---|---|
| Type of file | Microsoft Excel Worksheet (.xlsx) |
| Location | C:\Users\Priya\Documents\Payroll |
| Size | 51.5 KB (52,814 bytes) |
| Size on disk | 52.0 KB (53,248 bytes) |
| Modified | Friday, 6 November 2026, 16:58 |
| Attributes | Read-only unticked, Hidden unticked. Advanced: Encrypt contents ticked, Compress contents unticked |
Why is size on disk larger than size? The drive hands out space in fixed blocks called clusters. With 4 KB clusters of 4,096 bytes each, a 52,814-byte file needs 13 clusters: 52,814 divided by 4,096 is about 12.9, and a cluster cannot be shared, so you round up. 13 times 4,096 is 53,248 bytes. On a compressed file, size on disk can be smaller than size instead. On a Mac, Finder's Get Info window shows the same details, with permissions at the bottom.
Run two: the same file, sent to a flash drive
On Monday, Priya must take two files to the firm's outside accountant: the encrypted payroll spreadsheet and a 5.2 GB recording called All-hands Q3.mp4. In File Explorer she drags both onto a USB flash drive formatted FAT32 with 30 GB free. One input has changed, the destination, and several results flip.
| Step | Run one: internal SSD, NTFS | Run two: flash drive, FAT32 |
|---|---|---|
| Process | Excel saves the file | explorer.exe does the copy |
| Naming | Windows rules apply | The same Windows rules apply |
| Size | No practical limit | The 5.2 GB recording fails: FAT32 cannot hold a single file of 4 GB or more, whatever the free space |
| Permissions | Only Priya and the finance group may open the file | FAT32 stores none, so anyone holding the drive can open it |
| Encryption | EFS keeps the spreadsheet encrypted | EFS needs NTFS, so Windows warns that encryption cannot be kept and stores a readable copy |
| Driver | The SSD's storage driver stack | The standard USB storage driver built into Windows |
| Attributes | Read-only, hidden, system, archive | The same four flags survive, because FAT32 stores them |
The flips point to the fixes. Reformatting the drive as exFAT (which erases it) removes the size limit but adds no permissions and no EFS. Whole-drive encryption such as BitLocker protects everything on the drive, whoever picks it up. A secure file share avoids the drive altogether.
One flip runs the other way. On a Linux laptop, Q3 payroll: draft?.xlsx would save without complaint, because ext4 forbids only the slash. The trouble comes later, when the file is copied to a Windows share and Windows refuses the name. Naming rules belong to the OS and filesystem in use.
The upshot: a file that moves takes on the rules of its new filesystem, so size limits, permissions and encryption can all change at the moment of copying.
Exam cues: words in the question and what they point to
| If the question says | Think | Do not confuse with |
|---|---|---|
| Running program, PID, End task, Not responding | Process | The program file on disk |
| Background, starts at boot, no window, daemon | Service | A utility you open and close yourself |
| Lets the OS talk to hardware, Device Manager warning | Driver | The app that uses the device |
| Typed commands, terminal, console, shell, script | Command-line interface | GUI |
| Task Manager, Disk Management, Event Viewer, chkdsk | System utilities | Application software such as a word processor |
| NTFS, FAT32, exFAT, ext4, APFS, format the drive | Filesystem type | File extension |
| .docx, .exe, which app opens the file | File type and extension | Filesystem type |
| Smaller on disk, lossless | Compression | Encryption, which hides data but does not shrink it |
| Unreadable without a key, safe if the drive is removed | Encryption | Permissions, which only the running OS enforces |
| Who may read or change, access denied, ACL, drop box | Permissions | The read-only attribute |
| Read-only, hidden, system or archive flag | File attributes | Permissions |
| Characters not allowed, reserved names, case sensitivity | Naming restrictions | Permissions |
The Atlas CompTIA A+ course goes deeper into drivers, Task Manager and filesystems from a technician's side.
Common misconceptions
- "Renaming the extension converts the file." The extension is only a label for choosing an app. Changing .docx to .pdf leaves the bytes untouched, so the PDF reader fails. Converting means opening the file and exporting it.
- "A hidden file is a protected file." The hidden attribute only keeps a file out of normal listings. Protection comes from permissions and encryption.
- "Permissions keep my files safe if the laptop is stolen." Another computer's OS can ignore them. Only encryption such as BitLocker or FileVault keeps a removed drive unreadable.
- "Services and processes are different kinds of things." A running service is a process, or part of a shared host process. What makes it a service is that the OS starts and manages it in the background.
- "Only unusual devices need drivers." Every device needs one. Keyboards and flash drives follow published standards, so their drivers already ship with the OS.
What to remember
- A process is a running program with its own process ID (PID) and memory. Threads inside it take turns on the CPU. End task destroys unsaved work.
- A service is a background process the OS starts and manages, often at boot and usually with no window. Its startup type is Automatic, Manual or Disabled. Linux calls services daemons.
- A driver lets the OS and a device communicate. Devices that follow published standards use drivers supplied with the OS. A faulty kernel-mode driver can crash the whole system.
- A GUI uses windows, icons, menus and a pointer and suits discovery. A CLI uses typed commands in a console and suits repeated, scripted or remote work.
- NTFS is the default Windows filesystem, with ACL permissions, lossless compression, EFS encryption and a transaction log. FAT32 and exFAT store no permissions, and FAT32 cannot hold a single file of 4 GB or more.
- Compression makes data smaller; encryption makes it unreadable without a key. On NTFS a file can be compressed or EFS-encrypted, not both. Only full-volume encryption such as BitLocker protects a removed drive.
- An extension is the part of the name after the last period. Windows hides known extensions by default, so invoice.pdf.exe can pass for a PDF.
- Windows forbids < > : " / \ | ? * in names and reserves names such as CON, AUX and NUL. Windows treats upper and lower case as the same; Linux does not.
- The four classic attributes are read-only, hidden, system and archive. The archive flag marks files changed since the last backup. Attributes apply to everyone; permissions are set per account.
Sources
- CompTIA. (2023). CompTIA Tech+ FC0-U71 V6 certification exam: Exam objectives (Document version 4.0). lecbyo.files.cmp.optimizely.com
- Microsoft Learn. (n.d.). Windows Kernel-Mode Process and Thread Manager. learn.microsoft.com
- Microsoft Learn. (n.d.). About Processes and Threads. learn.microsoft.com
- Microsoft Learn. (n.d.). What is a driver?. learn.microsoft.com
- Microsoft Learn. (n.d.). NTFS overview. learn.microsoft.com
- Microsoft Learn. (n.d.). About File Management. learn.microsoft.com
- Microsoft Learn. (n.d.). Naming Files, Paths, and Namespaces. learn.microsoft.com
- Apple Support. (n.d.). Change permissions for files, folders, or disks on Mac. support.apple.com
- Microsoft Learn. (n.d.). attrib. learn.microsoft.com
- Key terms
- Operating system (OS)
- The software that manages a computer's hardware and gives programs common services, including the filesystem, processes, services, drivers and the user interface.
- Filesystem
- The rules and on-disk structures an operating system uses to organize a drive into named files and folders, tracking where data sits, free space, dates and, on some filesystems, permissions. Examples: NTFS, FAT32, exFAT, ext4, APFS.
- Process
- A program that is currently running, identified by a unique process ID (PID) and given its own memory, security context and at least one thread.
- Service
- A program the operating system starts and manages in the background, often at boot and usually with no window, such as a print spooler or update checker. Linux and macOS call these daemons.
- Device driver
- A software component that lets the operating system and a hardware device communicate by translating the operating system's requests into commands the device understands.
- Command-line interface (CLI)
- A text-based way to control a computer in which the user types commands into a console and a shell program runs them, as in Command Prompt, PowerShell, bash or zsh.
- File extension
- The part of a file name after the last period, such as .xlsx or .exe, which tells the operating system what kind of file it is and which app opens it.
- File attribute
- An on-or-off flag stored with a file by the filesystem, such as read-only, hidden, system or archive, that applies to every user of that file.
- Access-control list (ACL)
- A list attached to a file or folder that names users and groups and the access each is allowed or denied, such as read, write or modify. NTFS uses ACLs for permissions.
Why Operating Systems Exist and Which One Fits the Job
- Explain the six purposes of an operating system named in Tech+ objective 3.2, and say what each one does and why it is needed.
- Match a symptom, task or tool to the OS purpose behind it, including pairs that are easy to confuse, such as disk management and device management.
- Compare mobile, desktop/workstation, server and embedded operating systems, and choose the right type for a described job.
One operating system, seven kinds of hardware
Google's security overview for Android lists the hardware Android runs on: mobile phones, tablets, watches, cars, smart TVs, streaming game consoles and set-top boxes.[1] A watch has a screen smaller than a postage stamp and a battery that must last all day. A car dashboard has to keep working at motorway speed. A set-top box may never meet a keyboard. Yet each one runs the same kind of software underneath: an operating system (OS). The OS is the program that starts when the machine powers on, keeps running until it shuts down, and manages the hardware on behalf of every other program.
Two questions run through this lesson. What does an operating system actually do, and why can't a computer simply run your apps without one? And why do phones, desktops, servers and embedded devices use different kinds of OS? Lesson 14 took an OS apart into components such as the kernel (the core of the OS, which controls the hardware and memory directly) and the file system. Here you look at the same software from the outside, by the jobs it does.
Exam objectives: CompTIA Tech+ (FC0-U71) objective 3.2, Explain the purpose of operating systems.[2] It names six purposes: interface between applications and hardware, disk management, task and process management, application management, device management, and access control. It also names four OS types: mobile device, desktop/workstation, server and embedded.
The quickest way to keep the six purposes apart is to attach a question to each. How can an app use hardware it knows nothing about? How is a drive divided and named? Which running program gets the processor next? How is software installed and removed? How does the OS talk to each piece of hardware? Who may do what to which file? The sections below take them in that order.
The interface between applications and hardware
Press Save in a word processor on a laptop. The word processor has no idea what drive is inside. It might be a Non-volatile Memory Express (NVMe) solid-state drive (SSD), a spinning hard disk drive (HDD), or a Universal Serial Bus (USB) flash drive plugged in a minute ago. It does not need to know, because it never talks to the drive. It asks the operating system to do the work, and the request passes down a chain:
- The word processor calls the OS's "write this file" function and hands over a file name and the data. A function that the OS offers to programs is a system call. The published list of requests a program may make is called an application programming interface (API).
- The OS's file system decides where on the drive the bytes will go and records that location in its index of files.
- The OS sends a low-level request, roughly "write these blocks", to the device driver for the storage controller.
- The driver turns that request into the exact commands this particular controller understands.
- The drive reports success, and the result travels back up the chain until the document shows as saved.
The same word processor, unchanged, saves to every drive the OS supports. Programmers call this abstraction: the OS hides hardware details behind a simpler set of requests that stays the same from machine to machine. Without it, every app developer would need separate code for every disk, printer, graphics card and network adapter ever sold.
| Layer | Example | What it talks to |
|---|---|---|
| Application | Word processor, browser, game | The OS, through system calls |
| OS kernel and services | File system, scheduler, memory manager | Device drivers |
| Device driver | Storage driver, graphics driver | The hardware's controller |
| Hardware | Storage drive, graphics card, Wi-Fi adapter | Nothing lower: it does the physical work |
The interface also protects the machine. If every app could drive the hardware directly, one buggy program could overwrite another program's data or lock up the network adapter for everyone. Android's documentation lists sensitive resources such as the camera, Global Positioning System (GPS) location, Bluetooth, telephony and network connections, then states the rule outright: these resources are only accessible through the operating system.[3]
The OS is an interface for people, too. A graphical user interface (GUI) uses windows, icons and a pointer or touch. A command-line interface (CLI) uses typed commands. Both lead into the same OS, which is why a server with no GUI at all still runs a complete operating system.
So what?: apps sit above the OS and hardware sits below it. Apps make requests, and the OS and its drivers decide how the hardware carries them out. That lets one app run on thousands of different machines, and it stops one app from wrecking the hardware for all the others.
Disk management and the Windows Disk Management tool
A brand-new drive is a huge set of numbered blocks. Nothing on it records where one file ends and the next begins. Disk management is the OS's job of turning that raw space into usable storage and keeping it organized. On Windows the tool is called, plainly, Disk Management. Microsoft describes it as a system utility for advanced storage operations.[4] It shows each drive in the computer and the partitions on it. On macOS the equivalent tool is Disk Utility.
Three words need pinning down first. A partition is a region of a disk that the OS treats as a separate unit. A file system is the index that records which blocks belong to which file and which are free. A volume is a partition that has been formatted with a file system, so the OS can treat it as one drive. Getting a new drive ready takes four steps:
| Step | What the OS does | Why it is needed |
|---|---|---|
| Initialize | Writes a partition table, in the modern GUID Partition Table (GPT) style or the older Master Boot Record (MBR) style | Without a table, the OS has nowhere to record how the disk is divided |
| Partition | Marks out one or more regions of the disk | Lets one disk hold, for example, Windows and a separate recovery area |
| Format | Writes a file system into the partition, which makes it a volume | Without a file system, there is no way to find files |
| Name it | Assigns a drive letter (Windows) or a mount point, which is a folder location (macOS and Linux) | People and apps need a fixed place to find the volume |
(GUID stands for globally unique identifier.) The common file systems are the New Technology File System (NTFS) on Windows, the Apple File System (APFS) on macOS, the fourth extended file system (ext4) on many Linux systems, and the Extended File Allocation Table (exFAT) or the older 32-bit File Allocation Table (FAT32) on removable drives. Microsoft's list of Disk Management tasks includes exactly this: setting up a new drive by initializing it.[4] The job continues after setup. While the OS runs, it tracks free space, decides where new files go and checks the file system for errors.
Here is a fictional example of what Disk Management might show on a laptop where someone has just fitted a second drive:
| Disk | Size | Status | What is on it |
|---|---|---|---|
| Disk 0 (SSD) | 476 GB | Online | EFI System Partition, 100 MB; Local Disk (C:), NTFS, 475 GB; Recovery Partition, 750 MB |
| Disk 1 (new HDD) | 931 GB | Not initialized | 931 GB unallocated |
Disk 0 shows the usual Windows layout. C: holds Windows itself. The EFI (Extensible Firmware Interface) System partition supports the start, or boot, process.[4] The Recovery partition holds repair tools for when the computer will not start. Disk Management may show those two small partitions as empty even though they hold critical files, and Microsoft recommends not modifying them in any way.[4]
Now the worked problem. The owner says the new drive "isn't there", because it does not appear in File Explorer. The table shows why. Disk 1 is "Not initialized", so none of the four steps has happened yet. The fix follows them in order: initialize Disk 1 as GPT, create one partition covering all 931 GB (Windows calls this a new simple volume), format it as NTFS because only Windows will use it, and assign it the letter D:. It now appears in File Explorer.
Change one input. Suppose the drive will travel between a Windows PC and a Mac. Out of the box, macOS can read NTFS but cannot write to it, while both systems can read and write exFAT. So you follow the same steps but choose exFAT, because the job changed.
Notice what disk management does not cover: the hardware connection. If a drive does not appear in Disk Management at all, the problem is lower down, in a cable, a port or a missing driver. That is device management, and exam questions like to set exactly this trap.
Task Manager and the work of process management
When you start a program, the OS creates a process: a running instance of that program plus everything it needs. Microsoft lists what a Windows process holds. It has a private range of memory addresses, the program's code, handles to the files and objects it has open, a security context recording which account it runs as, a unique process identifier (PID) and a priority class.[5] Inside each process are one or more threads. A thread is one sequence of instructions, and it is the unit the OS actually schedules onto a processor.[5] A browser might use one thread to draw the page and another to download a file.
You may have dozens of programs open, but the central processing unit (CPU) has only a few cores. The OS shares them using preemptive multitasking. The scheduler, which is part of the OS, gives each thread a short slice of processor time. When the slice ends, the scheduler preempts the thread: it takes the core away without waiting for the program to give it up, and hands the core to the next waiting thread. The switching is fast enough to create the effect of everything running at once.[5] Microsoft also states the hard limit: a multiprocessor computer can run as many threads at the same moment as it has processors.[5]
Work the numbers once. Assume a four-core CPU without simultaneous multithreading, so each core runs one thread at a time. Nine threads are ready to run. At any instant at most four of them run and five wait, and the scheduler keeps rotating them, giving extra turns to higher-priority threads. Now put the same nine threads on a single-core CPU: one runs and eight wait. The machine still seems to multitask, but heavy work goes slower, because all the computing must pass through one core. A CPU with simultaneous multithreading, which Intel calls Hyper-Threading, presents each core as two logical processors, so a four-core chip of that kind could run eight threads at once.
The OS manages memory much as it manages processor time. It gives each process its own memory space and stops processes from reading each other's memory. When random-access memory (RAM) fills up, the OS moves data that has not been used recently out to a page file or swap space on the drive. Drives are far slower than RAM, so a machine that is short of memory feels sluggish even when the CPU is idle.
You can watch this happen in Task Manager on Windows (Ctrl+Shift+Esc), in Activity Monitor on macOS, and with the top command on Linux. Here is a fictional snapshot from a slow laptop:
| Name | PID | Status | CPU | Memory |
|---|---|---|---|---|
| Video exporter | 9015 | Running | 74% | 2,010 MB |
| Web browser | 7788 | Running | 6% | 1,240 MB |
| Word processor | 4120 | Not responding | 0% | 412 MB |
| Antivirus service | 1032 | Running | 1% | 180 MB |
| Print spooler service | 2296 | Running | 0% | 12 MB |
The user reports that the whole laptop is slow and the word processor is frozen. The snapshot shows two separate problems. The video exporter is using 74% of the CPU, which explains the slowness and is expected while it renders. The word processor shows "Not responding": it has stopped answering the OS's messages and is using no processor time. Ending its process (End task) closes the window and frees its 412 MB, but any unsaved changes are lost. A sensible plan is to wait a minute in case it recovers, then end it, and let the exporter finish. If the exporter had instead shown "Not responding" at 0% for an hour, it would be the one to end.
The last two rows make one more point. Services such as the print spooler are processes with no window at all, and the OS schedules them like any other process.
So what?: process management is about programs that are running. The OS shares processor time by preemptive scheduling, gives each process its own memory, and lets you inspect or end one process without disturbing the rest.
Application management: installing, updating and removing software
An application is a program installed on the drive, and a process is what you get when it runs. The OS manages each application through its whole life:
| Stage | What the OS does | Example |
|---|---|---|
| Install | Copies the program's files, records that the app is installed, adds shortcuts and file associations | Installing a reader so PDF files open in it |
| Launch | Loads the program into memory and creates its process | Double-clicking the icon |
| Update | Replaces changed files, often through an app store or the app's own updater | A browser updating itself overnight |
| Remove | Deletes the program's files and the OS's record of the app | Uninstalling from Settings, Apps |
Where apps come from differs by system. Phones mostly use a store: Google Play on Android, the App Store on Apple devices. Desktops accept store apps, installers downloaded from a vendor's website and, on Linux, package managers such as apt, which fetch software from the distribution's repositories. On Windows, installing an app for every user on the computer usually brings up a User Account Control prompt asking for administrator approval. That is where application management meets access control.
Mobile operating systems also fence every app in. On Android, every app runs in an application sandbox, and by default it can reach only a limited range of system resources.[3] To use more, such as the camera, it needs a permission. Older Android documentation described permissions being shown at install time, with the user forced to grant or refuse them all as one block.[3] Later Android versions instead ask for sensitive permissions, such as the camera, while the app is running.
Google's current overview says users can see the permissions each app requests and control them.[1] Either way, the OS decides what an app may touch, not the app.
Keep this apart from process management. Uninstalling an app, updating it, or choosing which app opens Portable Document Format (PDF) files concerns installed software, so it is application management. Ending a frozen program concerns software that is running right now, so it is process management.
Device management: drivers, plug and play and Device Manager
Lesson 8 introduced the device driver: a small program that translates the OS's general requests, such as "print this page", into the commands one piece of hardware understands. Device management is the OS's job of detecting hardware, loading the right driver for it and tracking each device's state.
Most of this happens through plug and play. When you connect a device, the OS detects it, reads an identifier the device reports about itself, and looks for a matching driver. The driver may be built into the OS or fetched through the OS's update service. If no driver matches, the device still appears, but it is flagged as a problem. On Windows the tool for this is Device Manager. Here is a fictional view:
| Category | Device | Status shown |
|---|---|---|
| Display adapters | Integrated graphics | This device is working properly |
| Network adapters | Wi-Fi 6 adapter | This device is working properly |
| Other devices | Unknown device (new label printer) | Yellow warning triangle: drivers for this device are not installed |
Here is a worked case. A receptionist plugs in a new label printer and nothing happens. Windows can see that something is connected, but with no driver it does not know the device is a printer. The fix is to install the driver from the printer maker's support site, then check that the device has moved out of "Other devices" and shows no warning. If a later driver update causes trouble, Device Manager's Roll Back Driver option returns to the previous version. Device management also covers disabling and re-enabling a device, and power settings such as letting a USB device sleep.
Phones keep hardware behind the OS in the same way, for parts such as the subscriber identity module (SIM) card. Third-party Android apps get no low-level access to the SIM card, and the OS handles all communication with it.[3]
Keep three similar ideas apart. A disk is a device, so its driver is device management, but its partitions and drive letters are disk management. A camera is a device, but whether a particular app may use it is access control.
Access control: who may do what
The US National Institute of Standards and Technology (NIST) defines access control as "the decision to permit or deny a subject access to system objects", such as networks, data, applications or services.[6] A subject is whoever is asking: a person, a program or a process. An object is the thing being asked for. NIST's glossary also describes internal security controls: hardware, firmware or software features inside a system that restrict access to authorized subjects only.[7] Firmware means software stored permanently in a device's own chip. An operating system is full of such controls.
The OS answers two questions, in this order:
- Authentication: who are you? You sign in with a password, a Personal Identification Number (PIN), a fingerprint or a face scan, and the OS ties your session to a user account.
- Authorization: what may this account do? Each time a process tries to open a file, change a setting or use a device, the OS checks the account's permissions. Every process carries a security context, so a program you start runs with your rights and no more.
NIST describes access control that can be set per user, per group and per resource.[6] Operating systems also separate account types. An administrator account can install software and change system settings, and a standard account cannot. Giving each person only the access their work needs is called least privilege. The security module of this course builds on it, as does Security+.
Here is a worked example. A small firm keeps a Payroll folder on a Windows computer. The folder's permissions list, called an access control list (ACL), looks like this (fictional):
| Who | Permission on the Payroll folder |
|---|---|
| Finance group | Modify (read, change, create and delete files) |
| Administrators group | Full control (everything, including changing the permissions) |
| Anyone not listed | No entry, so no access |
Dana works in Sales and double-clicks Payroll. Her account belongs to the Sales group only. The OS compares her account and groups with the list, finds no match, and refuses with "Access denied." Nothing is broken: access control is doing its job. Now flip one input. Dana joins the finance team, and an administrator adds her account to the Finance group. Windows reads group membership when you sign in, so once Dana signs out and back in, the same double-click opens the folder and she can edit the files in it.
Linux and macOS show permissions in a compact form. In this fictional listing of one file, the first ten characters are the permissions:
-rw-r----- 1 maria finance 18244 Nov 3 09:12 payroll.xlsx
Skip the first character, which marks the type of entry (a dash means an ordinary file), and read the rest in groups of three. The owner, maria, has rw- (read and write). The finance group has r-- (read only). Everyone else has --- (nothing). These are the same ideas as the Windows list, in shorter notation.
So what?: when a question mentions accounts, permissions, "access denied" or administrator rights, the answer is access control, even when the thing being protected is a device such as a camera.
Mobile, desktop/workstation, server and embedded operating systems compared
Every OS does the six jobs above. The four types weigh them differently because each is built for different work. Read across a row to compare them:
| Feature | Mobile device | Desktop/workstation | Server | Embedded |
|---|---|---|---|---|
| Examples | Android, iOS, iPadOS | Windows 11, macOS, Linux distributions such as Ubuntu, ChromeOS | Windows Server, Linux server distributions | Firmware in routers, printers, thermostats and car controllers |
| Who uses it | One person, carrying it | One person at the keyboard (several accounts possible) | Many client devices over the network at once | Often nobody directly, or a fixed panel |
| Interface | Touch and voice | Full GUI with keyboard and mouse, plus a CLI | Often no GUI; managed remotely, frequently by CLI | Buttons, a small screen, a web page, or nothing |
| Hardware and power | Battery, cellular and Wi-Fi radios, low-power processor | Mains power or a laptop battery; many peripherals | Always on, lots of RAM and storage, often spare parts built in | Small processor, little memory, hardware fixed at the factory |
| How software arrives | App store, each app sandboxed | Stores, downloaded installers, package managers | Roles and services installed by an administrator | Fixed at the factory; users cannot add apps |
A mobile operating system is designed around a battery, a touchscreen and a radio that is always connected. Android's core is based on the Linux kernel.[3] Apple's iOS and iPadOS run on iPhones and iPads. Both put every app in a sandbox, deliver apps mainly through a store, and limit what apps do in the background to save battery. Updates come from the vendor. Google's Android security team provides monthly security updates to Google's own devices and to its partner manufacturers.[1] So how quickly a phone from another maker receives a fix depends partly on that maker.
A desktop/workstation OS is for one person sitting at a full computer. It offers a windowed GUI, supports a wide range of peripherals, and lets you install software from almost anywhere. A workstation is a high-powered desktop built for demanding work such as computer-aided design (CAD), computer-aided manufacturing (CAM), 3D rendering or video editing. It uses the same OS families as a desktop, on stronger hardware.
A server OS is built to serve many clients at once over a network. It runs services such as file sharing, web hosting, email, the Dynamic Host Configuration Protocol (DHCP) and the Domain Name System (DNS). It often runs without a monitor or GUI and is managed remotely, for example over Secure Shell (SSH). Updates are scheduled for quiet hours to protect uptime. What makes an OS a server OS is the job it is built and licensed for, not bigger hardware: a powerful CAD workstation is still a desktop/workstation.
An embedded system is a device built for one purpose, such as a home router, a network printer, a smart thermostat, a car's engine controller or a medical infusion pump. Its OS is stored in flash memory as firmware, kept small, and usually cannot take new apps. Some use a real-time operating system (RTOS), which guarantees a response within a fixed deadline. An airbag controller that answers late has failed, even if its answer is correct. Embedded devices often stay in service for years with rare updates, which is why the Internet of Things (IoT) devices from Lesson 5 are a common security weak spot. The line can blur: Android on a car dashboard is a mobile-family OS doing an embedded job.
Choosing an OS type for a dental practice
Four questions sort almost any job. Does one person use it directly, or do many devices connect to it? Is its purpose fixed at the factory? Is it carried, battery-powered and touch-operated? Does the work need full-size software and many peripherals? Apply them to a fictional dental practice with twelve staff:
| Job | Clues | OS type |
|---|---|---|
| Store patient records that every room opens, 24 hours a day | Many network clients at once, always on, nobody sits at it | Server |
| Front desk: scheduling software, invoices, a receipt printer, a card reader | One person, keyboard, several peripherals, full applications | Desktop/workstation |
| Dentist checks the day's list while walking between rooms | Carried, touch, battery, wireless | Mobile device |
| Controller inside the X-ray sensor | One fixed task, no app installs, firmware | Embedded |
Now change one input. The practice moves its records to a hosted service (Software as a Service, or SaaS, from Lesson 10). The first row changes: the practice no longer runs a server OS at all, and staff reach the records through browsers. A server OS still exists, but it belongs to the provider. The job moved, so the right answer for this office changed.
Exam cues: words in the question and where they point
| If the stem says... | Think | Do not confuse with |
|---|---|---|
| Apps need no code for each model of hardware; hides hardware details | Interface between applications and hardware | Device management, the driver end of the same chain |
| Partition, format, file system, volume, drive letter, unallocated | Disk management | Device management, when the drive is not detected at all |
| Not responding, end task, CPU usage, scheduling, multitasking | Task and process management | Application management, which deals with installed software |
| Install, uninstall, update an app, app store, default app | Application management | Process management, which deals with running software |
| Driver, plug and play, Device Manager, yellow warning icon | Device management | Disk management |
| Account, permission, access denied, administrator, app may use the camera | Access control | Device management, even when the object is a device |
| Touch, battery, cellular, sandboxed apps from a store | Mobile device OS | Embedded, when the device has one fixed job |
| One user, CAD, video editing, many peripherals | Desktop/workstation OS | Server, which serves other machines |
| Many clients at once, no monitor, remote management, always on | Server OS | A desktop sharing one folder with a few users |
| Single purpose, firmware, thermostat, router, real-time | Embedded OS | Mobile OS |
Common misconceptions
- "The operating system is the desktop and the icons." The GUI is only one way into the OS. Servers often run with no GUI and embedded devices may have no screen, yet both run complete operating systems.
- "Apps talk to the hardware directly." Apps make requests to the OS, and the OS and its drivers operate the hardware. That is why one app works on thousands of machines.
- "Disk management and device management are the same, because a disk is a device." Device management gets the hardware detected and working with a driver. Disk management organizes the storage once it is visible.
- "An application and a process are the same thing." An application is installed software. A process is a running instance of it, and services run as processes with no window.
- "Embedded devices have no real OS, so they never need updates." Routers, printers and smart devices run real operating systems in firmware, with flaws like any other software.
- "A server OS just means a more powerful computer." The type is defined by the job: serving many network clients, run for uptime.
The short version
- Tech+ names six OS purposes: interface between applications and hardware, disk management, task and process management, application management, device management, and access control.
- Apps make system calls to the OS, which passes the work to device drivers. This abstraction lets one app run on many machines and stops one app from taking over the hardware.
- A new drive is initialized (GPT or MBR), partitioned, formatted with a file system such as NTFS or exFAT, and given a drive letter or mount point. On Windows, the tool is Disk Management.
- A process is a running program with its own memory, security context and PID; a thread is the unit the scheduler runs. A four-core CPU without multithreading runs four threads at any instant and rotates the rest.
- Application management covers installed software (install, launch, update, remove). Process management covers running software, such as ending a task that is not responding.
- A device with no driver appears in Device Manager under Other devices with a warning icon; installing the driver is device management.
- Access control authenticates who you are, then authorizes what your account may do using permissions such as an ACL. "Access denied" on a protected folder means the control is working.
- Mobile OSs suit touch, battery and sandboxed apps; desktop/workstation OSs serve one person at a full computer; server OSs serve many network clients, often without a GUI; embedded OSs run one fixed task from firmware, sometimes in real time.
Sources
- Android Open Source Project (Google). (n.d.). Secure an Android device. source.android.com
- CompTIA. (2023). CompTIA Tech+ FC0-U71 V6 certification exam: Exam objectives (Document version 4.0). lecbyo.files.cmp.optimizely.com
- Android Open Source Project (Google). (n.d.). App security. android.googlesource.com
- Microsoft Learn. (n.d.). Overview of Disk Management. learn.microsoft.com
- Microsoft Learn. (n.d.). About Processes and Threads. learn.microsoft.com
- NIST Computer Security Resource Center. (n.d.). access control, Glossary. csrc.nist.gov
- NIST Computer Security Resource Center. (n.d.). internal security controls, Glossary. csrc.nist.gov
- Key terms
- Operating system (OS)
- The software that starts when a computer powers on and manages its hardware, storage, running programs, devices and user access on behalf of every other program.
- System call
- A request a program makes to the operating system, such as opening a file or sending data over the network, instead of controlling the hardware itself.
- Device driver
- A small program that translates an operating system's general requests into the specific commands one piece of hardware understands.
- Partition
- A region of a physical disk that the operating system treats as a separate unit. Once formatted with a file system, it becomes a volume with a drive letter or mount point.
- Process
- A running instance of a program, with its own memory space, open resources, security context and process identifier (PID).
- Thread
- A single sequence of instructions inside a running program. It is the unit the operating system's scheduler assigns to a processor core.
- Preemptive multitasking
- A scheduling method in which the operating system gives each thread a short slice of processor time, then takes the core away and gives it to another thread, so many programs appear to run at once.
- Application sandbox
- An isolated environment in which an app runs, so that by default it cannot reach other apps' data or protected hardware unless the operating system grants permission.
- Access control
- The decision to permit or deny a user, program or process access to a resource such as a file, setting, device or service, based on its permissions.
- Embedded operating system
- An operating system built into a device with one dedicated purpose, such as a router or thermostat. It is usually stored as firmware and cannot be extended with user apps.
Choosing and Using Software Well
- Match a workplace task to the right kind of productivity, collaboration, messaging, browsing or remote support software, and explain why a similar alternative fits worse.
- Use core features correctly: word-processor styles and tracked changes, spreadsheet formulas with absolute references, presentation masters and diagram connectors.
- Set up and use an email client, a conferencing tool, an online workspace and document-sharing permissions in ways that protect people and data.
- Tell a legitimate remote support session from a tech support scam, and say what to do in each case.
One week at a fictional food pantry
Northgate Community Pantry is an example office invented for this lesson. It has four paid staff, about forty volunteers, eleven laptops and one office manager, Dana Okafor. In one week in March, Dana has a lot to get through. On Monday she finishes a grant application. On Tuesday she rebuilds the budget. On Wednesday she briefs the board and maps the volunteer sign-up process. Thursday brings email, a board call and a shared shift schedule, and on Friday she rescues a volunteer's stuck laptop. Each job needs a different kind of software. Used well, each one saves her an afternoon. Used badly, each one can cost money, data or both.
Exam objectives: 3.3 Explain the purpose and proper use of software.[1] The objective sorts software into five families. Productivity software covers word processing, spreadsheets, presentations and visual diagramming. Collaboration software covers the email client, conferencing, online workspaces and document sharing. Then come instant messaging software, web-browsing software and remote support software. For each family you need two things: the job it is for, and what using it well looks like.
Monday: the grant application and the word processor
A Word processor is an application for creating, editing and formatting documents that are mostly text, such as letters, reports, contracts and flyers. Microsoft Word, Google Docs, Apple Pages and LibreOffice Writer are common examples. It looks like a typewriter on a screen, but the features that matter are the ones a typewriter never had. Dana's application has a cover letter, four sections with headings, a table of figures and a page limit.
- Styles. A style is a named bundle of formatting, such as "Heading 1: 16 point, bold, dark blue". Dana applies Heading 1 to each section title instead of formatting each one by hand. When the funder asks for 14 point headings, she edits the style once and every heading changes. Styles also build an automatic table of contents, and they let screen readers announce headings to blind readers.
- Templates. A template is a starting document with the layout, logo and styles already set, so every pantry letter looks the same.
- Track changes and comments. The director edits Dana's draft with tracking turned on. Each insertion and deletion shows in color with his name, and Dana accepts or rejects each one. Comments sit in the margin as questions. Nobody quietly overwrites anybody else.
- Spelling, grammar and word count. These are useful checks, but they do not prove the text is right. A spell checker will accept "4,000 families" when the true figure was 400.
- Mail merge. Dana writes one thank-you letter with placeholders for each donor's name and gift amount. She connects it to a list of 120 donors and gets 120 personal letters.
- Export. She keeps her working copy in the editable format, such as .docx, and sends the funder a PDF (Portable Document Format) file. A PDF looks the same on any device and is hard to change by accident, which suits a finished document.
Three mistakes come up again and again. The first is laying out pages with the space bar and the Enter key, so the layout falls apart when one line changes. The second is sending an editable file when the reader needed a PDF. The third is leaving tracked changes unresolved, so the funder reads the director's private note in the margin. Accept or reject every change, delete resolved comments, then open the final file in a viewer and check it.
Worth holding on to: a word processor earns its keep through structure, not typing. Styles, templates, tracked changes and mail merge let one edit change many things, and they let several people edit without losing each other's work.
Tuesday: the budget, a spreadsheet and a formula that broke
A Spreadsheet program arranges data in a grid of cells. Microsoft Excel, Google Sheets, Apple Numbers and LibreOffice Calc are common examples. Columns are labeled with letters and rows with numbers, so the cell in column B, row 6 is called B6. A cell holds either a value you type, such as 18000, or a formula. A formula starts with an equals sign and calculates its result from other cells. Formulas are the whole point. A spreadsheet is a calculator that remembers how it reached every answer and works it out again whenever an input changes.
Dana's budget has four lines, a total, and each line's share of the total. Here it is with the formulas showing instead of the results. The figures are fictional.
| Row | A | B | C |
|---|---|---|---|
| 1 | Item | Amount | Share of total |
| 2 | Food purchasing | 18000 | =B2/$B$6 |
| 3 | Rent | 9000 | =B3/$B$6 |
| 4 | Van fuel | 2400 | =B4/$B$6 |
| 5 | Supplies | 600 | =B5/$B$6 |
| 6 | Total | =SUM(B2:B5) | =SUM(C2:C5) |
Work it through. B6 holds =SUM(B2:B5), which adds every cell from B2 to B5: 18,000 + 9,000 + 2,400 + 600 = 30,000. C2 divides food purchasing by the total: 18,000 / 30,000 = 0.60, which Dana formats as 60%. Rent comes out at 30%, fuel at 8% and supplies at 2%. C6 checks that the shares add up to 100%.
Now for the step that catches almost everyone. Dana's first try in C2 was =B2/B6. She copied it down with the fill handle, the small square at the corner of the cell. An ordinary address such as B6 is a relative reference. It means "the cell this many rows and columns from here", so when you copy a formula one row down, every relative address in it moves one row down too. C3 became =B3/B7, C4 became =B4/B8 and C5 became =B5/B9. Rows 7-9 are empty. An empty cell counts as zero, and dividing by zero gives the error #DIV/0!. Dollar signs, as in $B$6, make an absolute reference, which stays on the same cell however far you copy the formula. So each formula needs one of each kind. B2 is relative because it should become B3, B4 and B5. The total is absolute because it never moves.
Now change one input and run it again. The landlord raises the rent to 12,000. Dana types 12000 into B3 and touches nothing else. B6 recalculates to 33,000, and every share follows: food 54.5%, rent 36.4%, fuel 7.3%, supplies 1.8%, still 100% in total. Compare an older copy of the sheet. In that copy, a volunteer once "tidied up" by typing 30000 over the formula in B6. That sheet still divides by 30,000, so after the rent rise it shows food 60%, rent 40%, fuel 8% and supplies 2%, which adds up to 110%. No cell shows an error. Every number looks believable, and the board would vote on a wrong budget.
Other features you should recognize are sorting and filtering rows, charts built from a range of cells, and functions such as SUM, AVERAGE and IF. A single file can also hold several sheets (tabs), and the whole file is called a workbook. Lesson 24 looks at the point where a spreadsheet is no longer enough and a database takes over.
Worth holding on to: you can trust a spreadsheet only as far as you can trust its formulas. Relative references move when copied, absolute references such as $B$6 stay put, and a typed number sitting where a formula belongs gives wrong results with no warning.
Wednesday: slides for the board and a diagram of the volunteer process
Presentation software builds a series of slides to show an audience, usually while someone speaks. Microsoft PowerPoint, Google Slides, Apple Keynote and LibreOffice Impress are examples. It is there to support a speaker, not to replace a document. Dana's board briefing has eight slides, including Tuesday's budget chart and a short video of the new van.
- Slide master. The master sets fonts, colors and the logo for every slide in one place. It does the same job that styles do in a word processor.
- Layouts and placeholders. These are ready-made slide arrangements (title only, title and content, two columns) with boxes waiting for text or pictures.
- Speaker notes and presenter view. Notes are text that only the presenter sees. With the projector set up as a second, extended display (Lesson 8), presenter view shows Dana her notes and the next slide, while the room sees only the current slide.
- Embedded or linked media. An embedded chart or video is stored inside the presentation file. A linked one only points to a file somewhere else. If Dana copies just the presentation onto a flash drive, the van video will be missing on the boardroom computer. Embedding makes the file bigger, but the file then carries everything it needs.
Good practice is a few words and one idea per slide, with full sentences in the notes or a handout. Use animations to show order, such as one bar of a chart appearing at a time, not as decoration. Rehearse on the real projector and computer, because a font missing from that computer can rearrange every slide.
Wednesday's second job is a muddle Dana wants to sort out: nobody can explain how a new volunteer gets from the sign-up form to a first shift. This job needs Diagramming software, which the exam calls visual diagramming. Microsoft Visio, diagrams.net (formerly draw.io) and Lucidchart are examples. These tools build pictures from libraries of standard shapes for flowcharts, network diagrams, organization charts and floor plans. The shapes are joined by connectors that stay glued to them, so when you move a box, its lines follow. Here is Dana's flowchart written out shape by shape (fictional):
| Shape | Text in the shape | Connector leads to |
|---|---|---|
| Rounded box (start) | Volunteer submits online sign-up form | Age check |
| Diamond (decision) | Aged 18 or over? | Yes: background check. No: parent consent form |
| Rectangle (step) | Parent consent form returned | Background check |
| Rectangle (step) | Background check cleared | Orientation session |
| Rounded box (end) | First shift scheduled | None |
Two nearby tools get confused with diagramming software. You can draw boxes and arrows on a slide, but those arrows usually do not stay attached, so the drawing falls apart the first time you edit it. CAD (computer-aided design) software makes precise drawings with exact measurements, such as a machine part or a building. A diagram shows how things relate, not their exact size. Lesson 22 uses the same flowchart symbols to plan code.
All four productivity tools now come in two forms. One is a desktop application that works offline. The other is a web version that saves to the cloud and lets several people edit at once (Lesson 10 calls this software as a service). Many offices use both forms. Either way, they should agree on one file format and one storage place, so there is a single copy that everyone treats as the real one.
Thursday morning: the email client, and a message that lied
An Email client is an application that sends, receives and organizes email. Microsoft Outlook, Apple Mail, Mozilla Thunderbird and the mail app on a phone are examples. Webmail, such as Gmail, does the same job inside a browser. The client uses separate protocols for sending and for receiving. A protocol is an agreed set of rules for how two programs talk to each other.
- Simple Mail Transfer Protocol (SMTP) sends mail. The client hands outgoing messages to its mail server, and servers use SMTP to pass them on toward the recipient's server.
- IMAP retrieves mail and leaves it on the server. CompTIA's acronym list expands it as Internet Mail Access Protocol, while the standards documents call it Internet Message Access Protocol. Both names mean the same protocol.
- POP3 (Post Office Protocol 3) also retrieves mail, but it downloads the messages to one device.
- SMTPS, IMAPS and POP3S are the same protocols with the connection encrypted, so nobody on the network can read the password or the mail as it passes.
Dana sets up a new office laptop. Here is what the account screen asks for, filled in with fictional values. The domain .example is reserved for examples like this one.
| Field | What Dana enters |
|---|---|
| Email address | dana@northgate-pantry.example |
| Account type | IMAP |
| Incoming mail server | imap.northgate-pantry.example |
| Outgoing mail server (SMTP) | smtp.northgate-pantry.example |
| Connection security | SSL/TLS (encrypted) |
| Outgoing server requires sign-in | Yes, same username and password |
She chooses IMAP because she reads mail on both this laptop and her phone. Here is why that choice matters.
| Question | IMAP | POP3 |
|---|---|---|
| Where do messages live? | On the server; each client keeps a synchronized copy | Downloaded to one device, usually removed from the server |
| Several devices? | Folders and read or unread status match everywhere | Each device sees only its own downloads |
| If the laptop dies? | Mail is still on the server | Mail that existed only on the laptop is lost unless backed up |
| Typical use | The normal choice for most accounts today | A single computer, or a server with very little storage |
At 10:40, this message arrives (fictional):
From: Marcus Lee, Director <director@northgate-pantry.example>
Reply-To: marcus.lee.director@freemail.example
Subject: Urgent, quick favor before 3pm
Dana, I'm stuck in a meeting. Please buy six gift cards for the
volunteer awards and email me the codes. Don't call, I can't talk.
The From line shows the director's real address, and that proves nothing. The SMTP standard, RFC (Request for Comments) 5321 from October 2008, says in its security section that SMTP mail is inherently insecure.[2] Even fairly casual users can talk directly to mail servers and create messages that trick a naive recipient about where they came from.[2] Some mail providers now run extra checks on sending servers, but those checks are not used everywhere, and they do nothing against look-alike addresses. Look at the warning signs: urgency, a request for secrecy, gift cards, and a Reply-To address at a free webmail service. If Dana pressed Reply, her answer would go to the fraudster. Instead she phones Marcus on the number she already has. He knows nothing about the message. The Security+ course covers phishing in depth.
Three habits for any email client:
- To, CC and BCC. To is for the people who need to act. CC (carbon copy) is for people who should be kept informed. Everyone can see the To and CC addresses. BCC (blind carbon copy) recipients are hidden from everyone else, so when Dana writes to all forty volunteers, she puts them in BCC.
- Links instead of large attachments. Mail servers limit message size, and every attachment is one more copy that will drift away from the real file. A shared link points to the one live copy.
- Verify money and password requests through a channel you already know, never through the message itself.
Thursday afternoon: a board meeting in Microsoft Teams
The nine board members live in three towns. Web conferencing software, such as Microsoft Teams, Zoom, Google Meet or Webex, lets them meet without traveling. Microsoft describes a Teams meeting as including audio, video and screen sharing.[3] One board member has only a landline. Teams handles this with Audio Conferencing, which lets people join a meeting from an ordinary phone by dialing in.[3] Conferencing is synchronous, meaning everyone takes part at the same moment. Email is asynchronous: people take part whenever it suits them.
Conferencing platforms offer more than one kind of event, and choosing the right one is part of proper use. Microsoft's training material describes three Teams types:
| Type | Built for | Audience interaction | Registration |
|---|---|---|---|
| Meeting | One-to-one calls up to large team meetings | Full two-way audio, video, chat and screen sharing | No |
| Webinar | Presentations to an audience that signs up | Configurable: polls, chat, reactions, presenter controls | Yes |
| Town hall | Broadcasting to a very large audience | Mostly watching; moderated questions and answers | No |
In a regular Teams meeting, up to 1,000 participants have fully interactive, equal meeting capabilities.[3] Webinars add tools to schedule the event, register attendees, run an interactive presentation and analyze attendee data afterward.[3] Town halls broadcast video and meeting content to a large online audience.[3] That makes a town hall the wrong tool for nine people who need to argue about a budget and then vote. Dana picks an ordinary meeting.
- Test first. Check your microphone, camera and speakers in the app's device settings before the meeting starts, not while everyone waits.
- Share one window, not the whole screen. Sharing the whole screen shows every pop-up notification, including private messages.
- Control who gets in, and ask before recording. A lobby or waiting room keeps out an outsider who has a leaked link. Recording rules vary between places and between organizations, so tell people first.
- Mind your upload speed. Video needs bandwidth in both directions, and home connections often upload far more slowly than they download (Lessons 3 and 11). If video freezes, turning your camera off usually keeps the audio running.
One distinction to keep clear: sharing your screen in a meeting lets others watch what you do. Remote support software, covered below, lets someone else control your computer.
Worth holding on to: choose the conferencing format by how much the audience needs to talk. A meeting is for everyone talking with everyone, a webinar is for presenting to registered attendees, and a town hall is for broadcasting to a large audience that mostly watches.
Online workspaces and document sharing: one live copy instead of six
Before Thursday, the volunteer shift schedule lived in a file called Schedule_April_FINAL_v3_Dana-edits.xlsx. Six versions had been emailed around, and nobody knew which one was right. Two collaboration bullets solve this problem in different ways.
An Online workspace is a shared space in the cloud where a team keeps files, conversations, task lists and documents that members edit together in real time. Microsoft 365 with Teams channels, Google Workspace, Slack and Notion are examples. You go there to work, and access usually follows team or channel membership. Document sharing is narrower. It gives particular people access to particular files or folders, with permissions you choose, usually through a cloud storage service such as OneDrive, Google Drive, Dropbox or Box. You use it to let people, including outsiders such as an auditor, reach a file.
Both rely on the same mechanics. Co-authoring means several people edit one file at once and watch each other's changes appear. Version history keeps earlier versions, so a bad edit can be rolled back. Permissions set what each person may do. Here is the sharing screen for the new schedule (fictional):
| Person or group | Access |
|---|---|
| Dana Okafor | Owner (can change sharing, can delete) |
| Warehouse lead | Editor (can change content) |
| All volunteers group | Viewer (can read, cannot change) |
| General access | Restricted: only the people listed above can open it |
The general access line matters most. The usual choices are named people only, anyone in the organization, or anyone with the link. "Anyone with the link" means exactly that: if the link is forwarded once, a stranger can open the file without signing in. This schedule holds volunteers' phone numbers, which count as PII (personally identifiable information), so it must never be open to anyone with the link. A few habits cover proper use. Share a link to the one live copy instead of attaching copies. Give the lowest permission that does the job, which usually means viewer. Name the people who can open sensitive files. Set expiry dates on links for outsiders where the service offers them. Remove a volunteer's access when they leave.
Instant messaging: fast, but not a filing cabinet
Instant messaging software sends short text messages in near real time between people who are online. Teams chat, Slack, Google Chat, WhatsApp and Signal are examples. Two features set it apart from email. The first is presence, a status indicator (Available, Busy, Away, Do not disturb) that tells you whether a quick reply is likely. The second is how conversations are organized: as direct messages and group channels, often split into threads. At 2:05, Dana needs to know whether the van is back. The warehouse lead shows as Available, and her instant message gets an answer in thirty seconds. An email would have sat unread until he next checked his inbox.
| If the message is... | Use | Why |
|---|---|---|
| Short, urgent, to someone shown as available | Instant message | Near-real-time reply; presence shows whether they are there |
| Long, formal, or for people outside the organization | Asynchronous, universal, easy to file and forward as a record | |
| A discussion that needs voices and a decision | Conferencing meeting | Live back-and-forth that is slow to do in writing |
| About text people are editing | Comment in the shared document | The note stays attached to the text it is about |
Never send passwords through chat. Workplace chat is usually kept and can be searched by the organization, however casual it feels. When a chat reaches a decision, write the decision down somewhere people will find it later. Workplace messaging is also different from SMS (Short Message Service) texting. SMS travels over a mobile carrier's network to a phone number. An instant messaging app runs over the internet, between accounts.
The web browser underneath it all
Count the tools from Dana's week that she opened in a Web browser: Google Docs, webmail, Teams on the web, the cloud storage sharing screen, the online sign-up form. MDN, Mozilla's developer documentation, describes the client side of the web as an internet-connected device plus web-accessing software, usually a browser such as Firefox or Chrome.[4] Chrome, Edge, Firefox and Safari are the common ones. When Dana types a web address, three things happen:
- The browser asks a DNS (Domain Name System) server for the real address of the server where the website lives.[4]
- It sends an HTTP (Hypertext Transfer Protocol) request to that server, asking for a copy of the page.[4]
- The server sends back the page's code and files, and the browser renders them, meaning it assembles and draws them as the page you see.[4]
When the address starts with https, the connection uses HTTPS, which MDN describes as a secure version of HTTP that stops other people from reading your data while it travels.[4] CompTIA's acronym list expands HTTPS as Hypertext Transfer Protocol over Secure Sockets Layer. Today the encryption is actually done by TLS (Transport Layer Security), the successor to SSL, and you will often see HTTPS called Hypertext Transfer Protocol Secure.
A browser is not the internet, and it is not a search engine. Google Search and Bing are websites you visit in a browser. Chrome and Firefox are programs on your computer that do the visiting. A web app such as Google Docs runs mostly on its company's servers, and the browser is the client that displays it. The most common way browsing goes wrong is a password typed into a look-alike site. The owner of a web address is the name just before the first single slash. So docs.google.com.account-verify.example belongs to account-verify.example, not to Google. Other common failures are an outdated browser, which is the program that handles the most untrusted content, and extensions installed from outside the official store. Lesson 17 covers browser settings, privacy and safe browsing in detail.
Friday: Quick Assist, and a phone call that was a scam
At 9:15 on Friday, a volunteer named Ruth rings Dana. Her laptop will not print the delivery list, and she lives forty minutes away. Remote support software lets a helper see another person's computer over a network and, with permission, control it, so problems can be fixed without traveling. Some tools are attended: a person at the far end starts the session and watches. Others allow unattended access to machines nobody is sitting at, such as servers. Windows Remote Desktop, which uses RDP (Remote Desktop Protocol), is often used that way. Other common remote support products include TeamViewer, AnyDesk and Chrome Remote Desktop.
Dana uses Quick Assist, which Microsoft describes as an application that lets a person share their Windows or macOS device with another person over a remote connection.[5] The helper can view the display, make annotations, or take full control.[5] The helper must have a Microsoft account, but the sharer does not need to sign in.[5] Quick Assist communicates over port 443, the port HTTPS uses.[5] Both people must be able to reach a list of Microsoft service addresses on that port.[5] The traffic is encrypted with TLS 1.2.[5] A legitimate session goes like this:
- Ruth contacted Dana. Because the user made the first contact, the rest of the session is acceptable.
- Dana, the helper, opens Quick Assist, signs in and gets a short security code.
- Dana reads the code to Ruth over the phone. Ruth, the sharer, opens Quick Assist and enters it.
- Ruth approves screen sharing. When Dana asks for full control, Ruth has to approve that separately.
- Dana finds a stuck print job, restarts the print service and prints a test page while Ruth watches.
- Either of them can end the session at any time. Ruth closes it once the list has printed.
At 3:30, a different call reaches a volunteer at the front desk. The caller says he is from Microsoft, claims the computer is "sending virus alerts", and asks her to open Quick Assist and read him the code. It is the same tool, but this time it is being used to break in. Microsoft's own Quick Assist page says to let a helper connect only if you started the contact yourself, by contacting Microsoft Support or your IT (information technology) staff directly.[5] The same page states that Microsoft will never contact you through unsolicited emails, phone calls or other methods to request access to your device.[5] The volunteer hangs up and tells Dana.
Government agencies take this risk seriously. On 6 June 2023, the Cybersecurity and Infrastructure Security Agency (CISA), the National Security Agency (NSA), the Federal Bureau of Investigation (FBI), the Multi-State Information Sharing and Analysis Center (MS-ISAC) and Israel's National Cyber Directorate released a joint Guide to Securing Remote Access Software.[6] They warn that attackers use legitimate remote access tools to "live off the land". That means working with trusted software that is already present, so security tools are less likely to notice them.[6] Encryption is no help here, because the person at the other end of the encrypted connection is the criminal.
The rules for proper use are short. Accept only a session you started, through a contact you already know. Watch the whole session. Grant the least control that fixes the problem. Never type passwords while someone else can see your screen. End the session as soon as the work is done. Organizations should approve one remote support tool and block the rest, so an attacker's tool stands out. Microsoft suggests that organizations using Quick Assist inside one Microsoft Entra tenant, meaning one company sign-in directory, consider Intune Remote Help for enterprise-grade controls.[5] The A+ course covers remote access tools from the technician's side.
Worth holding on to: what makes remote support safe is who started the contact, not the brand of the tool or its encryption. A session you asked for through a known contact is support. A session someone else pushes on you is an attack using the same software.
Exam cues: what the question says and what it points to
| Words in the question | Points to | Typical misuse | Easily confused with |
|---|---|---|---|
| Letters, reports, styles, track changes, mail merge, export to PDF | Word processing | Hand formatting instead of styles | Spreadsheet, which holds the mailing list, not the letter |
| Rows and columns, cells, formulas, recalculate, chart from data | Spreadsheet | Typing results over formulas | Database, once data outgrows one sheet |
| Slides, speaker notes, presenter view, audience | Presentation | Paragraphs on slides; linked media left behind | Conferencing, which carries the slides to remote viewers |
| Flowchart, network diagram, org chart, shapes and connectors | Visual diagramming | Loose arrows drawn in other tools | CAD, for measured drawings |
| Send and receive mail; configure SMTP, IMAP or POP3 | Email client | Trusting the From line | Webmail, the same job in a browser |
| Audio, video, screen sharing, dial-in, webinar | Conferencing | Whole-screen sharing; open lobby | Remote support, which gives control rather than a view |
| Team files, chat and tasks in one place; live co-editing | Online workspace | Emailing copies anyway | Document sharing |
| Give view or edit access to a file; share a link | Document sharing | "Anyone with the link" on PII | Online workspace |
| Quick real-time text; presence status; channels | Instant messaging | Passwords in chat | Email (asynchronous); SMS (carrier texting) |
| Open a URL, render pages, run web apps | Web-browsing software | Signing in on a look-alike domain | A search engine or the website itself |
| Helper views or controls a user's computer from elsewhere | Remote support software | Accepting unsolicited sessions | Screen sharing in a meeting |
Common misconceptions
- "Attaching a file and sharing it come to the same thing." An attachment is a copy that starts drifting the moment anyone edits either version. Sharing gives access to one live file, with permissions you can change or take back.
- "The From line shows who sent the email." SMTP lets a sender write any From address. Check unusual requests through a channel you already know.
- "Remote support through a famous company's tool must be safe." Attackers deliberately use legitimate remote access tools. Safety depends on who started the contact.
- "If the spreadsheet calculated it, the number is right." A formula copied with the wrong kind of reference, or a typed value where a formula belongs, gives wrong results that look normal.
- "The browser is the internet." The browser is a client program. Search engines and web apps are services it visits on servers elsewhere.
Where this leaves us
- Productivity software means word processing, spreadsheets, presentations and visual diagramming. Collaboration software means the email client, conferencing, online workspaces and document sharing.
- Word-processor styles change formatting everywhere at once, and tracked changes record each editor's insertions and deletions so they can be accepted or rejected.
- A relative reference such as B6 shifts when a formula is copied, but an absolute reference such as $B$6 stays fixed. Copying =B2/B6 down into empty rows gives #DIV/0!.
- Linked media goes missing when only the presentation file is moved, while embedded media travels inside it.
- Diagramming tools keep connectors glued to shapes, which is why they suit flowcharts and network diagrams.
- Email clients send with SMTP and retrieve with IMAP, which keeps mail on the server and syncs every device, or with POP3, which downloads to one device. SMTP does not verify the From address.
- In Microsoft Teams, a meeting gives up to 1,000 people full interaction, a webinar adds registration, and a town hall broadcasts to a large audience.
- Document sharing gives chosen people chosen permissions on particular files. Never set "Anyone with the link" on a file that holds PII.
- Quick Assist runs over port 443 with TLS 1.2. Allow a helper in only if you started the contact, because Microsoft never makes unsolicited requests for access to your device.
Sources
- CompTIA. (2023). CompTIA Tech+ FC0-U71 V6 certification exam: Exam objectives (Document version 4.0). lecbyo.files.cmp.optimizely.com
- J. Klensin. (2008). RFC 5321: Simple Mail Transfer Protocol. IETF / RFC Editor. rfc-editor.org
- Microsoft Learn. (n.d.). Explore meetings and events in Microsoft Teams. learn.microsoft.com
- MDN Web Docs (Mozilla). (n.d.). How the web works. developer.mozilla.org
- Microsoft Learn. (n.d.). Use Quick Assist to help users. learn.microsoft.com
- CISA. (2023). Joint Guide to Securing Remote Access Software Released by CISA and Partners. cisa.gov
- Key terms
- Word processor
- An application for creating, editing and formatting text documents such as letters and reports, with features like styles, templates, tracked changes and mail merge.
- Spreadsheet
- An application that stores values and formulas in a grid of cells named by column letter and row number, and recalculates results whenever an input changes.
- Absolute cell reference
- A spreadsheet address written with dollar signs, such as $B$6, that keeps pointing at the same cell when a formula is copied; an ordinary relative reference shifts instead.
- Visual diagramming software
- An application for building flowcharts, network diagrams, organization charts and similar pictures from library shapes joined by connectors that stay attached when shapes move.
- Email client
- Software that sends email using SMTP, retrieves it using IMAP or POP3, and lets the user read, write and organize messages; webmail does the same job in a browser.
- Online workspace
- A shared cloud environment where a team keeps files, conversations, task lists and documents that members can edit together in real time.
- Document sharing
- Giving chosen people access to specific files or folders, usually in cloud storage, at a set permission level such as viewer or editor, often through a link.
- Instant messaging
- Software for short, near-real-time text conversations between online users, usually showing each person's presence status and organizing chats into direct messages and channels.
- Web browser
- Client software that looks up a site's address through DNS, requests pages over HTTP or HTTPS, and renders the returned code and files as a page; it also runs web applications.
- Remote support software
- An application such as Quick Assist that lets a helper view, annotate or control another person's computer over a network, with that person's approval, to fix problems from a distance.
Getting the Most from a Web Browser, Safely
- Diagnose a browser problem by matching the symptom to the right store or setting: cache, cookies and site data, extensions, default search engine, pop-ups or browser compatibility.
- Configure private browsing, extensions, pop-up exceptions, profiles, sync and password saving for a given scenario, and explain what each one does not protect against.
- Use bookmarks and other organizing features, accessibility settings and appearance settings to fit a browser to a user's work and needs.
Five tickets on a Monday morning
At 8:40 on a Monday, the help-desk queue at Linden and Park, a fictional six-person accounting office, holds five tickets. Everyone in the office works on a Windows personal computer (PC). All five tickets are about the web browser, and each comes with a fix the user has tried or is about to try.
| Ticket | User says | Proposed fix |
|---|---|---|
| 101 | 'The timesheet site has looked scrambled since Friday's update.' | 'I'll clear everything, all time.' |
| 102 | 'I bank on the office PC in a private window, so nobody can see it.' | None. She thinks she is safe. |
| 103 | 'My searches go to a site I've never heard of. I changed it back on Thursday and it changed again.' | 'I'll change it back again.' |
| 104 | 'Payroll says my pay statement opened in a new window. Nothing opened.' | 'I'll switch off the pop-up blocker.' |
| 105 | 'My kids' bookmarks and passwords are on my work laptop.' | 'I'll delete them all.' |
Every proposed fix sounds reasonable, and every one is wrong. Two would make things worse. Each ticket below gets the same treatment: the tempting fix, the exact step where its reasoning breaks, and the setting that actually solves the problem. Two more tickets arrive later in the day. Together the seven cover every browser feature the exam lists.
The browser deserves this care because it holds people's logins and history and talks to the whole internet. CISA, the United States Cybersecurity and Infrastructure Security Agency, notes that attackers often exploit browser vulnerabilities to spread malware.[1] The United Kingdom's National Cyber Security Centre (NCSC) adds the reassuring half: the most popular browsers are largely secure by default, so the main job is to stop them being made insecure.[2] Several of the Monday fixes would do exactly that.
Exam objectives: 3.4 Given a scenario, configure and use web browser features. The list covers private browsing; browser add-ons and extensions (add, remove, enable and disable); caching and clearing the cache; pop-up blockers; a compatible browser for an application; profile synchronization; organizing features such as bookmarks; the default search engine; password management; accessibility; and appearance.[3]
Ticket 101: a stale timesheet, and why the cache is not cookies
The tempting fix is to open the browser's clear-data dialog, choose All time, tick every box and press Clear. It would probably fix the timesheet. It would also sign her out of every website and delete the passwords she relies on. The reasoning breaks at the first step, because it treats everything the browser keeps as one pile of junk. In fact the browser keeps several separate stores, and each has its own job.
The store that matters here is the Web cache, usually called the browser cache. A web page is built from several files: the text, the pictures, a style sheet that tells the browser how to lay out and color the page, and JavaScript files, which are code the page runs so that buttons and menus respond to your clicks. The cache keeps copies of these files on your drive, so a page you revisit loads faster and uses less of your connection. Each website tells the browser how long its copies may be reused. If the site changes a file before that time is up, your browser can combine the new page with an old style sheet or script. That produces ticket 101: the right text in the wrong places, or a button that does nothing.
Cookies do a different job. Their full name is HTTP cookies, after the Hypertext Transfer Protocol (HTTP) that carries web pages. Microsoft's Edge documentation describes them as small files that websites place on your device to remember preferences and settings, such as the items in a shopping cart.[4] Sites also use cookies to remember that you have signed in. That is why CISA warns that clearing cookies removes all of them, not just the third-party ones (cookies set by advertisers and other outside companies rather than by the site you are visiting), and that you may then have to log back in to your accounts.[1] Cookies hold no copies of page files, so clearing them is the wrong tool for a scrambled layout.
| Store | What it holds | What clearing it costs |
|---|---|---|
| Cached images and files | Copies of pictures, style sheets and scripts | Slightly slower first loads. You stay signed in. |
| Cookies and other site data | Preferences, cart contents, sign-in sessions | Signed out of sites; site preferences reset |
| Browsing history | The list of pages you visited | The History list and typing suggestions are gone |
| Saved passwords | Usernames and passwords | Every password must be typed again or reset |
| Autofill form data | Names, addresses, phone numbers | Forms must be filled in by hand |
Most browsers let you choose which stores to clear and how far back to go. In Edge the path is Settings and more > Settings > Privacy, search, and services > Clear browsing data, then Choose what to clear. In Chrome, Edge and Firefox on Windows, Ctrl+Shift+Delete opens the same kind of dialog. For a single page, a hard refresh (Ctrl+F5 on Windows) reloads it without the cached copies. It is the gentlest test, so try it first.
How do you know the cache is the suspect before you clear anything? Test the theory, as Lesson 4's method says. Here is the same ticket run twice, with one input changed.
| Test | Run 1 | Run 2 |
|---|---|---|
| Timesheet in her normal window | Broken | Broken |
| In a private window on her PC | Works | Broken |
| On a colleague's PC | Works | Broken |
| Conclusion | The fault is stored in her normal profile: most likely the cache, possibly an extension | Her stored data is not the cause |
| Action | Hard refresh. If it is still broken, clear only cached images and files for the last 7 days, the time since Friday's update. Leave cookies, history and passwords unticked. | Leave her data alone. Check the vendor's list of supported browsers and report the fault. |
In run 1 the private window is the clue. It starts without the normal window's cache and cookies, and extensions normally stay off in it. So the fault must be in her normal profile, and the colleague's PC shows that the site itself is fine. Clearing a week of cached files fixes it, and she is still signed in everywhere. In run 2 the same two tests fail as well, and the conclusion flips. A clean window and a different computer both fail, so clearing her data would sign her out and fix nothing. Ticket 106 shows a common cause of that pattern.
The core of it: the cache, cookies and other site data, history and passwords are separate stores. Clear only the store the symptom points to, and only for the time since the problem began.
Ticket 102: private browsing forgets, it does not hide
Private browsing opens a temporary session that keeps its records apart from your normal ones and throws them away at the end. Edge calls it InPrivate, Chrome calls it Incognito, and Firefox and Safari call it a Private Window. On Windows, Ctrl+Shift+N opens one in Chrome and Edge, and Ctrl+Shift+P opens one in Firefox.
Microsoft spells out what gets thrown away. When you close all InPrivate windows, Edge deletes that session's browsing history, cookies and site data, along with passwords, addresses and form data.[4] Notice the condition: all of the windows. A private window left open behind another program on a shared computer is still alive and still signed in. Two things survive on purpose: files you downloaded stay in the Downloads folder, and bookmarks you created stay in your bookmarks.
The belief behind ticket 102, 'nobody can see it', is where the reasoning breaks. Private browsing controls what the browser stores on this device. It does nothing about who can see the traffic once it leaves. Her requests still cross the office switch, firewall and router from Lesson 12, and then the internet service provider's network. Those systems can still see which sites the PC contacts. The bank knows exactly who signed in. Any monitoring software her employer runs on the PC keeps running. If she wants her banking kept off the office systems, she should use her own phone on mobile data. A different kind of window will not do it.
Private browsing is the right tool in four situations:
- Borrowed or shared computers, such as a hotel business center or a library. Sign out of each site, then close every private window.
- A second sign-in. A private window does not share the normal window's cookies, so you can be signed in to two accounts on one site at once.
- Troubleshooting. A private window starts without the normal window's cache and cookies, and in Chrome each extension stays off there unless you allow it. That is why it was the quick test in ticket 101.
- A gift search on a family computer that you want kept out of the history list.
The core of it: private browsing makes the browser forget a session once every private window is closed. It does not make you anonymous to the network, the employer or the website.
Ticket 103: a browser extension nobody meant to add
A browser extension is a small program that runs inside the browser and adds a feature, such as an ad blocker, a grammar checker, a password manager or a coupon finder. Firefox calls them add-ons, and the exam uses both words. Extensions are useful because they can read and change the pages you visit. That same power makes a bad one dangerous.
On Thursday the user installed a free PDF (Portable Document Format) converter from a download site. Google's Chrome help notes that installing an application on Windows or Mac sometimes installs a Chrome extension along with it.[5] That is what happened here. Her extension's details panel shows the evidence:
| Field | Shows | What it tells you |
|---|---|---|
| Name | PDF Search Helper 1.0 | A name she does not recognize |
| Status | On | It runs in every normal window |
| Site access | On all sites | It can read and change every page, including her bank's |
| Source | Installed by another program, Thursday | It arrived with the converter |
| Controls | Search engine, new tab page | This is where her symptom comes from |
Her fix, setting the search engine back, failed because it treated the symptom. The extension simply set it again. Chrome and Edge often show a note beside the search setting naming the extension that controls it. That note was the clue she missed.
Add, remove, enable and disable: four different actions
The exam lists four actions for extensions, and each one has its own use.
To add an extension well, get it from the browser's official store (the Chrome Web Store, Microsoft Edge Add-ons or Firefox Add-ons) and check it first. CISA's advice is to vet extensions properly before adding them.[1] Ask who publishes it, how many people use it, when it was last updated and what access it wants. Chrome offers three levels of site access. The narrowest lets the extension use only the site in the current tab, and only when you select the extension.[5] The middle level allows only the sites you list. The widest lets it read and change data on every site automatically.[5] A coupon finder has no business on your bank's site, so give each extension the least access that still does the job. At work the choice may not be yours, because many organisations allow only an approved list.
To disable an extension, turn off its toggle on the manage-extensions page. It stays installed with its settings but does nothing, which makes disabling the right tool for testing. Suppose a page breaks and eight extensions are installed. Disable four and reload. If the page now works, the culprit is one of those four. If not, it is one of the other four. Halve the group again to two, then to one. Three rounds find one culprit among eight, because 23 = 8, and nothing has been deleted. To enable an extension is the same toggle in reverse: you turn it back on once it is cleared of blame.
To remove an extension is to delete it from the browser. In Chrome you can right-click its icon beside the address bar, the box at the top of the window where you type web addresses, and choose Remove from Chrome. Remove anything you do not trust, do not use or never meant to install. Disabling is not enough for those, because a disabled extension stays on the drive, and one click or another program can turn it back on. If an extension comes back after you remove it, a program outside the browser is reinstalling it, and the next step is anti-malware software.
| Action | What happens | Use it when |
|---|---|---|
| Add | Installs it with the permissions you accept | You need the feature and have checked the publisher |
| Disable | Stays installed with its settings, stops running | Testing, or pausing a tool you will need again |
| Enable | Turns a disabled extension back on | Testing is over and it was not to blame |
| Remove | Deletes it from the browser | It is untrusted, unused or unwanted |
The core of it: disable an extension to test it, remove it to get rid of it, and add one only after checking who publishes it and what access it asks for.
Ticket 103, continued: the default search engine
The default search engine is the search service that receives anything you type into the address bar that is not a web address. Choosing it is an ordinary preference: Bing, Google, or a privacy-focused engine such as DuckDuckGo. In Chrome it is under Settings > Search engine. In Edge it is under Privacy, search, and services > Address bar and search.
The engine often sees more than your finished searches. Microsoft explains that with search suggestions turned on, what you type in the address bar is sent to your default search provider as you type.[4] So a hijacked engine sees your typing, and it can fill your results with ads or lookalike links. The fix for ticket 103 has an order, and the order is the point:
- Remove the extension that came with the converter, and uninstall the converter too if she does not need it.
- Reset the default search engine and the new tab page.
- Restart the browser and check that the setting stays.
- If it changes again, run anti-malware software. Something outside the browser is still changing it.
Now change one input. Another user, Tom, reports that his searches go to DuckDuckGo. No extension controls the setting, and he remembers choosing it last month. That is configuration, not hijacking. If he wants a different engine, he changes the setting and it stays changed. The symptom is the same, but there is no outside cause, so the fix takes one step instead of four.
The core of it: if a setting keeps changing back, something is changing it. Remove that thing first, then reset the setting.
Ticket 104: pop-up blockers, and the notifications they do not block
A pop-up is a new window or tab that a page opens. Some are useful, such as a pay statement that opens in its own window. Many are ad windows or fake warnings. A pop-up blocker is a browser feature that stops pages from opening new windows on their own. Current major browsers include one and turn it on by default. Broadly, a window you open by clicking is allowed and a window the page opens by itself is blocked. When the browser blocks one, it shows a small icon in the address bar.
The reasoning in ticket 104 breaks on scope. Her problem is one trusted site. Turning the blocker off changes the rule for every site, including the ones that abuse pop-ups. The right fix is a site exception. Select the blocked-pop-up icon and allow pop-ups for the payroll site, or add the site under Pop-ups and redirects in the browser's site settings. Then select the statement link again.
| What appears | What it really is | What stops it |
|---|---|---|
| A new window the page opened by itself | A pop-up window | The pop-up blocker, with exceptions for trusted sites |
| A box drawn inside the page, such as a subscribe offer | Part of the page itself | Not the blocker; an ad-blocking extension may hide ad overlays |
| Website messages sliding into the corner of the desktop | Web notifications the user once allowed | Revoking that site's notification permission |
The third row deserves attention. A site can ask permission to send you notifications, and once you click Allow it can keep sending them. CISA warns that threat actors can use these notifications for phishing or to deliver malware, flooding users until they click a link they otherwise would not.[1] The pop-up blocker does not stop them, because you gave permission. The fix is to set that site to Block in the browser's notification settings.
The core of it: fix a blocked pop-up from a trusted site with a per-site exception, not by turning the blocker off. Stop notification spam by revoking the site's permission.
Ticket 105: profile synchronization and separate profiles
Profile synchronization, usually called sync, copies your browser data to an online account. The data then follows you to every device where you sign in to the browser with that account. Google's Chrome help puts it simply: when you sign in to Chrome, you can save your information in your Google Account and use it on your other devices.[6] Edge does the same with a Microsoft account, Firefox with a Mozilla account and Safari through iCloud. Bookmarks, the reading list, passwords, payment details, extensions and settings can all travel this way, and open tabs and history are optional extras.
Example: sync settings (fictional account maria.home@example.com)
Bookmarks ............ On
Passwords ............ On
Extensions ........... On
Settings and themes .. On
Open tabs ............ Off
History .............. OffThe user in ticket 105 signed in to the browser on her work laptop with the family account her children use at home, and sync did its job. Her tempting fix, deleting the children's bookmarks, fails because sync copies changes in both directions, deletions included. If she deletes the bookmarks on the laptop, they disappear from the account and then from the home computer. The children's passwords would still be on her work laptop.
The right tool is a separate browser profile. A profile is a self-contained set of bookmarks, history, cookies, passwords, extensions and settings, and it can have its own sync account. Google suggests creating a new profile when you share a computer or want to keep work and personal accounts apart.[6] For ticket 105, create a work profile on the laptop, signed in to the work account if the company uses sync. Then remove the family profile from the laptop. That deletes only the laptop's local copy. The family's data stays in their account and on the home computer. Check company policy too, because many employers forbid personal sync on company devices.
Sync spreads risk along with convenience. Everything you sync is only as safe as the account behind it, and an extension added on one device can turn up on every device signed in to that account. Chrome also offers an optional passphrase that encrypts synced data so that even Google cannot read it.
The core of it: sync makes one account's data the same everywhere, deletions included. To keep people's data apart on one computer, use separate profiles, not careful deleting.
Password management in the browser
Every major browser includes a password manager. When you sign in to a site, it offers to save the username and password, and next time it fills them in for you. It can suggest a long random password for a new account, and it syncs your saved passwords to your other devices. It fills in a saved password only on the site where you saved it. So if a familiar login page suddenly does not autofill, check the address: you may be on a lookalike site.
Two opposite beliefs need correcting. One says saving passwords in the browser is reckless. The other says it carries no risk. CISA names the real risk: stored credentials can leak if an attacker exploits a vulnerability in the browser or the operating system.[1] On the other side, the NCSC recommends against disabling usability features such as password autofill and JavaScript, because the web is very hard to use reliably and securely without them.[2] Both points hold. A built-in manager makes it practical to use a different strong password on every site, which beats reusing one memorable password. It still needs protecting:
- Turn on multifactor authentication (MFA) for the account the browser syncs to. CISA advises enabling MFA whenever your browser is connected to an account.[1]
- Lock the computer when you step away. Saved passwords are only as private as the unlocked device.
- Keep the browser updated, which closes the kind of vulnerability CISA describes.
- Never save passwords on a shared or borrowed computer.
- To view, change or delete saved passwords, open the browser's password settings. In Chrome they are under Settings > Autofill and passwords.
To go further into account and credential security, see Atlas's Security+ course.
Ticket 106: the portal that needs a compatible browser
At 11:15 a sixth ticket arrives. The office's new client-document portal shows a banner that says 'Your browser is not supported', and its Upload button does nothing. Clearing the cache changed nothing, and the portal fails the same way on two other PCs. That is the run 2 pattern from ticket 101. The user proposes turning off JavaScript, because the page 'keeps throwing errors'.
Web applications are built and tested for particular browsers and versions. Vendors usually publish a list of supported browsers in their help pages or system requirements. A page that works in one browser can fail in another, or in an older version of the same browser, because it relies on a feature that browser lacks. A compatible browser for the application is a browser and version that the application's vendor supports.
Turning off JavaScript goes in the wrong direction. Nearly every modern web application depends on it, so the portal would break completely, and JavaScript is one of the features the NCSC advises keeping on. An extension that makes the browser pretend to be a different browser is also wrong. It hides the banner, but the missing feature is still missing. Work through these steps instead:
- Update the browser. Many unsupported-browser banners are about the version, not the brand.
- Check the vendor's list of supported browsers.
- If your browser is not on the list, use one that is, at least for that application. Keeping a second browser installed for one stubborn application is normal.
- Microsoft has retired Internet Explorer. For an old internal site built for it, Microsoft Edge's Internet Explorer mode can open that one site in the old engine while the rest of the web uses the modern one.
Never solve a compatibility problem by going back to an old, unpatched browser version. A browser that no longer gets security updates is a problem in its own right.
The core of it: if a web application fails in a clean window and on other computers too, check the vendor's list of supported browsers before you change any settings.
Bookmarks and other organizing features
A bookmark saves a page's address under a name so you can return to it with one click. Edge calls bookmarks favorites. Ctrl+D bookmarks the current page in Chrome, Edge and Firefox. A few habits keep bookmarks useful. Group related ones in folders, such as Clients, Tax forms and Training. Put the handful you use every day on the bookmarks bar under the address bar, which Edge calls the favorites bar. Rename long page titles to something you will recognize at a glance. Use import and export to move bookmarks between browsers. Export usually produces a single file in HTML (Hypertext Markup Language), the language web pages are written in, and that file doubles as a simple backup.
Example: a work bookmarks bar (fictional)
Bookmarks bar
Timesheet
Payroll
Clients/
Ashford Bakery - shared folder
Moreno Dental - portal
Tax forms/
Other bookmarks
Read later/Browsers have other organizing features too. A reading list saves pages to read later. Tab groups let you name and color a set of open tabs and collapse them out of the way. History search finds a page you forgot to bookmark. Many people keep dozens of tabs open as a to-do list. Each open tab uses memory, though, and some keep running scripts, so 60 open tabs can slow the whole computer, as you saw with RAM (random-access memory) in Lesson 6. Bookmark the pages, or save them all to a folder, and close the tabs.
Ticket 107: Walter's blurry screen, accessibility and appearance
At 2:30 ticket 107 arrives. Walter has low vision. He lowered his monitor's resolution so web text would look bigger, and now every program on his screen is blurry. His reasoning broke on scope, just as it did in ticket 104. A flat panel set below its native resolution (Lesson 8) has to stretch the image, which blurs it, and the change affects every application, not just the browser. Put the monitor back to its native resolution and use the browser's accessibility settings, which change only the browser.
| Need | Feature | How to reach it |
|---|---|---|
| Everything larger | Zoom | Ctrl and plus or minus; Ctrl+0 resets. A default zoom in settings applies to every site. |
| Larger text, same layout | Font size and minimum font size | The browser's appearance or font settings |
| Cluttered pages | Reader view | Reader View in Firefox and Safari; Immersive Reader in Edge |
| Reading is tiring or difficult | Read aloud, screen readers | Read aloud in Edge; the operating system's screen reader |
| Video without captions | Live captions | Live Caption in Chrome |
| No mouse | Keyboard navigation | Tab and Shift+Tab move between links; F7 turns on caret browsing |
Appearance is the neighbouring bullet, and it is about preference rather than ability. Appearance settings change how the browser itself looks: the theme or color, light or dark mode (often set to follow the operating system), which buttons sit on the toolbar, whether the bookmarks bar shows, and which pages open at startup. If you sign in to the browser, your themes and settings can sync to your other devices too.
Exam questions tell the two apart by the reason the stem gives. 'Has trouble reading', 'cannot use a mouse' and 'needs captions' point to accessibility. 'Wants a dark look' and 'wants a home button' point to appearance. Dark mode can serve either purpose, so read the reason, not the setting's name.
The core of it: accessibility settings meet a need, appearance settings meet a preference, and both belong in the browser, not in the monitor's resolution.
Exam cues: matching the stem to the setting
| The stem says | Think | Watch out for |
|---|---|---|
| Broken layout after a site update; fine in a private window | Clear cached images and files | Clearing cookies, which signs the user out |
| Signed out everywhere after a cleanup | Cookies and other site data were cleared | Blaming the cache |
| Shared or borrowed computer; leave no history | Private browsing | Believing it hides traffic from the network |
| Search engine keeps changing back | Remove the unwanted extension, then reset | Resetting the setting alone |
| Which add-on breaks the page? | Disable and re-enable in halves | Removing extensions and losing their settings |
| Untrusted or unwanted add-on | Remove | Disabling, which leaves it installed |
| A trusted site's new window is blocked | Per-site pop-up exception | Turning the blocker off everywhere |
| Website messages on the desktop | Revoke the notification permission | Expecting the pop-up blocker to stop them |
| Unsupported-browser banner; fails on every PC | Compatible browser; update first | Disabling JavaScript |
| Same bookmarks and passwords on every device | Profile synchronization | Assuming deletions stay on one device |
| Two people, or work and personal, in one browser | Separate browser profiles | Bookmark folders, which separate only bookmarks |
| Save logins and fill them automatically | Password management, with MFA on the account | Saving passwords on a shared computer |
| Trouble reading, hearing or using a mouse | Accessibility: zoom, fonts, reader view, captions | Lowering the screen resolution |
| Theme, dark mode, toolbar, startup page | Appearance | Calling a preference an accessibility need |
| Find saved sites fast; favorites bar | Organizing features: bookmarks | Keeping dozens of tabs open |
Common misconceptions
- 'Clearing the cache will sign me out.' Sign-ins live in cookies and other site data. Clearing only cached images and files costs you a slightly slower first load.
- 'Private browsing makes me anonymous.' It only makes the browser forget the session. The network, the employer and the website can still see the activity, and downloads stay on the drive.
- 'Disabling a suspicious extension is as good as removing it.' A disabled extension stays installed and can be switched back on. Remove anything you do not trust.
- 'A site's window will only open if I switch the pop-up blocker off.' A per-site exception lets one trusted site open windows while every other site stays blocked.
- 'Deleting synced bookmarks on one device affects only that device.' Sync copies deletions to every device signed in to the account. Use separate profiles to keep data apart.
Putting it together
- The cache, cookies and other site data, history and saved passwords are separate stores. The cache is the usual cause of stale page files, and clearing cookies and other site data is what signs you out of sites.
- If a page works in a private window or on another PC but not in your normal window, suspect your own cache or an extension. If it fails everywhere, your stored data is not the cause.
- Private browsing throws away a session's history, cookies, site data and form data once every private window is closed. Downloads and new bookmarks remain, and the network and websites can still see the activity.
- Disable an extension to test it, because it keeps its settings. Remove an extension you do not trust or need, and give each extension the narrowest site access that works.
- If a setting such as the default search engine keeps changing back, software is changing it. Remove that software, then reset the setting.
- A blocked pop-up from a trusted site needs a per-site exception. Desktop notification spam needs the site's notification permission revoked.
- A compatible browser is a browser and version that the application's vendor supports. Update or switch browsers, but never disable JavaScript or go back to an old version.
- Sync makes one account's data identical on every signed-in device, deletions included. Separate profiles keep different people, or work and personal use, apart. Turn on MFA for any account that syncs saved passwords.
Sources
- CISA. (n.d.). Tips to Stay Safe While Surfing the Web, Part 1: Web Browser Settings. cisa.gov
- NCSC UK. (n.d.). Device security guidance: Managing web browser security. ncsc.gov.uk
- CompTIA. (2023). CompTIA Tech+ FC0-U71 V6 certification exam: Exam objectives (Document version 4.0). lecbyo.files.cmp.optimizely.com
- Microsoft Support. (n.d.). Microsoft Edge, browsing data, and privacy. support.microsoft.com
- Google Chrome Help. (n.d.). Install and manage extensions. support.google.com
- Google Chrome Help. (n.d.). Get your bookmarks, passwords, and more on all your devices. support.google.com
- Key terms
- Web cache
- A folder of copies of page files, such as images, style sheets and scripts, that a browser keeps so revisited pages load faster. Stale copies can make an updated site display wrongly, and clearing them does not sign you out of sites.
- HTTP cookie
- A small file that a website stores through the browser to remember preferences, cart contents or a sign-in. Clearing cookies and other site data signs you out of websites.
- Private browsing
- A temporary browser session, called InPrivate in Edge, Incognito in Chrome and Private Window in Firefox and Safari. Its history, cookies and form data are thrown away when every private window is closed, but it does not hide activity from networks or websites.
- Browser extension
- A small add-on program that runs inside a web browser to add a feature. It can be added, disabled, re-enabled or removed, and it may ask for permission to read and change data on websites.
- Pop-up blocker
- A built-in browser feature that stops web pages from opening new windows on their own. Individual trusted sites can be given exceptions.
- Default search engine
- The search service that receives text typed into a browser's address bar when that text is not a web address. Unwanted software sometimes changes it without the user's consent.
- Profile synchronization
- Copying a browser profile's bookmarks, passwords, extensions and settings to an online account so they match on every device signed in to that account, including any deletions.
- Browser profile
- A self-contained set of browser data, with its own bookmarks, history, cookies, passwords, extensions and settings, used to keep different people, or work and personal use, apart on one computer.
- Compatible browser
- A browser and version that a web application's vendor supports. Using an unsupported browser can cause missing features, warning banners or buttons that do nothing.
Artificial Intelligence in Everyday Tools
- Distinguish rule-based chatbots, AI chatbots and AI assistants by how they choose a response and whose tasks they carry out.
- Explain how generative AI produces content and code from prompts and learned patterns, and check AI-generated output before relying on it.
- Recognize AI predictions and suggestions such as recommendations, autocomplete and spam filtering, and explain how past interaction data drives them and how wrong flags get corrected.
- Decide whether an AI tool suits a task by weighing the cost of a wrong result, how easily the output can be checked and what data must go into the prompt.
Two chatbots and a hungry customer
Type "How do I activate my account?" into an old-style support chatbot and it does something very simple. It finds the words "activate my account", looks up the reply stored for them, and sends back a step-by-step guide. Amazon Web Services (AWS) uses that exact example to explain keyword-based chatbots. These bots pull specific keywords out of a conversation and answer with a matching response written in advance.[1]
Now type something messier: "I know it's peak hour, but how soon can I get my food?" That sentence has no tidy keyword in it. It holds an admission, a complaint and a question at once. AWS uses it as its example of what a chatbot built on generative artificial intelligence (AI) can cope with, and says such a bot would give a natural, precise response.[1] That is a vendor describing its own field. Read it as a statement of what the technology is designed to do, not a guarantee about every bot you will meet.
Those two bots mark the two ends of this lesson. Between them sit the four uses of AI that CompTIA lists for Tech+. In this lesson, AI means software whose behavior comes mostly from patterns it learned from large amounts of example data, rather than only from rules a programmer typed in by hand. That learning process is called machine learning. Each tool below puts machine learning to a different job, and the exam asks you to recognize the job from a one- or two-sentence description.
Exam objectives: CompTIA Tech+ FC0-U71 objective 3.5, "Identify common uses of artificial intelligence (AI)": AI chatbots, AI assistants, generative AI (AI-generated code and AI-generated content), and AI predictions and suggestions.[2]
An argument runs underneath all four uses, and you will meet it in any office that switches these tools on. The manager sees an afternoon of copying, summarizing and reformatting shrink to ten minutes. The technician who later traces a wrong refund figure back to an AI summary sees something else. Keep both people in mind. Once the four uses have been taught, the lesson comes back to their argument and works out what decides it for a particular task.
Rule-based chatbots versus AI chatbots
A chatbot is a program you hold a conversation with, by typing or speaking, to get an answer. You find them in the corner of a bank's website, inside messaging apps and on support phone lines. The exam term is AI chatbot, and the word AI matters, because chatbots existed long before modern AI and many older ones are still running.
The older kind is a rule-based chatbot, also called a keyword-based or declarative chatbot. A person writes a list of keywords and the reply to give for each one. The bot scans your message for those keywords and sends back the matching script. AWS states the limit plainly: these bots stay limited and work only within the topics someone preprogrammed.[1] AWS's page on conversational AI describes the same history from the user's side. People talking to software used to be limited to preset inputs, typing or saying the commands the software expected.[3]
Here is what that limit looks like. The transcript is a fictional example of a keyword bot on a pharmacy website.
Example (fictional): keyword-based bot on a pharmacy site
User: I need to refill my prescription
Bot: To refill a prescription, sign in and choose Refills, then Request refill.
User: my refill from tuesday never arrived, can you check where it is
Bot: To refill a prescription, sign in and choose Refills, then Request refill.
User: that is not what I asked
Bot: Sorry, I did not understand. Try one of these: refill, hours, locations.
Work out why it failed. The second message contains the keyword "refill", so the bot fired the refill script. It cannot tell that "never arrived" changes the meaning completely. The third message contains none of its keywords, so it falls back to a menu. Nothing is broken. The bot is doing exactly what its rules say. The rules just did not anticipate the question.
An AI chatbot works differently. AWS names three language technologies behind it: natural language processing (NLP), natural language understanding (NLU) and natural language generation (NLG).[1] In plain words, NLP breaks your text into pieces a computer can work with. NLU works out what you mean, called your intent, such as "track a missing order". NLG writes a reply in ordinary sentences instead of picking a stored one. Many current AI chatbots run on a large language model (LLM), a model trained in advance on very large amounts of human writing so that it can carry on a natural-sounding conversation.[1]
The mechanism explains both the strength and the weakness. An LLM does not look your question up in a list of answers. It produces the words that are most likely to come next, given everything it learned and everything said so far in the conversation. That is why it can handle phrasing nobody planned for. It is also why it can produce a fluent, confident reply that is simply wrong. People usually call that a hallucination. A rule-based bot that is stuck says "I did not understand." An LLM may never say that.
Well-built AI chatbots reduce that risk by connecting to real records. Banks use AI chatbots so customers can check balances, transfer money or pay bills.[3] AWS notes that chatbots can be wired into back-end business systems such as customer relationship management (CRM), inventory or human resources (HR) software.[1] If the pharmacy bot could query the real delivery system, "where is my Tuesday refill" would get a tracking status from a database, not a guess.
| Question | Rule-based (keyword) chatbot | AI chatbot |
|---|---|---|
| How does it choose a reply? | Matches keywords to replies written in advance | Works out intent and generates a reply, often with an LLM |
| New or messy phrasing? | Usually fails or falls back to a menu | Usually copes |
| Typical failure | Wrong script, or "I did not understand" | A fluent reply that is wrong (hallucination) |
| Predictability | Every possible reply is known in advance | Replies vary; the exact wording cannot be listed beforehand |
| Good fit | A short list of fixed tasks, such as opening hours | Open-ended customer questions, especially when linked to real records |
Bottom line: a chatbot is a conversation window, usually run by an organization to answer the public. The AI version understands and writes language instead of matching keywords, so it copes with surprises better and fails in a less obvious way.
AI assistants: from answering to doing
An AI assistant also talks with you, but it works for you rather than for the company whose website you happen to be on. AWS describes AI assistants, which it says are also known as copilots, as conversational AI built into the everyday workflows of employees and business users.[3] Because an assistant is connected to your apps and data, it can do things, not only say things. AWS says assistants can take over administrative and other digital tasks so that people can concentrate on solving problems.[3]
Several names describe this family. AWS defines a virtual assistant, or virtual agent, as an intelligent program that talks with people naturally and helps them resolve problems.[1] A voice assistant is one you speak to aloud, such as Amazon Alexa, Apple's Siri or Google Assistant. AWS notes that voice assistants add speech recognition, which it calls automatic speech recognition (ASR), on top of the language technology that chatbots use.[1] ASR turns your spoken words into text. The rest of the system then handles that text much as a chatbot would.
Workplace assistants increasingly act on your behalf. Microsoft's documentation describes its Copilot Cowork product as a way to delegate work and have tasks done for you.[4] Here is what that kind of request looks like, as a fictional example.
Example (fictional): workplace AI assistant
You: Move my 3 pm with Dana to Thursday and let her know why.
Assistant: Your Thursday has free slots at 10:00 and 14:30.
Dana's calendar shows she is free at 14:30.
Draft email: "Hi Dana, I need to move our 3 pm to Thursday
at 14:30 because the budget review ran over. Does that work?"
Send the invitation and the email? (yes / edit / cancel)
Notice what the assistant used: your calendar, Dana's free and busy times, and permission to send mail as you. A support chatbot on a shop's website has none of that. Notice also the last line. A well-designed assistant asks before it acts, because an action, unlike a reply, can be hard to undo. A meeting invitation sent to the wrong Dana can be cancelled, but by then that person has already seen it, and perhaps the reason you gave.
In real products the line between chatbot and assistant is blurry. AWS itself says any AI-powered chatbot can serve as a virtual assistant if needed.[1] For the exam, sort by role. A chatbot answers questions in a conversation, usually on behalf of an organization serving its customers. An assistant is attached to a person or team, reaches into their apps and data, and carries out tasks: scheduling, drafting, setting reminders or, in AWS's Alexa example, controlling smart home devices, reporting the weather and playing music.[1]
Bottom line: ask whose side the tool is on and whether it acts. A bot answering a shop's customers is a chatbot. A tool that reaches into your calendar, email or lights to get something done for you is an assistant.
Generative AI: new content from learned patterns
Generative artificial intelligence is AI that makes something new. AWS defines it as a type of AI that can create new content and ideas, including conversations, stories, images, videos and music.[3] It runs on very large models trained in advance on huge amounts of data, commonly called foundation models.[3] An LLM is a foundation model trained on text.
You steer it with a prompt: the instruction or question you type, plus any file or text you attach. Microsoft's training module on generative AI describes the mechanism in just those terms: generative AI uses prompts and learned patterns to create content.[5] Hold on to the phrase "learned patterns". The model does not keep a copy of the internet and fetch the right page. It learned statistical patterns of which words, pixels or notes tend to go together, and it builds new output that fits both those patterns and your prompt. Ask the same thing twice and you may get two different results.
Generative AI also reworks existing material, not only starts from nothing. AWS lists uses such as improving image quality, editing videos, building manufacturing prototypes and creating synthetic data sets.[3]
How does generative AI relate to the chatbots above? AWS separates their goals. Conversational AI aims to understand human speech and the flow of a conversation.[3] It can be configured to respond to set types of question and to stay out of questions beyond its scope.[3] Generative AI aims to produce new output. Many real tools combine the two: the system reads the user's input with conversational AI and replies with generative AI.[3] The hungry-customer bot from the opening is exactly that combination.
CompTIA splits generative AI into two outputs you must recognize: AI-generated content and AI-generated code. They share the mechanism. They differ in how you check the result.
AI-generated content: drafts, summaries and images
AI-generated content is text, images, audio or video produced by a generative model from a prompt. Everyday examples include a first draft of an email or cover letter, a summary of a long meeting transcript, a set of slide titles, a new background for a product photo, a caption describing an image, and a translation. It is fast and it never stares at a blank page. The difficulty is that fluent is not the same as true.
Microsoft's training tells users to check key claims in AI-generated content against a trusted source before they use or share it.[5] Here is that check worked through. A fictional office asks an AI tool to summarize a 12-page supplier contract. The summary reads well. You then compare each specific claim with the contract itself.
| Claim in the AI summary | What the contract says | Verdict |
|---|---|---|
| Contract runs for 24 months | Section 2: term of 24 months | Correct |
| Refunds allowed within 30 days | Section 7.3: refunds within 14 days of delivery | Wrong: a plausible figure, not this contract's figure |
| Supplier pays return shipping | Not mentioned anywhere | Invented: no source for it |
| Either party may cancel with 60 days' notice | Section 11: 60 days' written notice | Mostly correct, but the word "written" was dropped |
Count the verdicts. Of four claims, one was fully correct, one was mostly correct but dropped the word "written", one was wrong (30 days instead of 14), and one was invented outright. Nothing in the summary's tone told you which was which. That is the normal shape of the risk. A pattern-based model reaches for figures that often appear in documents of this kind, which is how 30 days replaced 14. The fix is not to stop summarizing. The fix is to check every number, date, name and obligation you plan to act on.
The second content risk is what you put in. Whatever you paste into a prompt is sent to the tool, and depending on the service it may be stored. Microsoft's module lists protecting sensitive data as a core part of responsible AI practice.[5] Customer records, health information, passwords and unreleased financial figures belong only in tools your organization has approved for that kind of data. The Security module's lesson on trustworthy software, safe browsing and privacy takes this further.
A third issue is honesty about where the work came from. Some schools, publishers and employers require you to disclose AI help, and some forbid it for particular work. Follow the policy of the place you are working for, and if there is no policy, ask before you submit.
Bottom line: treat AI-generated content as a draft from a fast helper that never admits uncertainty. Check every specific claim against a source before you use it, and never paste in data you would not hand to an outside company.
AI-generated code: suggestions you must test
AI-generated code is program code written by a generative model. It shows up in two main ways. Inside a code editor, an assistant suggests the next line or a whole function as you type, and you accept it with a key press. In a chat window, you describe what you want in plain English and get a block of code back. AWS gives code suggestions and answering questions about code as standard copilot jobs.[3] Microsoft's Copilot Code goes further: its documentation says people can build, preview, automate and share apps and tools using natural language, their work context and their GitHub repositories, which are online storage spaces where programmers keep and share their code.[4]
Code has one big advantage over prose: you can run it and see whether it works. That is also its trap, because code that works on one input can fail on another. Watch it happen.
A learner asks a chatbot: "Write a Python function that returns the average of a list of numbers." It returns the following. This is a realistic example written for this lesson.
def average(numbers):
total = 0
for n in numbers:
total = total + n
return total / len(numbers)
print(average([4, 8, 9]))
Trace it by hand. The loop adds 4, then 8, then 9, so total ends at 21. The list has 3 items, so the function returns 21 / 3 and prints 7.0. The code looks right and the test passes.
Now change one input. A user submits a form with no scores in it, so the list is empty.
print(average([]))
ZeroDivisionError: division by zero
The loop runs zero times, so total stays 0, and len(numbers) is also 0. The function tries 0 / 0, and Python stops the program with an error. The code was fine for the example the learner thought of. It failed on an example the learner did not think of, and neither did the model. A careful version decides what an empty list should mean:
def average(numbers):
if len(numbers) == 0:
return None # no scores yet: report nothing instead of crashing
return sum(numbers) / len(numbers)
That gives you the working rules for AI-generated code. Read it until you can explain every line. Test it with normal input and with awkward input: empty, zero, negative, very large, missing, and values right at a boundary. Check that every library or function it calls really exists, because models sometimes produce plausible names for things that do not. Never paste passwords, keys or private company code into a tool your organization has not approved. And whoever saves the code into the shared project (programmers call this committing it) is responsible for it, no matter who or what typed it first.
Bottom line: AI-generated code is a suggestion, not a finished product. One passing test proves only that one input works.
AI predictions and suggestions: ranking what already exists
The fourth use is the oldest and the least visible. AI predictions and suggestions use patterns in past data to guess what is likely to happen next or what you are likely to want. Your phone keyboard offers the next word. A search box finishes your query. A streaming service builds a row of shows "because you watched" something. An email service moves a message to spam. A map estimates when you will arrive. A bank texts you about a card payment that does not fit your usual pattern.
A recommender system is the clearest case. AWS's Amazon Personalize, for example, is a managed machine learning service that uses a company's own data to produce item recommendations for its users.[6] For most uses it bases those recommendations mainly on item interaction data.[6] That means records of users interacting with items in a catalog, such as clicking on them.[6] The same service can also re-rank search results.[6] Put those facts together and you can infer that two people typing the same search into a site that does this may see the results in a different order.
The mechanism is simple to state. Find people whose past behavior looks like yours, see what they chose next, and rank the items you have not seen by how many of those people chose them. Here it is with a tiny fictional data set from a video service. The rule for this example: a similar viewer is anyone who has watched every title you have watched.
| Viewer | Titles watched |
|---|---|
| Ana | Space documentary, Volcano documentary, Ocean documentary |
| Ben | Space documentary, Volcano documentary, Cooking contest |
| Chloe | Space documentary, Volcano documentary, Ocean documentary |
Run one. You have watched the Space and Volcano documentaries. Ana, Ben and Chloe have all watched both, so all three count as similar. Among the titles you have not seen, two of them watched the Ocean documentary and one watched the Cooking contest. Your top suggestion is the Ocean documentary.
Run two, with one input changed. Suppose your second title had been the Cooking contest instead of the Volcano documentary. Now only Ben has watched both of your titles, so only Ben counts. The one title Ben watched that you have not is the Volcano documentary, so it moves to the top. The Ocean documentary drops out completely, because no similar viewer watched it. One different click changed the whole ranking. Real systems use far more data and subtler math, but they respond to your behavior in the same way, which is why a child borrowing your account for an evening can scramble your suggestions.
Prediction systems go wrong in two common ways. The first is a wrong flag, called a false positive: a spam filter sends a real job offer to the junk folder, or a fraud check blocks a legitimate card payment you made while traveling. The second is a feedback loop. A recommender learns from what you click, but you can only click what it shows you, so it can keep serving more of the same kind of content and rarely tests anything new. The correction in each case is feedback from a person: mark the message as not spam, confirm the payment when the bank asks, or tell the service you are not interested in a title, and the system has new data to learn from.
Predictions and suggestions differ from generative AI in one key way. A recommender chooses and ranks from things that already exist: shows in the catalog, words in the dictionary, routes on the map. Generative AI produces something that did not exist before. Your keyboard's next-word suggestion sits near the border, but even when a language model drives it, it offers a short pick list of likely words rather than writing your message. When a question describes a system suggesting, ranking, forecasting or flagging based on past behavior, the answer is predictions and suggestions.
Bottom line: predictions and suggestions rank or flag what already exists, using past behavior. Generative AI makes something new.
The office argument: switch it on or hold back?
Picture a fictional 14-person accounting firm. The office manager wants an AI assistant for everyone and a coding assistant for the one employee who maintains the firm's spreadsheets and scripts. The part-time IT technician wants to wait. Each of them can point to real evidence.
The manager's case rests on time. Much office work is repetitive: answering the same client questions, moving data between systems, turning notes into letters. AWS argues that chatbots combine the steps of complex processes and automate repetitive tasks through a few simple voice or text requests.[1] Copilots that draft reports and take over routine digital tasks are sold on the same promise. When a person already knows the right result and just needs it typed out, a draft in ten seconds is a real saving, and checking a draft is faster than writing one from scratch.
The technician's case rests on errors and data. AWS, which sells these services, concedes that generative AI's response quality may not be what you expect, and that it may understand customer intent less well than purpose-built conversational AI.[3] The contract summary and the average function earlier in this lesson show what that looks like: wrong output that looks exactly like right output. In an accounting firm, a wrong figure in a client letter is not a typo. It can be a liability. And every prompt that contains client data sends that data to an outside service, which may clash with the firm's duty of confidentiality.
The technician also has a remedy that the manager's tools increasingly support. Retrieval-augmented generation (RAG) makes the model first look up passages in a trusted collection of documents and then answer from them, instead of from its learned patterns alone. Google Cloud's sample applications include one called Fix My Car, a RAG app meant to help car owners solve problems with their vehicle without paging through the owner's manual.[7] Grounding answers in the firm's own documents reduces invention. Better still, it lets the tool show where each claim came from, so a person can check it.
So what settles the argument? Not a general verdict on AI, but three questions asked of each task. How bad is a wrong result? Can a person check the output quickly? What data has to go into the prompt?
| Task | Cost of a wrong result | Easy to check? | Sensitive data in the prompt? | Reasonable decision |
|---|---|---|---|---|
| Rewrite a staff notice about the holiday party in a friendlier tone | Low | Yes, read it | No | Use freely |
| Summarize a 40-page tax guidance document for internal notes | Medium | Yes, if the summary points to sections | No | Use, then check every figure against the document |
| Draft a spreadsheet macro that totals client invoices | High | Yes, by testing with known and awkward data | Only if real data is pasted in | Use with made-up test data; review and test before real use |
| Calculate a client's tax liability and email it to the client | Very high | Only by redoing the work | Yes | Do not hand to AI; a qualified person does it |
| Paste the full client list into a free public chatbot to find duplicates | Medium | Yes | Yes | Do not; use an approved tool or the spreadsheet's own duplicate check |
Read the table by its columns. The first row is cheap to get wrong and easy to check, so the manager is right. The fourth row is costly and can be checked only by doing the work again, so the technician is right, and the AI saves nothing anyway. Most real tasks sit in between, where the sensible ruling is "yes, with a check built in." What would change a row? Evidence about the specific tool: whether it is approved for client data, whether it shows its sources, and how often its output survived checking during a trial period.
Bottom line: the AI argument is settled task by task. Use AI where errors are cheap or easy to catch, build a check in where they are not, and keep sensitive data out of tools that are not approved for it.
Exam cues: which use of AI is this?
Tech+ questions on this objective usually describe a tool in a sentence or two and ask which kind of AI use it is. Match the words in the question to the job.
| Words in the question | Points to | Easily confused with |
|---|---|---|
| Chat window on a website, answers customer questions, help desk, 24/7 support | AI chatbot | AI assistant (an assistant works for you across your own apps) |
| Answers only set topics, matches keywords, scripted replies | Rule-based chatbot (not AI-generated replies) | AI chatbot |
| Schedules a meeting, sets a reminder, sends an email for you, copilot in your apps, voice command | AI assistant | AI chatbot |
| Creates an image, writes a draft, summarizes, composes music or video from a prompt | Generative AI: AI-generated content | Predictions and suggestions |
| Writes a function, completes code as you type, explains or fixes code | Generative AI: AI-generated code | AI assistant (a coding copilot is both; its output is code) |
| Recommended for you, next-word suggestion, autocomplete, spam filter, arrival estimate, fraud alert | AI predictions and suggestions | Generative AI |
| Confident output that is false or invented | Hallucination | A software bug or malware |
| Check AI output against a trusted source before sharing | Verifying AI-generated content | Trusting output because it sounds certain |
When a description fits two rows, look at the output. A coding copilot is an assistant, but if the question asks what it produces, the answer is AI-generated code. A smart speaker that switches off your lights on command is a voice assistant. The same speaker proposing a playlist you might like is making a suggestion.
Common misconceptions
- "Every chatbot is AI." Many support bots are rule-based keyword matchers that can handle only the topics someone scripted. AI chatbots work out intent and generate their replies.
- "If the AI sounds confident, it checked its facts." A generative model produces likely-sounding output from learned patterns. Unless it is connected to a source, it does not look facts up, so its confidence tells you nothing about accuracy.
- "AI-generated code that runs is correct." It may pass the one test you tried and fail on an empty, zero or boundary input. Read it and test the edge cases.
- "Recommendations and generative AI are the same thing." Recommenders rank items that already exist using past behavior. Generative AI creates new content.
- "An assistant is just a chatbot with a nicer name." The two overlap, but an assistant is tied to your own apps and data and can carry out tasks for you, which is why it needs permission checks before it acts.
- "Anything I type into an AI tool stays private." Prompts are sent to the service and may be stored, so sensitive data belongs only in tools approved for it.
Pulling it together
- A rule-based (keyword) chatbot matches keywords to replies written in advance and works only within the topics it was programmed for.
- An AI chatbot uses natural language processing, understanding and generation, often through a large language model, so it copes with new phrasing but can hallucinate a confident wrong reply.
- An AI assistant, also called a copilot, is built into a person's or team's apps and data and carries out tasks on their behalf; voice assistants add automatic speech recognition to turn speech into text.
- Generative AI creates new content such as text, images, video, music and code from a prompt, using patterns learned by large foundation models.
- Key claims in AI-generated content must be checked against a trusted source before you use or share them.
- AI-generated code must be read and tested, including edge cases such as an empty list; one passing test proves only that one input works.
- AI predictions and suggestions, such as recommendations, autocomplete and spam filtering, rank or flag existing items using past interaction data such as clicks; wrong flags are corrected by user feedback such as marking a message as not spam.
- Retrieval-augmented generation grounds a model's output in trusted documents, which reduces invented answers and makes checking easier.
- Whether to use AI for a task depends on the cost of a wrong result, how easily the output can be checked, and whether sensitive data must go into the prompt.
Sources
- Amazon Web Services. (n.d.). What is a Chatbot?. aws.amazon.com
- CompTIA. (2023). CompTIA Tech+ FC0-U71 V6 certification exam: Exam objectives (Document version 4.0). lecbyo.files.cmp.optimizely.com
- Amazon Web Services. (n.d.). What is Conversational AI?. aws.amazon.com
- Microsoft Learn. (n.d.). Microsoft Copilot documentation (Microsoft Learn). learn.microsoft.com
- Microsoft Learn. (n.d.). What is generative AI?. learn.microsoft.com
- Amazon Web Services. (n.d.). What is Amazon Personalize?. docs.aws.amazon.com
- Google Cloud. (n.d.). Generative AI code samples and sample applications. docs.cloud.google.com
- Key terms
- AI chatbot
- A conversational program that works out what a user means and generates a reply in natural language, often using a large language model, instead of picking from scripted replies.
- Rule-based chatbot
- A chatbot, also called keyword-based or declarative, that matches keywords in a message to replies written in advance and can handle only the topics it was programmed for.
- AI assistant
- Conversational AI, also called a copilot or virtual assistant, that is connected to a person's or team's apps and data and can carry out tasks such as scheduling, drafting or controlling devices on their behalf.
- Generative AI
- Artificial intelligence that creates new content, such as text, images, audio, video or program code, from a prompt, using patterns learned by large foundation models.
- Large language model (LLM)
- A very large machine learning model trained in advance on huge amounts of human writing, which generates text by producing the words most likely to come next.
- Prompt
- The instruction, question and any attached material a user gives a generative AI tool to steer what it produces.
- Hallucination
- Output from a generative AI model that is fluent and confident but false or invented, such as a wrong figure or a source that does not exist.
- Recommender system
- Software that predicts what a user is likely to want and ranks existing items, such as products, shows or songs, based mainly on past interaction data like clicks and views.
- False positive
- A wrong flag from a prediction system, such as a real email sent to spam or a legitimate card payment blocked as fraud, usually corrected by user feedback.
- Retrieval-augmented generation (RAG)
- A technique in which a generative AI tool first retrieves passages from a trusted document collection and then bases its output on them, reducing invented content and allowing claims to be checked.
Module 5: Software Development Concepts
The kinds of programming languages, the data types programs work with, the building blocks of code, and how programmers plan logic before writing it.
Kinds of Programming Languages: Compiled, Interpreted, Scripting, Markup and Assembly
- Explain how assembly, compiled and interpreted languages differ in when and how source code becomes machine code, and the trade-offs in speed, portability and ease of change that follow.
- Identify scripting, markup and query languages from a code sample, a file extension or a description of the job.
- Choose a suitable language category for a workplace scenario and justify the choice, telling apart commonly confused pairs such as Java and JavaScript or assembly and machine code.
One sum, five lines of assembly
In 2019, Opensource.com, Red Hat's community site, published a primer that prints five lines of code. Together they do one small job: add 1 and 2, then leave the result in memory.
01 MOV R0, 1
02 MOV R1, 2
03 ADD R0, R1, R2
04 MOV 64, R0
05 STO R2, R0
Read it one line at a time. The first two lines put the value 1 into a tiny storage slot inside the processor called register R0, and the value 2 into register R1.[1] Line 03 adds the two registers and puts the result, 3, into register R2.[1] The last two lines name a place in main memory, address 64, and store the result there.[1] Each line is one instruction for the CPU (Central Processing Unit). It starts with a short code word called a mnemonic, such as MOV for move or ADD for add, and then gives the data the instruction works on. This is Assembly language. The primer uses a simplified instruction set made for teaching, but real assembly for a real chip looks much the same.
Here is the same sum in two more languages. In C, a compiled language, it takes two lines. In Python, typed at Python's interactive prompt, it takes one line, plus a second line to show the result.
/* C */
int x;
x = 1 + 2;
# Python, typed at the interactive prompt
>>> x = 1 + 2
>>> print(x)
3
That is three ways to write one calculation. The difference that matters is when the text gets turned into something the processor can carry out, and what program does the turning. Two more language families on the exam do no calculating at all. A markup language describes how a document is built. A query language asks a database for data. This lesson sets all of them side by side.
Exam objectives: CompTIA Tech+ FC0-U71, objective 4.1: Compare and contrast programming language categories.[2] The objective names interpreted languages (with scripting and markup languages listed under them), compiled programming languages, query languages and assembly languages.
What every processor actually runs: machine code
A CPU understands exactly one language: Machine code, the binary numbers that encode its own instructions. In Lesson 2 you saw how a string of 1s and 0s can stand for a number. Inside a processor, some bit patterns also stand for operations. One means add. Another means copy from memory. Another means jump to a different instruction. Nobody wants to write programs as raw bit patterns. So any language a person writes either gets turned into machine code somehow, or it is not a set of instructions at all.
That gives you two questions to ask about any language on the exam.
- What does the text do? It might instruct the computer step by step (assembly, compiled and interpreted languages, including scripts). It might describe a document's structure (markup). Or it might ask a database for a result (query).
- When is it translated, and by what? There are three possibilities: before the program ships (by an assembler or a compiler), while it runs (by an interpreter), or each time a program reads it (a web browser reading markup, or a database reading a query).
| Job | Categories | Example of the text | Who reads it |
|---|---|---|---|
| Instruct: do these steps | Assembly, compiled, interpreted, scripting | x = 1 + 2 | An assembler, compiler or interpreter, and then the CPU |
| Describe: this is a heading, this is a list | Markup | <h1>Menu</h1> | A program such as a web browser, which displays it |
| Ask: give me these records | Query | SELECT name FROM customers | A database management system, which finds the data |
Key idea: the processor runs only machine code. Language categories differ in two ways: whether the text is instructions at all, and when those instructions get translated (ahead of time, while running, or by the program that reads them).
Assembly language: one line per CPU instruction
Assembly sits one small step above machine code. A program called an Assembler converts each mnemonic line into the matching machine code instruction, almost one for one. Because so little is hidden, the programmer manages everything by hand: which register holds which value, and which memory address receives each result. The Opensource.com primer calls managing where data is stored in memory one of the most time-consuming and error-prone parts of writing programs.[1]
Assembly is also tied to one processor family. Each family has its own instruction set, the list of operations it understands. The Intel and AMD chips in most Windows personal computers (PCs) belong to the x86 family, named after Intel's 8086 chip. Most phones and Apple's recent Macs use ARM (Advanced RISC Machines) designs. An assembly program written for x86 means nothing to an ARM chip. Early computing was worse still. Memory and CPU designs varied wildly between manufacturers, and moving a program from one computer to another could take years of work.[1]
So why does anyone still write assembly? Because it gives exact control and wastes nothing. You find it in the first code that runs when a device powers on, and in parts of firmware such as the BIOS (Basic Input/Output System) and its successor, UEFI (Unified Extensible Firmware Interface). You also find it in small, speed-critical parts of operating systems and drivers, and in tiny embedded chips inside appliances and IoT (Internet of Things) devices. Security analysts read it too: they turn a suspicious program's machine code back into assembly to see what it does.
Do not confuse assembly with machine code. Assembly is text a person can read, with words like MOV and ADD. Machine code is the binary the CPU executes, usually shown to people in hexadecimal. The assembler is the bridge between them. If a question shows mnemonics and register names, it is showing you assembly.
Compiled languages: translate once, run the result many times
Early programmers wanted to write something closer to the formulas they already knew, and that wish produced high-level languages. Look again at the C version of the sum. The line int x; sets aside enough memory for an integer and names it x. The next line stores 1 + 2 in it. The programmer never says where in memory x lives, because the compiler handles that.[1] In the assembly version, you had to choose the registers and address 64 yourself.
A Compiler is a program that translates a whole high-level program before it runs. In the classic arrangement the primer describes, the compiler turns the high-level source into assembly, and an assembler then turns that assembly into machine code.[1] The result is an Executable: a file of machine code, such as an .exe file on Windows, that the operating system can load and run directly.
(example: building and running a C program on Linux with GCC, the free GNU Compiler Collection)
gcc add.c -o add compile once: add.c (source) becomes add (machine code)
./add run the finished program; the compiler is not needed now
That build step defines the category, and its trade-offs follow from it.
- Fast to run. All the translation happens once, before anyone runs the program, so the executable usually runs faster than code that is translated as it goes.
- Many errors caught early. The compiler reads every line first. Mistakes such as a misspelled command stop the build, so they do not surprise a user later.
- Nothing extra for the user. The user needs only the executable, not the compiler or the source code. A vendor can sell the program without handing over readable source.
- One build per platform, one rebuild per change. Machine code targets one processor family and operating system, so an ARM laptop or a Mac needs its own build. Every edit means compiling again before you can test it.
Building once per platform used to count as a big win. Before high-level languages, moving to a new computer meant rewriting the assembly. With high-level languages, only the compiler had to be moved. After that, programs could be recompiled for the new machine with little or no change.[1] Well-known compiled languages include C, C++, Fortran, Go, Rust and Swift.
Key idea: a compiled language is translated in full, ahead of time, into an executable for one platform. The cost is a build step for every change and for every platform. The gain is speed, and a program that runs without the compiler or the source code.
Interpreted languages: translate while the program runs
An Interpreter works the opposite way. It reads source code and carries out each statement as it goes, at run time. No separate executable is built. You hand someone the source file itself, and their computer needs the interpreter installed to run it.
Python shows this well, because you can talk to its interpreter directly. Type python3 in a terminal and it shows a prompt of three greater-than signs. Each statement you type there runs as soon as you press Enter, which is how x = 1 + 2 ran earlier. Save the same statements in a file called add.py and you can run them with a command such as python3 add.py. Either way, the interpreter translates while you watch.
Most of the compiled trade-offs flip.
- Quick to change. Edit a line and run it again, with no build step. That suits experiments, small tools and code that changes often.
- Portable source. The same .py file runs on Windows, macOS or Linux, on x86 or ARM, anywhere a Python interpreter exists. The interpreter is the part that gets built separately for each platform.
- Usually slower, and some errors show up late. Translation happens on every run. A mistake on a rarely used line can go unnoticed until a user finally reaches it.
- Visible source. Anyone with the file can read and change it. That helps an administrator who needs to adjust a tool, and it worries a vendor that wants to protect its code.
Real systems mix the two approaches. Python is usually called interpreted, but the primer's author points out that it is really a language hosted on a virtual machine.[1] Python first turns the source into an intermediate form called bytecode, and a software virtual machine runs that bytecode. Java does the same thing more visibly. The Java compiler produces bytecode for the Java virtual machine (JVM). The JVM was built for Java in the 1990s and now runs other languages too, such as Kotlin and Scala.[1] Web browsers go further: they compile JavaScript into machine code while a page is running, a technique called just-in-time compilation.
On the exam, use the classic labels that study materials use. Python and JavaScript are interpreted. C and C++ are compiled. Java is usually filed with the compiled languages, because a compiler runs before the program ships, even though the compiler's output is bytecode and not machine code for one chip.
Scripting languages: interpreted code that automates a host
A Scripting language is an interpreted language used to write short programs, called scripts, that automate work inside a host program. The host might be an operating system's command shell, a web browser or an application. Scripts glue existing tools together. They rename a thousand files, set up a new employee's laptop, move a report from one system to another, or make a button on a web page respond to a click.
JavaScript is the scripting language of the web. Mozilla's documentation describes it as a cross-platform, object-oriented scripting language used to make web pages interactive.[3] The key word is host. Inside a browser, JavaScript connects to objects the browser provides, such as the page's headings, buttons and form fields, and controls them.[3] Server-side versions such as Node.js run JavaScript on servers as well.[3] JavaScript does not make you declare what type of data a variable will hold.[3] That makes quick scripts quick to write. It is also why a script can run for months and then fail the first time it meets data it did not expect.
| Language | Common file extension | Usual host | Typical job |
|---|---|---|---|
| PowerShell | .ps1 | Windows (also available for macOS and Linux) | Manage Windows settings, users and files |
| Windows batch file | .bat or .cmd | Windows Command Prompt | Simple startup and maintenance tasks |
| Bash shell script | .sh | Linux and macOS terminals | Automate system tasks on Linux servers |
| Python | .py | The Python interpreter on any operating system | Automation, data work and small tools |
| JavaScript | .js | Web browsers; Node.js on servers | Interactive web pages and web servers |
(example: a one-line PowerShell script saved as archive-logs.ps1)
Compress-Archive -Path C:\Logs\*.log -DestinationPath C:\Archive\logs.zip
People often blur scripting and interpreted. The difference is in how the language is used, not in how it runs. Nearly every scripting language is interpreted, but not every interpreted program is a small script: Python also runs large web applications. When a question says automate a task, run a series of commands or make a page interactive, it is pointing at scripting.
Java and JavaScript share four letters and little else. Mozilla describes Java as a class-based programming language designed for fast execution and type safety.[3] Unlike JavaScript, Java requires you to declare the type of every variable.[3] If a question mentions drop-down menus or clickable buttons on a web page, the answer is JavaScript, not Java.
A script can do anything its user can do. That means an email attachment ending in .js, .vbs or .ps1 is a program, not a document, and that is why mail filters block such files.
Key idea: scripting languages are interpreted languages used to automate a host such as a shell, a browser or an application. You can recognize them by their job (automation, glue code, interactivity) and by their file extensions (.ps1, .bat, .sh, .py, .js).
Markup languages: tags that describe, not instructions that compute
Open the source of any web page and you are looking at HTML (Hypertext Markup Language). Mozilla defines it as a markup language that tells web browsers how to structure the pages you visit.[4] HTML is made of elements, which wrap pieces of content to define their structure.[5] Tags in angle brackets mark each element: an opening tag such as <p> and a closing tag such as </p>.
Mozilla's beginner tutorial uses a four-line example. As plain text, the lines Instructions for life, Eat, Sleep and Repeat would all show up on one line in a browser, because nothing tells the browser how they are structured.[5] Wrap them in tags and they become a paragraph followed by a bulleted list:
<p>Instructions for life:</p>
<ul>
<li>Eat</li>
<li>Sleep</li>
<li>Repeat</li>
</ul>
Notice what is missing: there is nothing like x = 1 + 2. Markup has no variables, no decisions and no loops. HTML on its own cannot add two numbers or check a password. It only labels content: this is a paragraph, this is a list item, this is a link. A web page usually combines three languages, each with its own job: HTML for structure, CSS (Cascading Style Sheets) for appearance and JavaScript for behavior.
Why, then, does the exam list markup under interpreted languages? The objectives do not say, but the grouping makes sense once you look at how markup is handled. Nobody compiles an HTML file into an executable. The browser reads the tags every time it loads the page and works out then how to draw them, which counts as interpretation in a broad sense. So markup is read at view time, as interpreted code is, but it is still not a programming language that computes.
Markup has its own ways to go wrong. Elements must be nested correctly, which means closing the inner element before the outer one. Mozilla's HTML syntax tutorial lists correct nesting as something a learner needs to understand.[4] Browsers are forgiving and display broken markup anyway, so a mistake usually shows up as a page that looks wrong, not as an error message.
HTML is not the only markup language. XML (Extensible Markup Language) uses the same angle brackets but lets you invent your own tags, such as <invoice>, to describe data. Markdown, used in many readme files, marks a heading with a # sign. Neither one calculates anything.
Query languages: asking a database for exactly the rows you want
A Query language is a language for asking a database to find, add, change or remove data. The one you will meet almost everywhere is SQL (Structured Query Language), used by relational databases such as PostgreSQL, MySQL, Microsoft SQL Server and Oracle.
(example query against a fictional customers table)
SELECT name, city
FROM customers
WHERE city = 'Leeds'
ORDER BY name;
Read it as a request: give me the name and city columns from the customers table, only for rows where the city is Leeds, sorted by name. Notice what it leaves out. It does not say which file to open, what order to search in or how to sort. SQL is declarative: you describe the result you want, and the database works out the steps. That is the clearest way to tell a query from a script. A script says do this, then this, then this. A query says this is what I want.
A few words cover most everyday SQL: SELECT reads rows, INSERT adds them, UPDATE changes them and DELETE removes them. SQL is an international standard, but each database product adds features of its own. PostgreSQL's documentation warns that some of its language features are extensions to the standard.[6] A query written for one product may need small changes before it runs on another. These product-specific versions are called dialects.
Queries often live inside other programs. A Python script or a web application may build a SQL statement, send it to the database and use the rows that come back. The script is still a script, and the query is still a query. Module 6 of this course comes back to databases and how their tables are built.
Key idea: a query language reads and changes data in a database by describing the result, not the steps. If a question is about selecting, filtering or sorting records in a relational database, the category is query and the language is SQL.
The six categories side by side
| Category | What the text does | Translated when, and by what | What gets distributed | Speed and portability | Examples |
|---|---|---|---|---|---|
| Assembly | Instructs the CPU, one instruction per line | Before running, by an assembler | Machine code | Fast; tied to one CPU family; slow to write | x86 or ARM assembly |
| Compiled | Instructs, in high-level statements | Before running, by a compiler | An executable for each platform | Fast; rebuild for each platform | C, C++, Go, Rust |
| Interpreted | Instructs, in high-level statements | While running, by an interpreter | Source code | Usually slower; runs wherever the interpreter exists | Python, Ruby |
| Scripting (interpreted) | Automates a host such as a shell or browser | While running, by the host's interpreter | A script file | Quick to edit; needs its host | PowerShell, Bash, JavaScript |
| Markup (interpreted) | Describes a document's structure | Each time it is opened, by a browser or other reader | The document | Computes nothing | HTML, XML |
| Query | Asks a database for a result | When submitted, by the database system | Query text, often inside another program | The database does the work | SQL |
The third column holds the one mechanical split among the instruction languages: translated before running (assembly, compiled) or during running (interpreted, scripting). The last two rows, markup and query, are not general-purpose programming languages. Each one does a single job well.
Choosing a category: a worked decision, then one change that flips it
Here is a fictional example. Harbor Street Dental, a small practice, needs a tool that shrinks each day's X-ray scans and files them into patient folders on its Windows server, which runs on x86. Two facts hold throughout. The server already has PowerShell, because it is built into Windows. And the office manager changes the folder rules about once a month.
Run 1. The practice takes about 4,000 large scans a day, and the tool must finish in the 20 minutes before the overnight backup starts.
- Is this instructions, description or a request for data? Shrinking and filing images is step-by-step processing, so it is instructions. Markup and query are out.
- What settles when to translate? A hard time limit on heavy work. Translating ahead of time takes that cost out of every run, so speed points to a compiled language.
- Assembly or compiled? Both are translated ahead of time, but assembly means writing every register move by hand for one processor family. A compiled language such as C++ gives nearly the same speed for far less effort.
- What about the monthly rule changes? The vendor keeps the folder rules in a plain settings file that the tool reads. The manager edits that file, and nobody has to rebuild the program.
- Decision: a compiled language, delivered as an .exe built for the x86 server.
Run 2: one input changes. The backup moves to 5 a.m., so the same 4,000 scans now have six hours instead of 20 minutes. Nothing else changes. For this example, assume a script version of the tool would take about two hours.
- It is still instructions, so markup and query are still out.
- Does speed still decide? No. Two hours fits easily inside a six-hour window.
- With speed out of the way, the fact that held all along now decides: the manager changes the logic every month. A script she can open and edit beats a compiled tool that needs the vendor for any change the settings file cannot handle.
- Decision: a scripting language, such as a PowerShell .ps1 file that the server runs every night.
Only the time window changed, and that alone moved the answer from compiled to scripting. Two more needs round out the picture. The manager wants a monthly list of patients who have not visited in 12 months, taken from the practice database. That is a request for records, so the category is query and the language is SQL. The website's opening-hours page is content to display, not to process, so it is markup: HTML. And if the practice later moves its server to ARM hardware, Run 1's tool needs a new ARM build from the vendor, while Run 2's script runs unchanged anywhere PowerShell does.
Exam cues: the words in the question and where they point
| Words in the question | Points to | Commonly confused with |
|---|---|---|
| MOV, ADD, registers, mnemonics, one line per CPU instruction, specific to a processor | Assembly language | Machine code, the binary an assembler produces from it |
| Build step, compiled into an executable, .exe, fastest run time, rebuild for another platform | Compiled language | Interpreted, which ships source code instead |
| Runs line by line at run time, needs the interpreter installed, no build step, same source on any OS | Interpreted language | Compiled |
| Automate a task, run a series of commands, .ps1, .bat, .sh, .py | Scripting language | Interpreted (the two overlap; scripting stresses automating a host) |
| Make a web page interactive, clickable buttons, drop-down menus | Scripting: JavaScript | Java, a different language |
| Tags, angle brackets, elements, structure or format a document, page layout | Markup language | Scripting, because JavaScript sits in the same page |
| Retrieve, filter, sort or update records; SELECT, FROM, WHERE; database | Query language | A script that merely sends the query |
Common misconceptions
- HTML is a programming language. It is a markup language. It labels the structure of content and has no variables, decisions or loops. It sits with the interpreted languages on the exam because a browser reads it at view time instead of compiling it, not because it computes.
- Interpreted means worse. Interpretation gives up some speed in exchange for no build step, quick edits and source that runs on any platform with the interpreter. For automation and code that changes often, that is usually the right trade.
- Assembly and machine code are the same thing. Assembly is readable text with mnemonics such as MOV. Machine code is the binary the CPU runs. An assembler translates one into the other.
- A compiled program runs on any computer. An executable holds machine code for one processor family and operating system. An x86 Windows build needs recompiling, or emulation, before it can run on ARM.
- Java and JavaScript are two versions of one language. They are separate languages. Java is class-based and makes you declare types. JavaScript is a loosely typed scripting language that runs in web browsers.
- A SQL query tells the database step by step how to find data. SQL is declarative. You state the result you want, and the database decides how to get it.
What you now know
- A CPU executes only machine code. Every instruction language is translated into it, either before running (by an assembler or compiler) or while running (by an interpreter).
- Assembly uses mnemonics such as MOV and ADD that map almost one for one to CPU instructions. It works directly with registers and memory addresses and is tied to one processor family, such as x86 or ARM.
- A compiler translates a whole program ahead of time into an executable. The executable runs fast and needs no compiler or source on the user's machine, but it must be rebuilt after every change and for every platform.
- An interpreter translates and runs source code at run time. There is no build step, and the same source runs anywhere the interpreter is installed, but the program usually runs slower.
- Scripting languages such as PowerShell (.ps1), Bash (.sh), batch (.bat), Python (.py) and JavaScript (.js) are interpreted languages used to automate tasks inside a host.
- JavaScript makes web pages interactive and also runs on servers through Node.js. Java is a separate, class-based language that compiles to bytecode for the Java virtual machine.
- Markup languages such as HTML and XML use tags to describe the structure of content, and they compute nothing.
- Query languages ask a database for data. SQL is declarative, uses SELECT, INSERT, UPDATE and DELETE, and comes in product-specific dialects.
Sources
- Opensource.com (Red Hat). (2019). A short primer on assemblers, compilers, and interpreters. opensource.com
- CompTIA. (2023). CompTIA Tech+ FC0-U71 V6 certification exam: Exam objectives (Document version 4.0). lecbyo.files.cmp.optimizely.com
- Mozilla MDN Web Docs. (n.d.). JavaScript Guide: Introduction. developer.mozilla.org
- Mozilla MDN Web Docs. (n.d.). Basic HTML syntax. developer.mozilla.org
- Mozilla MDN Web Docs. (n.d.). HTML: Creating the content. developer.mozilla.org
- PostgreSQL Global Development Group. (n.d.). 2.1. Introduction (The SQL Language). postgresql.org
- Key terms
- Machine code
- The binary instructions that a specific processor family executes directly. Every other instruction language must be translated into it, either before it runs or while it runs.
- Assembly language
- A low-level language written for one processor family. It uses short mnemonics such as MOV and ADD, and each one matches a single CPU instruction.
- Assembler
- A program that converts assembly language mnemonics into the matching machine code instructions.
- Compiler
- A program that translates an entire high-level program ahead of time into an executable for a particular platform.
- Interpreter
- A program that reads source code and carries out its statements at run time. No separate executable is built, so every machine that runs the code needs the interpreter.
- Scripting language
- An interpreted language used to write short programs that automate tasks inside a host such as a command shell, a web browser or an application. PowerShell, Bash, Python and JavaScript are examples.
- Markup language
- A language that uses tags to describe the structure of content, such as headings, paragraphs and lists, without performing calculations. HTML and XML are examples.
- Query language
- A language for reading and changing data in a database by describing the result wanted. SQL is the standard example for relational databases.
- Bytecode
- An intermediate form of a program that does not depend on any one processor. A software virtual machine, such as the Java virtual machine, runs it.
Data Types: Characters, Strings, Numbers and Booleans
- Identify char, string, integer, float and Boolean values from their literals and descriptions, and state what each type holds.
- Explain why the same bits mean different things under different data types, and predict results such as string concatenation and integer division.
- Diagnose common data type bugs, including lost leading zeros, integer overflow, float rounding in money and the text 'false' counting as true.
- Choose a suitable data type for a given field and justify the choice.
A bakery receipt with six wrong lines
At 9:14 on a Saturday morning, the order page for Rosa's Bakery printed a receipt telling a customer that seven cinnamon buns at 2 each, plus 5 shipping, came to 145. The bakery is invented for this lesson, but the bugs are real. Programmers make every one of them, and each one comes down to a data type. Here is the receipt, with what the customer actually entered at the bottom.
ROSA'S BAKERY (fictional example) Order 1047
------------------------------------------------------
Cinnamon bun x 7 2 each
Subtotal 14
Shipping 5
TOTAL DUE 145
Coupon credit 0.30000000000000004
Boxes needed (2 buns per box) 3
Ship to postcode 2134
Gift wrap YES
Box monogram REJECTED: more than 1 character
------------------------------------------------------
Customer entered: coupons worth 0.10 and 0.20, postcode 02134,
gift wrap box left unticked, monogram = one thumbs-up emoji.
Note: the pricing page hands Subtotal and Shipping to the
receipt code as the text "14" and "5".
Most people's first guess is that the computer "got the math wrong". Test that theory the way Lesson 4 taught you and it falls apart. A processor that could not add 14 and 5 would break every program on the machine, not one receipt. On every line, the processor did exactly what it was told. What it was told depended on the data type of each value, and the program had the types wrong. You will fix the receipt one line at a time, and meet every type the exam names along with the bug it is known for.
Exam objectives: CompTIA Tech+ FC0-U71 objective 4.2, "Identify fundamental data types and their characteristics," which lists char, strings, numbers (integers and floats) and Boolean.[1]
Why the same eight bits can mean 65 or the letter A
Take a byte you could have converted in Lesson 2: 01000001. As a binary number it is 64 + 1, which is 65 in decimal and 41 in hexadecimal. As text, the same eight bits are the capital letter A, because the standard character code for A is 65. Nothing in the byte says which reading is right. Memory holds bits, and bits carry no labels.
A data type is the label the program supplies. It tells the computer three things about a value: how to read its bits, how much space to reserve for it, and which operations make sense on it. Adding two whole numbers is arithmetic. "Adding" two pieces of text glues them together. Asking whether a yes-or-no value is true makes sense; asking for half of a name does not.
A value typed straight into code is called a literal, and how you write it usually tells the language its type. Digits alone make a whole number (7). A decimal point makes a fractional number (7.0). Quotation marks make text ("7"). To a person they look almost the same. To a computer they are three different things.
| Type | What it holds | Example literals | Typical size | Known failure |
|---|---|---|---|---|
| Char | Exactly one character | 'A', '7', '?' | 16 bits in Java and C# | Assuming every symbol fits in one |
| String | A sequence of characters | "Rosa", "02134", "" | Grows with length | Digits stored as text, then "added" |
| Integer | Whole numbers, positive or negative | 7, -40, 0 | 32 or 64 bits are common | Overflow; division drops the remainder |
| Float | Numbers with a fractional part | 3.14, 9.81, 1.5e6 | 32 bits (single) or 64 bits (double) | Tiny rounding errors; risky for money |
| Boolean | Only true or false | true, false | One bit of information | The text "false" treated as true |
Languages enforce types in two broad styles. In Java and C#, you declare a variable's type when you create it, as in int boxes = 3, and the compiler (Lesson 19) refuses to put text into that variable. In Python and JavaScript, you do not declare types. The type travels with each value, so one variable can hold a number now and text later. That is convenient, and it is also how several of the receipt's bugs slipped through.
The point: a data type tells the computer how to read a value's bits, how much room to give it and which operations are allowed, so the same byte can be 65 or the letter A.
Bug 1: 14 plus 5 printed as 145 (character strings)
The subtotal and shipping charge reached the receipt code as text, the way anything typed into a web form arrives, even when it looks like a number. So the program was not holding the numbers 14 and 5. It was holding the text "14" and the text "5".
A character string, almost always just called a string, is a data type that holds a sequence of characters: letters, digits, spaces and punctuation in any mix. "Rosa", "02134" and the empty string "" are all strings. Python's tutorial makes the key point with an example: digits and numerals inside quotes are strings too.[2] Inside the quotation marks, 14 is two characters, a 1 and a 4, not a quantity.
The + operator means different things for different types. For numbers it adds. For strings it performs Concatenation, joining one string onto the end of another, which Python's tutorial describes as gluing strings together.[2] Here is the bug and its fix in Python's interactive shell:
>>> subtotal = "14"
>>> shipping = "5"
>>> subtotal + shipping
'145'
>>> int(subtotal) + int(shipping)
19
The fix is type conversion, also called casting or parsing: turning the text "14" into the integer 14 before any arithmetic. Convert when the data first enters the program, and every later line works with the right type.
Now change one input. A customer types five instead of 5. Python's int("five") stops with an error. JavaScript's Number("five") instead returns NaN, short for Not a Number, which MDN describes as a special number value that appears when a result cannot be expressed as a number.[3] Neither language can get a number out of a word, so conversion code must decide what to do with bad text. The usual answer is to reject it and ask again.
Two more facts about strings matter in practice. Each character has a position, or index, and counting starts at 0, so in "Rosa" the R is at index 0 and the a at index 3, although the string is 4 characters long. And strings usually cannot be changed in place: MDN states that once a JavaScript string is created, it cannot be modified, and Java and C# behave the same way.[3] Code that seems to edit a string actually builds a new one, which is why a loop that keeps "adding" to a long string can be slow.
Bug 2: the postcode lost its leading zero
The customer typed 02134. The receipt printed 2134. A programmer had converted the postcode to an integer, perhaps to check that only digits were entered. As numbers, 02134 and 2134 are the same value, so the zero vanished:
>>> int("02134")
2134
This is Bug 1 in reverse: text wrongly stored as a number. A postcode is made of digits, but nobody adds two postcodes or averages them. It is a label that happens to use digits. One question sorts these cases: would I ever do arithmetic on this value? If not, store it as a string. That sends postal codes (some, like the UK's SW1A 1AA, contain letters), telephone numbers such as +44 20 7946 0018, account numbers, card numbers and product codes to strings.
Long identifiers give a second reason. JavaScript's ordinary number type holds whole numbers exactly only up to 9,007,199,254,740,991, which is 253 minus 1. Beyond that, MDN warns, integers are stored only as floating-point approximations.[3] JavaScript does offer BigInt, a type that can hold integers of any size, for real calculations on huge whole numbers.[3] A 19-digit order ID still belongs in a string, though: you never do arithmetic on it, and a string keeps it exactly as typed.
Databases make the same choice explicit. SQL (Structured Query Language), the language most databases use, offers varchar, which holds text of any length up to a limit, and char(n), which holds text padded to exactly n characters and suits a five-digit ZIP code. Watch the name: SQL's char(5) is a fixed-length string, not the single-character char the exam means.
The point: digits alone do not make a number. If you would never do arithmetic on a value, such as a postcode, phone number or account number, store it as a string so its leading zeros and symbols survive.
Bug 3: one emoji was "more than 1 character" (the char type)
The monogram field accepted exactly one character, checked by testing that the input's length was 1. The customer typed one thumbs-up emoji, JavaScript reported a length of 2, and the order was rejected. To see why, you need the char type and the numbering behind it.
The character data type, written char in most languages, holds exactly one character: a letter, digit, punctuation mark or symbol. Oracle's Java tutorial defines a char as a single 16-bit Unicode character.[4] Java and C# write a char in single quotes and a string in double quotes, so 'A' and "A" are different types: the first is one char, the second a string that happens to contain one character. Python is different. Its tutorial states that it has no separate character type; a character is just a string of length one.[2]
Underneath, a char is a number. Unicode is the international standard that gives a number, called a code point, to each character in nearly every writing system. Capital A is 65 (written U+0041, hexadecimal 41), lowercase a is 97, and the digit 7 is 55. So the char '7' and the integer 7 are different values, and in Java 'A' + 1 gives 66. The numbering also explains why case matters ('A' and 'a' differ) and why a plain sort can put "Zebra" ahead of "apple": every capital letter (65-90) comes before every lowercase letter (97-122).
Now the emoji. Sixteen bits give 216 = 65,536 values, and Unicode defines far more characters than that. UTF-16 is a way of storing Unicode text in 16-bit units. Characters past the first 65,536, including most emoji, need a pair of those units. MDN explains that a JavaScript string's length counts UTF-16 code units, which may not match the number of characters.[3] The emoji is one character on screen and two units in memory, so its length is 2. Python counts code points instead and reports 1 for the same emoji.
Use char when a value is always exactly one character: a middle initial, a letter grade, a seat row, a Y or N keypress. If it could ever be longer, use a string. For the monogram, the proper fix is to count characters the way a person sees them, which languages do with dedicated text functions rather than a plain length check.
The point: a char holds exactly one character, stored as a code number from a standard such as Unicode; Java and C# write it in single quotes and treat it as a different type from a one-character string.
Bug 4: seven buns, three boxes (integers)
The exam groups integers and floats under numbers. They are separate types because they make opposite trade-offs: an integer is exact but holds only whole numbers within a fixed range, while a float holds fractions and huge or tiny values but stores most of them approximately. The next two bugs show the cost of each.
An integer is a whole number with no fractional part: 7, 0, -40, 1047. Integers count buns, boxes, users, loop repetitions and bytes, and adding them never introduces rounding error, provided the result fits. The box line was computed in Java with both variables declared as integers:
int buns = 7;
int perBox = 2;
int boxes = buns / perBox; // 3: the remainder is thrown away
int boxesFixed = (buns + perBox - 1) / perBox; // 4: rounds up correctly
When both values are integers, Java and C# do integer division: 7 / 2 is 3. The result must be a whole number, so the remainder of 1 is cut off, not rounded up. Three boxes hold six buns, and the seventh ships loose. The fixed line adds perBox - 1 first, which pushes any leftover bun into an extra box.
Change one input and the bug hides: with 8 buns, 8 / 2 is exactly 4. That is how this bug survives testing, because the tester tried an even number. Python differs again: there, 7 / 2 gives the float 3.5, and 7 // 2 gives integer division's 3. Same-looking symbols, different rules per language.
Every integer type has a fixed size, and the size sets its range. Oracle describes Java's default int as a 32-bit signed two's complement integer and its long as a 64-bit two's complement integer.[4] Signed means it can hold negatives. Two's complement is the standard way computers store negative integers: the leftmost bit acts as the sign, so half the bit patterns stand for negative values. The limits follow from the powers of 2 in Lesson 2:
| Size | Example names | Signed range | Unsigned range |
|---|---|---|---|
| 8-bit | Java byte; C# sbyte and byte | -128 to 127 | 0 to 255 |
| 16-bit | short | -32,768 to 32,767 | 0 to 65,535 |
| 32-bit | int; SQL integer | -2,147,483,648 to 2,147,483,647 | 0 to 4,294,967,295 |
| 64-bit | long; SQL bigint | -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 | 0 to 18,446,744,073,709,551,615 |
An unsigned integer gives up negatives and gets twice the positive range in return, which suits values that can never be negative, such as file sizes or network ports.[5]
What happens when a result does not fit? A fictional backup program kept its running byte count in a 32-bit int:
2026-11-07 02:00:01 backup bytes_copied=2147483000
2026-11-07 02:00:02 backup bytes_copied=-2147483296
The counter stood at 2,147,483,000, just under the int maximum of 2,147,483,647. The next block added 1,000 bytes. The true total, 2,147,484,000, needs a 33rd bit the type lacks. In Java the value silently wraps past the top of the range to near the bottom: 2,147,484,000 minus 232 (4,294,967,296) is -2,147,483,296. No error appears; the log just shows negative bytes. This is Integer overflow. Since 2,147,483,647 bytes is about 2 GB (Lesson 3), a 32-bit byte counter breaks on the first large file. Rerun with the counter declared as a 64-bit long and the limit rises to about 9.2 quintillion; the second line reads bytes_copied=2147484000.
The point: integers are exact whole numbers with a fixed range set by their size; dividing two integers drops the remainder, and going past the range overflows, often with no error at all.
Bug 5: a coupon worth 0.30000000000000004 (floats)
The two coupons, 0.10 and 0.20, were stored as floating-point numbers and added:
>>> 0.1 + 0.2
0.30000000000000004
>>> 0.1 + 0.2 == 0.3
False
A floating-point number, or float, is a data type for numbers with a fractional part, such as 3.14 or -0.001. It stores a value the way scientific notation does: significant digits plus an exponent that says where the point goes, so the point "floats". That lets one type hold both the mass of an electron and the distance to a galaxy, and 1.5e6 means 1,500,000.
The catch is that floats store those digits in binary. Some fractions never end in a given base: in decimal, 1/3 is 0.3333... forever. In binary, 1/10 has the same problem, so 0.1 becomes an endlessly repeating bit pattern. The computer keeps as many bits as the type allows and rounds off the rest, and two slightly-off values added together show the error in the 17th digit.
The common float formats come from IEEE 754, a standard published by the Institute of Electrical and Electronics Engineers. Java's float is a single-precision 32-bit IEEE 754 value and its double a double-precision 64-bit one.[4] JavaScript's Number type is always a double-precision 64-bit IEEE 754 value.[3] On the exam and in everyday speech, "float" means any floating-point number. Inside Java or C#, float is specifically the 32-bit type and double the 64-bit one programmers usually reach for. Both are floats in the exam's sense.
Floats are not broken. A double carries about 15 to 17 significant digits, far finer than any thermometer or GPS (Global Positioning System) receiver measures, so floats are right for measurements, science, graphics and physics. What they cannot promise is an exact decimal result, and money needs one. Oracle's tutorial says float should never be used for precise values such as currency.[4] Microsoft tells C# programmers to use double for general math and decimal when exact decimal precision is needed, as in financial calculations.[5] PostgreSQL makes the same split with its numeric type, an exact number of selectable precision.[6]
The fix is a decimal type or money stored as whole cents. Rerun the coupon line with cents:
>>> coupon_cents = 10 + 20
>>> coupon_cents
30
>>> coupon_cents / 100 # divide only when displaying
0.3
The integers 10 and 20 are exact, so the sum is exactly 30 and the receipt prints 0.30. Note also that 0.1 + 0.2 == 0.3 came back False: code comparing measurements should check whether two floats are within a small tolerance, not identical.
The point: floats hold fractional, very large and very small values in binary scientific notation, so many decimal fractions are slightly inexact; use them for measurements, and a decimal type or integer cents for money in real code.
Bug 6: everyone got gift wrap (Booleans)
The unticked gift wrap box sent the text "false", and the code asked whether that value was true:
>>> form_value = "false"
>>> bool(form_value)
True
>>> gift_wrap = (form_value == "true")
>>> gift_wrap
False
The Boolean data type has exactly two values, true and false; MDN calls it a logical entity with just those two.[3] It is named after George Boole, the 19th-century English mathematician who worked out an algebra of true and false statements. A Boolean represents one bit of information, though languages often spend more memory than that storing it.
Here is the trap. When Python or JavaScript is asked whether a string is true, it does not read the words. It checks only whether the string is empty, so every non-empty string counts as true, including "false", "no" and "0". The fix compares explicitly: form_value == "true" produces a real Boolean, False here, and the gift wrap line prints NO.
That comparison shows where Booleans come from. Every comparison produces one: quantity > 0, age >= 18, entered_pin == stored_pin. Booleans then drive if statements and loops, and they make good flags such as is_logged_in or has_paid. They combine through three logical operators: AND is true only when both inputs are true, OR when at least one is, and NOT flips a value.
| A | B | A AND B | A OR B | NOT A |
|---|---|---|---|---|
| true | true | true | true | false |
| true | false | false | true | false |
| false | true | false | true | true |
| false | false | false | false | true |
Read a row as a decision. The bakery offers free shipping when has_coupon OR order_total >= 50. A customer with no coupon (false) and a 60.00 order (true) gets free shipping, because OR needs only one true input. Switch the rule to AND and the same customer pays shipping.
The point: a Boolean holds only true or false, comes from comparisons and drives decisions; the text "false" is a string, and a non-empty string counts as true.
Choosing the right type for a form
Three questions, asked in order, settle almost every field:
- Can it only ever be yes or no? Use a Boolean.
- Would you ever do arithmetic on it? If not, it is text: a char if always exactly one character, a string otherwise.
- Is it a quantity with a possible fractional part? If no fraction, use an integer big enough for the largest value. If there is a fraction, use a float, except that real code stores money in a decimal type or integer cents.
| Field | Sample value | Type | Reasoning |
|---|---|---|---|
| Surname | O'Brien | String | Letters plus an apostrophe; any length |
| Middle initial | J | Char | Always exactly one character |
| Previous visits | 12 | Integer | A count; whole numbers only |
| Body temperature | 37.4 | Float | A measurement with a fractional part |
| Has allergies | true | Boolean | Yes or no, nothing else |
| Insurance member number | 0045 2271 98 | String | Digits, but no arithmetic; leading zeros and spaces must stay |
| Copay | 25.50 | Float among the five exam types; decimal or 2550 integer cents in real code | It has a fractional part, but money must be exact |
Exam questions usually describe the data rather than naming the type. The words in the stem point to the answer:
| Words in the question | Points to | Commonly confused with |
|---|---|---|
| "single letter", "one character", "initial", "Y or N key" | Char | String, which holds any number of characters |
| "text", "name", "sentence", "sequence of characters", "in quotation marks" | String | Char, which holds exactly one |
| "phone number", "ZIP code", "ID with leading zeros" | String | Integer: digits are not always quantities |
| "whole number", "count", "how many", "no decimal places" | Integer | Float |
| "decimal point", "fraction", "measurement", "3.14", "scientific notation" | Float | Integer |
| A price such as 24.50, when the only options are char, string, integer, float and Boolean | Float, the only one of the five that holds a fractional part | Integer, which would drop the cents |
| "exact currency", "financial calculation", with decimal or cents offered | Decimal type or integer cents | Float, which rounds |
| "true or false", "yes or no", "on or off", "flag", "only two values" | Boolean | A string containing "true" |
Common misconceptions
- "If it is all digits, it is a number." Digits in quotation marks are a string, and postcodes, phone numbers and account numbers should stay strings so their leading zeros survive.
- "Floats are broken." A double carries about 15 to 17 significant digits. The errors come from storing decimal fractions in binary: harmless for measurements, wrong for exact money.
- "Char and string are the same thing." In Java and C# they are different types, 'A' versus "A". Python has no separate char, and SQL's char(n) is a fixed-length string.
- "The text 'false' is false." In Python and JavaScript any non-empty string counts as true. Convert form text with an explicit comparison.
- "Integer division rounds." It truncates: with two integers in Java or C#, 7 / 2 is 3, never 4.
The takeaway
- A data type tells the computer how to read a value's bits, how much memory to reserve and which operations are allowed; the byte 01000001 is 65 as a number and A as a character.
- A char holds exactly one character, stored as a code number such as Unicode 65 for A; Java and C# write it in single quotes and treat it as a different type from a string, while Python has no separate char type.
- A string is a sequence of characters; digits inside quotation marks are a string, and + joins strings, so "14" + "5" gives "145".
- Postcodes, phone numbers and account numbers belong in strings, because nobody does arithmetic on them and their leading zeros must survive.
- Integers are exact whole numbers with a fixed range: a 32-bit signed int runs from -2,147,483,648 to 2,147,483,647, and a 64-bit long reaches about 9.2 quintillion.
- Dividing two integers discards the remainder (7 / 2 is 3 in Java and C#), and going past an integer's range overflows, which can silently wrap to a negative number.
- Floats store fractional values in binary under IEEE 754 (32-bit single or 64-bit double precision), so 0.1 + 0.2 gives 0.30000000000000004; among the five exam types a price is a float, but real code uses a decimal type or integer cents for money.
- A Boolean holds only true or false, is produced by comparisons and drives if statements and loops; the string "false" is not a Boolean, and any non-empty string counts as true.
Sources
- CompTIA. (2023). CompTIA Tech+ FC0-U71 V6 certification exam: Exam objectives (Document version 4.0). lecbyo.files.cmp.optimizely.com
- Python Software Foundation. (n.d.). 3. An Informal Introduction to Python. docs.python.org
- MDN Web Docs (Mozilla). (n.d.). JavaScript data types and data structures. developer.mozilla.org
- Oracle. (n.d.). Primitive Data Types (The Java Tutorials). docs.oracle.com
- Microsoft Learn. (n.d.). Built-in types (C# fundamentals). learn.microsoft.com
- PostgreSQL Global Development Group. (n.d.). Data Types (PostgreSQL Documentation). postgresql.org
- Key terms
- Data type
- A label a program attaches to a value that decides how its bits are read, how much memory it takes and which operations are allowed on it.
- Char
- A data type holding exactly one character, such as a letter, digit or symbol, stored as a code number; Java and C# write it in single quotes.
- String
- A data type holding a sequence of zero or more characters, such as a name or sentence; digits inside quotation marks form a string, not a number.
- Integer
- A numeric data type for whole numbers with no fractional part, exact within a fixed range set by its size, commonly 32 or 64 bits.
- Float (floating-point number)
- A numeric data type for values with a fractional part, stored as binary significant digits plus an exponent, which leaves many decimal fractions slightly inexact.
- Boolean
- A data type with only two possible values, true and false, usually produced by comparisons and used to control decisions and loops.
- Concatenation
- Joining two strings end to end, so that the text '14' joined with the text '5' gives '145'.
- Integer overflow
- What happens when a calculation produces a whole number too large or too small for its integer type; in many languages the value silently wraps to the other end of the range.
- Type conversion
- Changing a value from one data type to another, such as turning the text '14' into the integer 14; also called casting or parsing.
- Unicode
- An international standard that assigns a numeric code point to each character in nearly every writing system, so capital A is 65 (U+0041).
The Building Blocks of Code: Variables, Constants, Arrays, Functions and Objects
- Identify the identifiers in a short program and decide whether a given value belongs in a variable or a constant.
- Explain how an array stores ordered values, and use zero-based indexes to predict what each position holds.
- Describe how a function is defined, called with arguments and made to return a value, and tell a function apart from a method.
- Classify an object's members as properties (attributes) or methods, and explain why objects bundle data with behavior.
Fifteen lines that price a bike repair
The fictional program below prices one order at a bike-repair shop: two inner tubes at $8.50 each, one brake cable at $12.00, and 8 percent sales tax. It is written in JavaScript, the language every web browser runs. Take away the punctuation and the few words the language reserves for itself, and what is left is a set of names the programmer chose. Each name stands for one of this lesson's building blocks: a variable, a constant, an array or a function. Later the same order is rebuilt as an object, and that brings in properties, attributes and methods.
Exam objectives: CompTIA Tech+ FC0-U71 objective 4.3, "Explain the purpose and use of programming concepts."[1] It belongs to domain 4.0 Software Development Concepts. It lists identifiers (variables and constants), arrays, functions, and objects with their properties, attributes and methods.
// Fictional example: one order at a bike-repair shop
const TAX_RATE = 0.08;
let customerName = 'Priya';
let prices = [8.50, 8.50, 12.00];
function orderTotal(itemPrices, rate) {
let subtotal = 0;
for (let i = 0; i < itemPrices.length; i++) {
subtotal = subtotal + itemPrices[i];
}
return subtotal * (1 + rate);
}
let total = orderTotal(prices, TAX_RATE);
console.log(customerName + ' owes ' + total.toFixed(2));
Run it and it prints one line: Priya owes 31.32. The objective's verb is "explain", so the exam will not ask you to write code. Instead it describes a need, or shows a short snippet, and asks which building block fits. The steps below take the program apart in the order the computer reads it. Then three small edits each change the output, and you will see why.
Step 1: Read the names, because every name is an identifier
An identifier is the name a programmer gives to something in code so that other lines can refer to it. The bike-shop program chooses nine of them: TAX_RATE, customerName, prices, orderTotal, itemPrices, rate, subtotal, i and total. Mozilla's JavaScript guide explains that these names are called identifiers and that they must follow rules.[2] The words const, let, function, for and return are not identifiers. They are keywords, words the language keeps for itself, and you cannot use one as a name.
The rules exist so the computer can tell, without guessing, where a name starts and whether it is a name at all. A JavaScript identifier usually begins with a letter, an underscore or a dollar sign.[2] After the first character, digits are allowed too. Upper case and lower case count as different letters, so Total and total are two separate names.
| Candidate name | Legal? | Why |
|---|---|---|
| customerName | Yes | Starts with a letter |
| _count | Yes | May start with an underscore |
| $total | Yes | May start with a dollar sign |
| item2 | Yes | Digits are fine after the first character |
| 2ndItem | No | Starts with a digit, so the language tries to read it as a number |
| order-total | No | The hyphen is read as a minus sign: order minus total |
| let | No | A reserved keyword |
Python's rules are much the same, except that Python does not allow the dollar sign. On top of the rules, programmers follow naming habits that the computer ignores. JavaScript code usually uses camel case, as in customerName. Python code usually uses snake case, as in customer_name. In both languages, a value meant never to change is written in capitals, as in TAX_RATE. The computer would run f(p, t) just as happily as orderTotal(prices, TAX_RATE), but only one of the two tells a reader what is going on.
What matters here: an identifier is a name, not a storage place. The objective files variables and constants under "identifiers" because both are named values. Functions, parameters and objects have identifiers too.
Step 2: Decide what may change: variables and constants
A variable is a named value that the program may replace while it runs. Behind the name is a spot in memory (the RAM from Lesson 6) holding the current value. In the bike-shop program, subtotal starts at 0 and is replaced three times as the prices are added up. Modern JavaScript declares a variable with let. In older code you will also see var. It declares a variable too, but newer code prefers let and const, because var follows older and looser rules about where a name can be seen.
A constant is a named value that is set once and must not change while the program runs. JavaScript creates a read-only constant with the keyword const.[2] Two rules follow from that. A constant cannot be reassigned or declared a second time while the script runs, and it must be given a value at the moment it is created.[2] If you write const TAX_RATE; with no value, the script will not run.
Why lock a value on purpose?
- One place to update. If the tax rate rises to 9 percent, the programmer edits one line. If 0.08 had been typed into six calculations, all six would need finding, and missing one would leave two screens that disagree. An unexplained number scattered through code is called a magic number, and a named constant is the usual cure.
- The language catches mistakes. If a later line tries to replace TAX_RATE by accident, the script stops with an error instead of quietly charging the wrong tax.
- The name tells readers something. A capitalized constant says that the value is fixed for the whole run, so nobody needs to hunt for the line that changes it.
"Must not change" means during one run. It does not mean forever: next year the programmer can still edit the declaration and release a new version. Languages also enforce the rule differently. Python has no constant keyword at all. Writing TAX_RATE in capitals is only a promise to other readers, and Python will let a later line change the value anyway. When an exam question says "constant", it means the concept: a value meant to stay fixed for the run.
| Value | Changes during one run? | Best choice |
|---|---|---|
| Sales tax rate, 0.08 | No | Constant |
| Running subtotal | Yes, after each item | Variable |
| Customer's name | Yes, from one order to the next | Variable |
| Limit of 3 discount codes per order | No | Constant |
| Number of items in the cart | Yes, as items are added or removed | Variable |
What matters here: the choice between a variable and a constant depends on whether the value changes during a run. A variable can be given a new value. A constant cannot, which keeps a fixed value in one named, protected place.
Step 3: Hold many values under one name: the array
The line let prices = [8.50, 8.50, 12.00]; creates an array: an ordered collection of values stored under one identifier. Each value sits at a numbered position called an index, which you write in square brackets after the array's name. Counting starts at zero, a convention called zero-based numbering. This one detail trips up nearly every beginner.
| Expression | Value | Meaning |
|---|---|---|
| prices[0] | 8.5 | First item: an inner tube |
| prices[1] | 8.5 | Second item: another inner tube |
| prices[2] | 12 | Third item: the brake cable |
| prices.length | 3 | How many items there are |
| prices[3] | undefined | There is no fourth item |
Two facts follow from the table. The first item is always at index 0, and the last item is at index length minus 1. Here that is 3 minus 1, which is 2. JavaScript, Python, Java and C all count this way.
Why not use three variables called price1, price2 and price3? The next order might have 40 items. With separate variables, the code would need 40 names, and it would have to change for every order size. One array name can hold any number of items. The loop inside orderTotal works for 3 items or 300, because it visits index 0, then 1, then 2, and so on up to length minus 1. Lesson 22 covers loops in detail. For now, read that for line as "for each position in the array".
Arrays come with built-in actions. Python's version of an array is called a list, and Python's documentation describes an append operation that adds an item to the end of the list.[3] Here is a short session at Python's interactive prompt:
>>> parts = ['tube', 'tube', 'cable']
>>> parts[2]
'cable'
>>> parts.append('brake pad')
>>> len(parts)
4
Languages differ in how strict they are about arrays. In Java and C, an array has a fixed size and holds one type of value. JavaScript arrays and Python lists can grow, shrink and mix types. The core idea is the same everywhere: an ordered sequence, one name, numbered positions.
Step 4: Package the work once: the function
A function is a named block of code that does one job and can run whenever it is needed. Older texts call it a subroutine or a procedure. Mozilla describes a function as a set of statements that performs a task or calculates a value. It adds that a true function takes some input and returns an output clearly related to that input.[4] orderTotal fits that description: prices and a tax rate go in, and a total comes out.
| Part | In the program | Its job |
|---|---|---|
| Name (an identifier) | orderTotal | How other code refers to the function |
| Parameters | itemPrices, rate | Placeholder names for the inputs |
| Body | The lines between the braces | The work itself |
| Return statement | return subtotal * (1 + rate); | Hands the result back to the caller |
| Call | orderTotal(prices, TAX_RATE) | Runs the function with real values, called arguments |
Three distinctions in that table cause most of the confusion, so take them one at a time.
Defining is not running. The lines of the function definition only tell the computer what orderTotal means. Mozilla says so directly: defining a function does not execute it.[4] Nothing gets added up until the line let total = orderTotal(prices, TAX_RATE); calls the function. A function that is never called never runs.
Parameters are names; arguments are values. A parameter is the placeholder name written in the definition, here itemPrices and rate. An argument is the actual value supplied in a call, here the prices array and 0.08. Values are passed into a function through its parameters, and the function returns a value.[5] Because the inputs are placeholders, the same function can be called a thousand times with a thousand different arguments. That is the whole point of writing it once.
Returning is not printing. The return statement hands a value back to the line that called the function. That line can store the value in total or use it in more arithmetic. Printing only puts text on a screen. In JavaScript, if a function finishes without reaching a return statement, or has return with nothing after it, the value it hands back is undefined.[5] A single call returns exactly one value. To hand back several, a function returns one array or one object that holds them all.[5]
One more feature works quietly. subtotal and i are created inside the function and exist only while it runs. Code outside orderTotal cannot see them, so another part of the program could have its own subtotal with no clash. This idea, that a name belongs to one region of code, is called scope.
Programmers split work into functions for three reasons. The first is reuse: the shop prices 300 orders by calling orderTotal 300 times. The second is that one fix repairs everything, because if the tax arithmetic is wrong, it is wrong in only one place. The third is that the details stay hidden: the caller needs to know what goes in and what comes out, not how the work is done. You already use functions other people wrote. Python's len and print are two of them.
What matters here: a function is defined once and runs only when it is called. Parameters name the inputs, arguments are the values given in one particular call, and return sends one value back.
Step 5: Trace the run line by line
Now put the pieces together. Tracing a program by hand, writing down what is stored after each line, is how programmers check their reasoning. It is also the best way to handle any snippet the exam shows you.
| Step | Line running | What is stored afterward |
|---|---|---|
| 1 | const TAX_RATE = 0.08; | TAX_RATE is 0.08, locked |
| 2 | let customerName = 'Priya'; | customerName is 'Priya' |
| 3 | let prices = [8.50, 8.50, 12.00]; | prices holds three numbers |
| 4 | function orderTotal ... | Defined; nothing inside runs yet |
| 5 | orderTotal(prices, TAX_RATE) is called | itemPrices refers to prices; rate is 0.08; subtotal is 0 |
| 6 | Loop, i is 0 | subtotal is 8.5 |
| 7 | Loop, i is 1 | subtotal is 17 |
| 8 | Loop, i is 2 | subtotal is 29 |
| 9 | i becomes 3; the test 3 < 3 is false | The loop ends |
| 10 | return subtotal * (1 + rate); | 29 times 1.08, about 31.32, handed back |
| 11 | let total = ... | total is about 31.32 |
| 12 | console.log(...) | Prints Priya owes 31.32 |
Why "about"? Computers store most decimal fractions, 0.08 included, only approximately. The raw result can therefore carry a tiny error far past the second decimal place. toFixed(2) rounds the number to two places for display. Notice that toFixed is written after a dot, attached to the number total, and that console.log is likewise log attached to an object named console. Both are methods, a kind of function that the objects section below explains.
Second run: three small edits that flip the result
Each edit below is made on its own to the original program. Each changes one detail, and each outcome follows directly from Steps 2 and 3.
Edit A: reassign the constant. A colleague adds TAX_RATE = 0.09; just before the line that calls orderTotal. The browser reports a TypeError at that line and the script stops, so nothing is printed. This is the constant doing its job. The right way to change the rate is to edit the declaration itself and run the program again.
Edit B: add an item to an array declared with const. Suppose prices had been declared const prices = [8.50, 8.50, 12.00]; and the line prices.push(4.25); added a $4.25 valve cap before the call. Many learners expect an error, but there is none. The program prints Priya owes 35.91, because 29 plus 4.25 is 33.25, and 33.25 times 1.08 is 35.91. Mozilla's guide explains that the contents of an array stored under a constant are not protected.[2] Neither are the properties of an object stored under a constant.[2] So the line prices = [4.25]; would fail, because it points the name at a whole new array. But prices.push(4.25); succeeds, because it only changes what is inside the array the name already holds.
Edit C: change one character in the loop. A colleague changes i < itemPrices.length to i <= itemPrices.length, because "up to and including" sounds safer. The program now prints Priya owes NaN. Trace it: the loop now also runs when i is 3. Index 3 does not exist, so JavaScript gives back undefined. Adding undefined to 29 produces NaN, short for "Not a Number", and any arithmetic on NaN stays NaN. Python fails more loudly when you read past the end of a list: it stops with IndexError: list index out of range.
| Edit | Output | The concept behind it |
|---|---|---|
| Original program | Priya owes 31.32 | Every building block used as intended |
| A: TAX_RATE = 0.09; added | TypeError; script stops | A constant cannot be reassigned during a run |
| B: const prices, then prices.push(4.25) | Priya owes 35.91 | const protects the name, not the array's contents |
| C: < changed to <= | Priya owes NaN | Zero-based indexes end at length minus 1 |
What matters here: the constant rule is about reassigning the name. Changing what is inside an array or object stored under a constant is allowed. An array of n items has indexes 0 to n minus 1, never n.
Objects: one name for the customer, her cart and the arithmetic
The original program keeps Priya's name in one variable, her prices in another, and the arithmetic in a separate function. Nothing in the code says these three things belong together, and an object fixes that. Mozilla's beginner guide defines an object as a collection of related data and/or functionality.[6] In practice that usually means some variables and some functions, which are called properties and methods once they live inside an object.[6] Another Mozilla guide, Working with objects, compares this to a cup. A cup is an object with properties such as its color, design, weight and material.[7]
// Fictional example continued
const customer = {
name: 'Priya',
memberSince: 2021,
cart: [8.50, 8.50, 12.00],
total(rate) {
let subtotal = 0;
for (let i = 0; i < this.cart.length; i++) {
subtotal = subtotal + this.cart[i];
}
return subtotal * (1 + rate);
}
};
console.log(customer.name); // Priya
console.log(customer['memberSince']); // 2021
console.log(customer.cart[2]); // 12
console.log(customer.total(TAX_RATE).toFixed(2)); // 31.32
| Member | Kind | Value | Answers the question |
|---|---|---|---|
| name | Property | 'Priya' | What does it have? |
| memberSince | Property | 2021 | What does it have? |
| cart | Property holding an array | [8.5, 8.5, 12] | What does it have? |
| total | Method | A function | What can it do? |
A property is a named piece of data that describes the object. A method is an action the object can perform. In JavaScript the line between the two is simple: when a property's value is a function, that property is called a method.[7] Inside total, the word this means "the object this method belongs to", so this.cart is Priya's cart. That is what makes total different from the old orderTotal function. orderTotal had to be handed the prices as an argument, while customer.total finds the data it needs inside its own object.
There are two ways to reach a member. Dot notation, as in customer.name, is the everyday form. Bracket notation, as in customer['memberSince'], looks like reading from an array, but you put a member's name inside the brackets instead of an index number. That gives you the cleanest way to tell the two structures apart. Use an array when position matters and the items are alike, such as a list of prices. Use an object when each value has its own meaning, such as a name, a year and a cart.
You have been calling methods all along. prices.push in Edit B is a method that every JavaScript array carries. parts.append is a method of a Python list. toFixed belongs to numbers, and log belongs to the console object. Why bundle data and behavior together at all? Mozilla points out that tracking every property and method as separate variables and functions would be inefficient and frustrating, and it would risk name clashes.[6] Picture a shop holding 50 customers in loose variables called name1, cart1, name2, cart2 and so on. With objects, each customer is one value, and one array of 50 customer objects holds the whole list.
Properties versus attributes: what the two exam words mean
The objective lists properties and attributes as separate bullets but does not define a difference, and in everyday use the two words overlap heavily. Both name the data that describes an object. Which word you hear depends mostly on who is talking.
| Word | Usual meaning | Example on a bicycle object |
|---|---|---|
| Property | A named characteristic of an object; the usual word in JavaScript | make is 'Trek'; year is 2019 |
| Attribute | The same idea; the usual word in Python and in class diagrams. HTML also uses it for settings inside a tag, such as an a tag's href (Lesson 19) | self.make in Python |
| Method | A function that belongs to the object; an action | age(), ringBell() |
Here is the same bicycle in Python, where make and year are called attributes. To read it, you need three pieces. class Bike is the blueprint. __init__ is the setup code that runs each time a new bike is created. And self means "this particular bike".
# Fictional example in Python
class Bike:
def __init__(self, make, year):
self.make = make
self.year = year
def age(self, this_year):
return this_year - self.year
bike = Bike('Trek', 2019)
print(bike.make) # Trek
print(bike.age(2026)) # 7
For the exam, apply one test. If the question describes something the object has or is, such as a color, a size or a model year, the answer is a property or attribute. If it describes something the object does, such as print, start or calculate, the answer is a method. A method is usually written with parentheses and named with a verb.
One shape, many objects: factory functions and classes
A shop has many customers, and writing each object out by hand would repeat the same structure again and again. So programmers write a function that builds objects. Mozilla shows this pattern: a function that creates and returns a new object every time it is called.[6]
// Fictional example: a factory function
function createCustomer(name, cart) {
return { name: name, cart: cart, itemCount() { return this.cart.length; } };
}
const twinA = createCustomer('Ana', []);
const twinB = createCustomer('Ana', []);
console.log(twinA.itemCount()); // 0
console.log(twinA === twinB); // false
Every object built this way has the same shape but its own values. Many languages make this template a formal thing called a class, such as the Python Bike above, and each object built from a class is called an instance. Organizing a program around objects that combine data and behavior is called object-oriented programming.
The last line holds a classic trap. twinA and twinB have identical contents, yet comparing them gives false. In JavaScript, two separate objects are never equal, even when their properties are the same.[7] The comparison asks "is this the very same object?", not "do these two look alike?". Two forms filled in with the same details are still two forms.
What matters here: an object bundles properties or attributes (what it has) with methods (what it does). A factory function or a class turns out many objects with the same shape, each holding its own values.
Exam cues: matching the stem to the building block
| Words in the question | Points to | Often confused with, and the tell |
|---|---|---|
| "The name given to" a value, function or object; naming rules | Identifier | Variable: the variable is the named value, the identifier is only its name |
| Running total, counter, user input, a value that changes as the program runs | Variable | Constant: a constant is fixed for the whole run |
| Tax rate, pi, maximum attempts, a value that must not change | Constant | Variable: the clue is "must not change" or "fixed" |
| Many similar values under one name, reached by position or index | Array | Object: object members are reached by name, not number |
| Reusable block of code that takes inputs and returns a result | Function | Method: a method is a function that belongs to an object |
| A characteristic of an object: color, size, make, year | Property or attribute | Method: a method is an action, not a description |
| Something an object can do: print(), start(), calculate() | Method | Property: the parentheses and the verb give it away |
| Groups related data and behavior under one name | Object | Array: array items are reached by position number and are usually alike; object members are reached by name and each has its own meaning |
Common misconceptions
- "A constant can never be changed." It cannot be reassigned while the program runs, but a programmer can edit its declaration for the next version. In JavaScript, const does not even freeze the contents of an array or object stored under the name.
- "Arrays start at 1." In JavaScript, Python, Java and C the first item is at index 0 and the last is at length minus 1.
- "Identifier is just another word for variable." An identifier is any name a programmer chooses. Constants, functions, parameters and objects all have identifiers.
- "Writing a function runs it." A definition only describes the work. The code runs when the function is called, and again on each later call.
- "Properties and attributes are opposites." They are near-synonyms for an object's descriptive data. The real contrast is property (what it has) against method (what it does).
Summing up
- An identifier is a name chosen by the programmer for a variable, constant, function, parameter or object. In JavaScript it cannot start with a digit or be a reserved keyword, and it is case sensitive.
- A variable holds a value that may be replaced while the program runs; modern JavaScript declares one with let, and older code uses var. A constant gets its value once and cannot be reassigned during the run.
- A constant puts a fixed value such as a tax rate in one named place, so a single edit updates every calculation that uses it.
- JavaScript's const blocks pointing the name at a new value but allows changes inside an array or object stored under it: push succeeds, while reassignment raises a TypeError.
- An array stores an ordered collection under one name. Indexes start at 0, so the last item is at length minus 1. Reading one position past the end gives undefined in JavaScript and an IndexError in Python.
- A function runs only when called. Parameters are the placeholder names in the definition, arguments are the values supplied in a call, and return hands back one value (undefined in JavaScript if nothing is returned).
- An object bundles properties or attributes, which describe what it has, with methods, which are functions stored as members that describe what it can do.
- Object members are reached by name with dot or bracket notation, and array items by number. Two separately built JavaScript objects are never equal, even when their contents match.
Sources
- CompTIA. (2023). CompTIA Tech+ FC0-U71 V6 certification exam: Exam objectives (Document version 4.0). lecbyo.files.cmp.optimizely.com
- MDN Web Docs (Mozilla). (n.d.). Grammar and types. developer.mozilla.org
- Python Software Foundation. (n.d.). 5. Data Structures. docs.python.org
- MDN Web Docs (Mozilla). (n.d.). Functions. developer.mozilla.org
- MDN Web Docs (Mozilla). (n.d.). Functions. developer.mozilla.org
- MDN Web Docs (Mozilla). (n.d.). JavaScript object basics. developer.mozilla.org
- MDN Web Docs (Mozilla). (n.d.). Working with objects. developer.mozilla.org
- Key terms
- Identifier
- The name a programmer gives to a variable, constant, function, parameter or object so that code can refer to it. It must follow the language's naming rules, such as not starting with a digit.
- Variable
- A named value stored in memory that a program may replace while it runs, such as a running total or a counter.
- Constant
- A named value that is set once and cannot be reassigned while the program runs, such as a tax rate. To change it, you edit the declaration and run the program again.
- Array
- An ordered collection of values stored under one identifier. Each value is reached by its numbered position, called an index.
- Zero-based index
- The convention, used by JavaScript, Python, Java and C, that the first item in an array is at position 0, so the last item is at the array's length minus 1.
- Function
- A named, reusable block of code that runs only when called. It takes inputs through parameters and can return a result to the code that called it.
- Parameter and argument
- A parameter is the placeholder name for an input, written in a function's definition. An argument is the actual value supplied when the function is called.
- Object
- A bundle of related data and behavior under one name. It is made of properties or attributes that describe it and methods that act on it.
- Property (attribute)
- A named piece of data belonging to an object that describes one of its characteristics, such as a car's make or year. Python and class diagrams usually call this an attribute.
- Method
- A function stored as a member of an object, describing an action the object can perform, usually on its own data, such as print() or total().
Planning Code: Pseudocode, Flowcharts, Branching and Loops
- Trace short pseudocode that uses sequence, branching and looping, and predict exactly what it does or prints.
- Read flowchart symbols and recognize how a decision, a branch and a loop appear in a flowchart.
- Tell useful code comments and documentation apart from noise, and explain what each is for.
- Explain how object-oriented methods organize code into classes, instances, properties and methods.
The reminder that went out 412 times
Harbor Print is a fictional print shop with six staff and about two hundred business customers. The owner asks a part-time contractor for a small script: each morning, email a polite reminder to every customer whose invoice is more than 30 days overdue. The contractor types it straight into code with no plan. On the first Monday, one customer gets the same reminder 412 times before the shop's email provider suspends the account. A hurried fix on Tuesday stops the repeats, but now the script reminds a customer who paid in full the week before.
Neither bug took expert knowledge to prevent. The first was a loop that could never end. The second was a decision that tested the wrong thing. Both would have shown up in a few minutes on paper if someone had written the steps as pseudocode, drawn them as a flowchart, or traced three sample invoices by hand. This lesson takes the broken job apart and rebuilds it. Along the way it covers every planning technique and logic structure the objective names.
Exam objectives: 4.4 Identify programming organizational techniques and logic concepts.[1] Under that heading CompTIA lists organizational techniques (pseudocode concepts, object-oriented methods, comments and documentation, flowchart concepts), sequence, and logic concepts (branching and looping).
The objective's verb is "identify". The practical skill is to look at a few lines of pseudocode or a described flowchart, name the structure, and trace what it will do. You do not have to write a working program. Tracing logic one step at a time is also exactly the skill that would have saved Harbor Print.
Here is the contractor's Monday version, rewritten as pseudocode so you can read it without knowing a programming language. The arrow ← means "store the value on the right in the name on the left". invoice[i] means "invoice number i in the list".
i ← 1
WHILE i <= numberOfInvoices DO
IF invoice[i].daysOverdue > 30 THEN
SEND reminder TO invoice[i].customer
ENDIF
ENDWHILE
Read it one line at a time. The counter i starts at 1. The loop repeats while i is less than or equal to the number of invoices. Nothing inside the loop ever changes i. So i stays at 1, the test stays true, and invoice 1 gets reminder after reminder. The whole disaster comes down to one missing line: i ← i + 1. If invoice 1 had not been overdue, the script would have spun forever and sent nothing, which is a quieter form of the same bug.
Sequence: the order of the steps is part of the logic
The simplest logic structure is sequence. Statements run one after another, top to bottom, each one once, in exactly the order they are written. A pseudocode course text lists it as the first control structure and describes it as simple linear execution of statements.[2] Most of any program is sequence. Branches and loops are detours that eventually rejoin it.
Each step can use the results of the steps before it, so moving a line can change the answer. Take Harbor Print's checkout with made-up numbers: a 200-dollar subtotal, a 20-dollar coupon and 8 percent sales tax.
| Line | Order A: coupon, then tax | Order B: tax, then coupon |
|---|---|---|
| 1 | total ← 200 | total ← 200 |
| 2 | total ← total - 20, giving 180 | total ← total * 1.08, giving 216 |
| 3 | total ← total * 1.08, giving 194.40 | total ← total - 20, giving 196.00 |
The lines are identical and only their order differs, yet the customer pays 1.60 dollars more under Order B. Which order is correct is a business and tax rule. The program simply follows whatever sequence you write. A cruder version of the same mistake is putting PRINT total above the line that calculates total. The computer does not look ahead for the calculation. It prints whatever total holds at that moment, which might be 0, and some languages stop with an error because total has no value yet.
Why this matters: a computer never rearranges your steps to make them sensible. When a question shows a few lines and asks what is printed, trace them strictly in order and write down each variable's value after every line, as the table does.
Pseudocode: a plan in structured plain language
Pseudocode describes a program's steps in a form that looks like code but is written for people. Kansas State University's CC 310 textbook calls it an abstract language that resembles a high-level programming language. It is written so that a programmer who knows any of several common languages can follow it.[3] An algorithm is a precise, finite set of steps that solves a problem, and pseudocode is one way to write an algorithm down. Pseudocode is not meant to be run. The KSU text says it may not be directly executable as written, but it should contain enough detail for a skilled programmer to turn it into real code.[3]
Why not use ordinary English? Because English hides decisions. The same text warns that natural language can be very ambiguous, and it recommends short, precise sentences rather than flowing prose.[3] The owner's request, "remind customers who are more than 30 days overdue", leaves at least four questions open:
- Is an invoice exactly 30 days overdue included, or must it reach 31?
- Is "overdue" counted from the date the invoice was sent, or from its due date?
- What about an old invoice that has already been paid? This is the Tuesday bug.
- Does a customer with three unpaid invoices get one email or three?
You cannot finish the pseudocode without answering each question, because each answer becomes a specific condition. That is where most of pseudocode's value lies. One course text lists early error detection, meaning finding logic errors before any code exists, among its advantages.[2]
There is no single official pseudocode. Many standards exist, each with its own features, and the KSU course mostly follows the International Baccalaureate's version.[3] Most versions share a family of keywords like the ones below. Spellings vary between books, and what matters is the logic.
| Purpose | Typical keywords | Example |
|---|---|---|
| Input | READ, INPUT, GET | READ customerName |
| Output | PRINT, DISPLAY, WRITE | PRINT "Total: ", total |
| Assignment | ← or = | total ← price + tax |
| Branch | IF ... THEN ... ELSE ... ENDIF | IF balance > 0 THEN |
| Loop | WHILE ... ENDWHILE, FOR ... ENDFOR, REPEAT ... UNTIL | WHILE count < 10 DO |
| Comment | // or /* */ | // skip paid invoices |
Pseudocode also relaxes rules that real languages enforce. A variable usually comes into existence the first time it is used, and you need not state a data type such as integer or string from Lesson 20. The finished program still has types, but the plan concentrates on logic. Indentation is there for the human reader. Pushing the lines inside an IF or a loop to the right makes the structure easy to see, but keywords such as ENDIF and ENDWHILE are what actually close each block. Some real languages work differently. In Python, indentation is part of the syntax: the indented lines are the block, so changing the indentation changes what the program does.
Now catch the Tuesday bug on paper. The contractor's second attempt uses FOR EACH, which means "do this once for every item in the list". On each pass the current item is called inv.
FOR EACH inv IN invoices DO
IF inv.daysSinceSent > 30 THEN
SEND reminder TO inv.customer
ENDIF
ENDFOR
Trace one paid invoice: it was sent 40 days ago and its balance is 0. The test 40 > 30 is true, so a reminder goes out. The plan never mentions the balance at all. Once it is written down, the gap is obvious. The condition has to check two facts at once, and pseudocode does that with AND, which is true only when both parts are true: IF inv.balance > 0 AND inv.daysOverdue > 30 THEN.
Branching: choosing a path with IF, ELSE IF and ELSE
Branching, also called selection or a conditional statement, means the program tests a condition and takes a different path depending on the result. The condition always works out to true or false, which is the Boolean type from Lesson 20. A branch runs its chosen block at most once and then carries on with the sequence below it.
| Form | What happens | Harbor Print example |
|---|---|---|
| IF ... THEN ... ENDIF | The block runs only when the condition is true; otherwise it is skipped | Add a late fee only if the invoice is overdue |
| IF ... THEN ... ELSE ... ENDIF | Exactly one of two blocks runs | Label each invoice paid or unpaid |
| IF ... ELSE IF ... ELSE ... ENDIF | Conditions are tested in order; the first true one runs and the rest are skipped | Choose the reminder's tone by how late it is |
| CASE or switch (in many languages) | One of many blocks runs, chosen by matching a single value | Menu choice 1, 2 or 3 |
Here is a worked example. The owner wants a friendly reminder after 30 days and a final notice after 60.
IF daysOverdue > 60 THEN
type ← "final notice"
ELSE IF daysOverdue > 30 THEN
type ← "friendly reminder"
ELSE
type ← "none"
ENDIF
| daysOverdue | Over 60? | Over 30? | type |
|---|---|---|---|
| 30 | false | false (30 is not greater than 30) | none |
| 31 | false | true | friendly reminder |
| 60 | false | true | friendly reminder |
| 61 | true | not tested | final notice |
Now change one thing: swap the two tests so that "> 30" comes first, and trace 61 days again. Is 61 > 30? Yes, so the friendly reminder is chosen and the rest of the chain is skipped. In fact no invoice can ever reach the final notice, because anything over 60 is also over 30. Nothing crashes and no error appears. The program just does the wrong thing every time. When the conditions in a chain overlap, put the narrowest one first.
Boundaries need the same care. Change > 30 to >= 30 (greater than or equal to) and an invoice exactly 30 days late now gets a reminder. That one character decides who receives an email, and it is the reason the pseudocode stage forced the "exactly 30?" question.
Conditions can be combined with three words. AND is true only when both parts are true. OR is true when at least one part is true. NOT turns true into false and false into true. The Tuesday fix uses AND. For the paid invoice, balance > 0 is false and daysOverdue > 30 is true. False AND true gives false, so no email goes out.
Why this matters: most real logic bugs are branching bugs: a test in the wrong order, a > that should have been >=, or a missing AND. None of them produces an error message, so only tracing sample values brings them to light.
Looping: repeating work until something changes
Looping, also called iteration, means a block of statements repeats, either a set number of times or until a condition changes. Each trip through the block is called a pass. Pseudocode commonly offers three loop forms, and they differ in when the test happens.
| Loop | When the test happens | Fewest passes | Good fit |
|---|---|---|---|
| FOR, including FOR EACH (count-controlled) | Before each pass; the loop moves its own counter | 0 | A known number of repeats, or every item in a list |
| WHILE (pre-test) | Before each pass; continues while the condition is true | 0 | Repeat as long as something holds, when it may already be false at the start |
| REPEAT ... UNTIL (post-test; like do-while in many languages) | After each pass; stops once the condition becomes true | 1 | The body must run at least once, such as showing a menu before reading the choice |
Every loop needs three things: a starting value, a test, and a step that moves it toward ending. Monday's script had the first two and lacked the third. Here is the repaired loop, traced with three invoices.
i ← 1
WHILE i <= numberOfInvoices DO
check invoice[i]
i ← i + 1
ENDWHILE
| Test number | i when tested | i <= 3? | Action | i afterwards |
|---|---|---|---|---|
| 1 | 1 | true | check invoice 1 | 2 |
| 2 | 2 | true | check invoice 2 | 3 |
| 3 | 3 | true | check invoice 3 | 4 |
| 4 | 4 | false | loop ends | 4 |
The body ran 3 times, but the test ran 4 times. That last, false test is what lets the program leave the loop. If i never changes, the false test never comes, and you have an infinite loop. From the outside, an infinite loop looks like a frozen program or a processor running flat out. At Harbor Print it looked like an overflowing inbox.
The other classic loop bug is the off-by-one error, where a loop makes one pass too many or one too few. Write WHILE i < 3 instead of i <= 3, and invoice 3 is never checked. A related trap is how positions are counted. Many real languages number list positions from 0, so a plan that counts from 1 has to be translated with care.
Now change one input and see why the choice of loop matters. Suppose that one morning there are no open invoices at all, so numberOfInvoices is 0. In the WHILE version, the first test is 1 <= 0. That is false, so the body never runs, which is correct. Now write the same job as REPEAT ... UNTIL i > numberOfInvoices. The body runs once before any test and tries to check an invoice 1 that does not exist, so the script either fails or sends a blank email. When a list might be empty, use a loop that tests first.
A FOR EACH loop hands the program one item per pass and stops by itself when the list runs out. You never write the counter step, so you cannot forget it. That is why the rebuilt job later in this lesson uses one.
Why this matters: when a question shows you a loop, find its start, its test and its step. If the step is missing, the loop is infinite. If the test is off by one character, a pass is lost or added.
Flowcharts: the same logic drawn as boxes and arrows
A flowchart shows a process as a diagram. The KSU text describes it as graphical blocks, each standing for one operation, connected by arrows that show the flow of the program.[3] Drawing tools differ slightly in their conventions, but you should recognize the core shapes on sight.
| Shape | Name | Meaning | Example from the reminder job |
|---|---|---|---|
| Oval or rounded rectangle | Terminator | Where the process starts or ends | Start; End |
| Parallelogram | Input/output | Data coming in or going out | Load open invoices; Print number sent |
| Rectangle | Process | A calculation or action | sent ← sent + 1 |
| Diamond | Decision | A yes-or-no question with two labeled exits | Balance over 0 and more than 30 days overdue? |
| Arrow | Flow line | Which block comes next | From each block to the next |
Each logic structure has its own look. Sequence is a straight chain of blocks. A branch is a diamond whose Yes and No arrows lead down different paths that later rejoin. A loop is an arrow that runs back up to an earlier diamond. An arrow pointing backward always means a loop.
A text page cannot show the drawing, so here is the rebuilt reminder job as numbered blocks with the arrows written out. Sketch it on paper as you read.
- Oval: Start. Arrow to 2.
- Parallelogram: Load open invoices. Arrow to 3.
- Rectangle: sent ← 0. Arrow to 4.
- Diamond: Any invoices left? Yes to 5; No to 9.
- Diamond: Balance over 0 and more than 30 days overdue? Yes to 6; No to 8.
- Parallelogram: Send reminder to customer. Arrow to 7.
- Rectangle: sent ← sent + 1. Arrow to 8.
- Rectangle: Move to next invoice. Arrow runs back up to 4.
- Parallelogram: Print sent. Arrow to 10.
- Oval: End.
Diamond 4 is the loop's test, and diamond 5 is a branch inside the loop. The arrow from block 8 back to block 4 is the loop itself. Drawn as a flowchart, the Monday bug is block 8 missing. The arrow goes back to diamond 4 with nothing changed, so diamond 4 answers Yes forever. Many people spot that faster in a picture than in code.
Pseudocode and flowcharts describe the same logic, so you choose between them by audience. Text is quicker to write and edit and handles detailed conditions well, which suits programmers who are about to write the code. A diagram shows the overall shape of a process at a glance and works better for people who do not program, though a large diagram is awkward to change.
Why this matters: on the exam, the shape names carry the question. A diamond is a decision, a parallelogram is input or output, a rectangle is a process, an oval is start or end, and a backward arrow is a loop.
Code comments and documentation: notes for the next reader
A code comment is text inside source code that the computer skips. Microsoft's C# training defines it as an instruction to the compiler to ignore everything after the comment symbols on that line.[4] A compiler, as Lesson 19 described, is the program that translates source code into a runnable program. Each language has its own comment markers:
| Language | One-line comment | Multi-line comment |
|---|---|---|
| C#, Java, JavaScript, most pseudocode | // note | /* note */ |
| Python | # note | No dedicated syntax: put # at the start of each line. Triple-quoted strings are for docstrings, not comments. |
| HTML (Hypertext Markup Language) | <!-- note --> | <!-- note --> with the text spread over several lines |
Programmers use comments for three jobs. The first is a note about intent. The second is a TODO reminder to come back to something. The third is "commenting out", which turns lines off for a while so you can try a different approach. Once the new lines work, you delete the old ones.
The hard part is deciding what to write. Microsoft's guidance puts it in one line: "Code comments should be used to say what the code cannot."[4] The same exercise calls comments that only explain how a line of the language works low-quality, because a reader can look that up.[4] Compare two fictional examples:
// Weak: repeats what the code already says
sent ← sent + 1 // add 1 to sent
// Useful: says what the code cannot
// Shop policy counts the due date itself as day 0,
// so "more than 30" means reminders start on day 31.
IF inv.daysOverdue > 30 THEN
Comments also go stale. Suppose the owner later moves the threshold to 45 days, and someone changes the 30 in the code but not in the comment. Now the comment says 30, the code says 45, and the next reader has to guess which is true. A wrong comment is worse than no comment.
Documentation is broader than comments. It covers anything that explains code to the people who use or maintain it. Many languages support special documentation comments that tools can read. In Python, a string placed as the first statement of a function is its docstring, and tools can read docstrings to produce online or printed documentation automatically.[5] By convention, the first line of a docstring is a short summary of what the function is for.
def needs_reminder(invoice):
\"\"\"Return True if the invoice is unpaid and over 30 days late.
Paid invoices never need a reminder, however old they are.
\"\"\"
return invoice.balance > 0 and invoice.days_overdue > 30
C# does the same job with documentation comments that begin with three slashes, ///. These use XML (Extensible Markup Language), a text format in which named tags such as <summary> and <param> mark out each part so that tools can tell the parts apart.[6] The comments then appear as IntelliSense tooltips, the hints that Microsoft's Visual Studio editors pop up as you type a function's name. They can also feed generated reference documentation.[7] Outside the code, documentation includes a README file that explains what a project does and how to run it, along with change logs, user guides and planning work like the pseudocode and flowchart in this lesson. If those are kept with the project, Harbor Print's next contractor can see what the script is supposed to do.
Object-oriented programming: organizing code around things
The last organizational technique the exam names is object-oriented methods. Object-oriented programming (OOP) models a system as a collection of objects, each representing one part of that system.[8] An object holds data together with the functions that work on that data. A function that belongs to an object is called a method. You met objects briefly in Lesson 21. Here the question is how OOP organizes a whole program.
The central idea is the class. MDN Web Docs explains that a class does nothing on its own: it is a template for creating concrete objects of that type.[8] Each object made from a class is an instance of it. This style of OOP is class-based programming. For Harbor Print, the natural class is Invoice.
CLASS Invoice
PROPERTIES
private balance
customer
daysOverdue
CONSTRUCTOR
Invoice(customer, balance, daysOverdue)
METHODS
needsReminder()
RETURN balance > 0 AND daysOverdue > 30
reminderType()
IF daysOverdue > 60 THEN
RETURN \"final notice\"
ELSE
RETURN \"friendly reminder\"
ENDIF
ENDCLASS
inv1 ← new Invoice(\"Lakeside Dental\", 120, 45)
inv2 ← new Invoice(\"Ortega Bakery\", 0, 70)
Read it like a recipe. The properties, also called attributes or fields, are the data that every invoice carries. Python's tutorial uses the word attributes and describes each instance as having attributes attached to it that hold its state.[9] The methods are what every invoice can do. The constructor is a special function that builds a new instance and fills in its starting values. The two lines at the bottom create two instances: two separate invoices, each with its own data, built from one template.
Three OOP ideas follow from this structure:
- Encapsulation. An object offers a public interface to other code but keeps its internal state private.[8] Here balance is marked private. Other code cannot reach in and read or change it directly. It calls inv1.needsReminder() instead. The payoff is that the overdue rule lives in one place, so changing the rule means editing one method. Not every language enforces privacy. Python normally treats class members as public, so programmers use a naming convention, such as starting a name with an underscore, to mark data that should be treated as private.[8]
- Inheritance. A new class can be built on an existing one and automatically gets its properties and methods. A RecurringInvoice class for monthly contract customers could extend Invoice. Python's tutorial notes that a derived (child) class can override any method of its base (parent) class.[9] So RecurringInvoice might replace reminderType() with gentler wording and reuse everything else.
- Polymorphism. Because a child class can override a method, the same call can behave differently depending on which object receives it. Calling reminderType() on an ordinary invoice and on a recurring one produces different wording, and the loop making the call does not need to know which kind it has.
| Question | Procedural organization | Object-oriented organization |
|---|---|---|
| What is the main unit? | Functions that act on separate data | Classes that bundle data with the methods that use it |
| Where does the overdue rule live? | In whichever functions check it, possibly several | In one method of the Invoice class |
| How do you add a variation? | Copy and edit a function, or add IF tests | Inherit from the class and override one method |
Two mistakes are common. The first is leaving data public "for now". Then any code anywhere can set a balance directly, and the one-place rule quietly stops being true. The second is using inheritance where one thing is not really a kind of the other. A Customer is not a kind of Invoice, so Customer should not extend Invoice just to borrow a method. Keep the vocabulary straight too, because exam questions turn on it. A class is the template. An instance, or object, is one thing made from it. A property is data the object holds. A method is a function that belongs to the object.
The rebuilt reminder job, traced end to end
Here is the whole job again, using everything above. It has sequence, a FOR EACH loop that cannot forget its step, a branch with a compound condition, comments that explain why, and the Invoice class doing the deciding.
// Daily overdue-invoice reminders for Harbor Print (fictional example)
// Runs once each morning; sends at most one email per invoice per run.
invoices ← LOAD open invoices FROM billing system
sent ← 0
FOR EACH inv IN invoices DO
// Paid invoices are skipped inside needsReminder(), however old
IF inv.needsReminder() THEN
SEND inv.reminderType() TO inv.customer
sent ← sent + 1
ENDIF
ENDFOR
PRINT \"Reminders sent today: \", sent
| Invoice | balance | daysOverdue | needsReminder() | Email sent | sent afterwards |
|---|---|---|---|---|---|
| A | 120 | 45 | true | friendly reminder | 1 |
| B | 0 | 70 | false (paid) | none | 1 |
| C | 300 | 75 | true | final notice | 2 |
| D | 80 | 30 | false (30 is not over 30) | none | 2 |
The output is "Reminders sent today: 2". Invoice B, the kind the Tuesday bug hit, is now skipped, and the loop ends after invoice D because FOR EACH has run out of items.
Now flip one input. The owner decides that 30 days or more should trigger a reminder. Because the rule lives in one method, you change one character in needsReminder(): > 30 becomes >= 30. Run the trace again. Invoice D's check is now true, D gets a friendly reminder, and sent finishes at 3. Nothing else in the program changes, which is encapsulation earning its keep. The comment that says "more than 30" has to change as well, or it becomes the stale comment described earlier.
Exam cues: what the question's words point to
| Words in the question | Points to | Commonly confused with |
|---|---|---|
| Steps run in order, top to bottom, no decisions | Sequence | Looping, which repeats steps |
| IF, ELSE, depending on whether | Branching | Looping; a branch runs its block at most once |
| Repeat, for each, while, until, iterate | Looping | Branching |
| Program hangs, counter never changes | Infinite loop | A crash with an error message |
| Must run at least once, test at the end | REPEAT ... UNTIL (post-test loop) | WHILE, which can run zero times |
| Plain-language plan, not executable, written before coding | Pseudocode | Comments, which live inside real code |
| Diamond with Yes and No exits | Decision | Rectangle, the process shape |
| Parallelogram | Input or output | Process |
| Ignored by the compiler, explains why | Code comment | Docstrings and documentation comments, which tools turn into documentation |
| Template for objects; one object built from it | Class; instance | Each other |
| Hide data behind public methods | Encapsulation | Inheritance, where a child class reuses and overrides a parent |
Common misconceptions
- "If it runs without an error, the logic is right." Harbor Print's Monday script ran without a single error and sent 412 emails. Logic errors give wrong results silently, and only tracing sample values exposes them.
- "Pseudocode has one correct format." Many pseudocode standards exist. What counts is clear, unambiguous logic.
- "Every loop runs at least once." FOR and WHILE loops test first and can run zero times. Only a post-test loop such as REPEAT ... UNTIL is guaranteed one pass.
- "In an IF ... ELSE IF chain, every true condition runs." Only the first true branch runs, so a broad test placed first can hide a narrower one forever.
- "More comments are always better." Comments that restate the code are noise and go stale. Good comments explain why, which the code cannot.
- "A class and an object are the same thing." A class is the template. An object, or instance, is one thing built from it, with its own data.
Looking back
- Sequence runs statements top to bottom, once each, in the order written. Reordering identical lines can change the result: coupon then tax gives 194.40, while tax then coupon gives 196.00.
- Branching tests a true-or-false condition. In an IF ... ELSE IF chain only the first true branch runs, so put the narrowest condition first and check > against >= at the boundary. AND needs both parts true, OR needs at least one, and NOT reverses a condition.
- Every loop needs a start, a test and a step toward ending. Without the step the test never becomes false and the loop is infinite. A test that is off by one character adds or loses a pass.
- FOR and WHILE loops test before each pass and can run zero times. REPEAT ... UNTIL tests after each pass and always runs at least once, so it fails on an empty list.
- Pseudocode is structured plain language that is not run directly. It has no single standard and usually skips data types, and its main job is to expose logic errors before any code is written.
- Flowchart shapes: an oval is start or end, a parallelogram is input or output, a rectangle is a process, and a diamond is a decision. An arrow running back to an earlier diamond is a loop.
- Comments are ignored by the compiler and should say what the code cannot. Docstrings and documentation comments feed editor tooltips and generated reference documentation.
- In OOP, a class is a template with properties (attributes) and methods, and instances are objects built from it. Encapsulation keeps data private behind public methods. Inheritance lets a child class reuse and override a parent.
Sources
- CompTIA. (2023). CompTIA Tech+ FC0-U71 V6 certification exam: Exam objectives (Document version 4.0). lecbyo.files.cmp.optimizely.com
- Newgate University Minna. (n.d.). Representing Algorithms II - Pseudocode. elearning.newgateuniversityminna.edu.ng
- Kansas State University (CC 310 textbook). (n.d.). Flowcharts and Pseudocode. textbooks.cs.ksu.edu
- Microsoft Learn. (n.d.). Exercise - Create effective code comments. learn.microsoft.com
- Python Software Foundation. (n.d.). More Control Flow Tools (Python 3.0 tutorial). legacy.python.org
- Microsoft Learn. (n.d.). Documentation comments. learn.microsoft.com
- Microsoft Learn. (n.d.). XML documentation comments. learn.microsoft.com
- Mozilla MDN Web Docs. (n.d.). Object-oriented programming. developer.mozilla.org
- Python Software Foundation. (n.d.). 9. Classes. docs.python.org
- Key terms
- Pseudocode
- A structured, plain-language description of a program's steps that resembles code but is written for people and is not meant to be run by a computer.
- Flowchart
- A diagram of a process in which shaped blocks stand for steps (oval for start and end, rectangle for a process, diamond for a decision, parallelogram for input or output) and arrows show their order.
- Sequence
- The logic structure in which statements run one after another, each once, in exactly the order they are written.
- Branching
- Logic in which a program tests a true-or-false condition and follows one of two or more paths depending on the result; also called selection or a conditional.
- Looping
- Logic in which a block of statements repeats, either a set number of times or until a condition changes; also called iteration.
- Infinite loop
- A loop whose ending condition is never met, often because nothing inside it changes the value being tested, so it repeats until the program is stopped from outside.
- Code comment
- Text inside source code, marked with symbols such as // or #, that the compiler or interpreter ignores and that explains the code to human readers.
- Docstring
- In Python, a string placed as the first statement of a function or class that describes its purpose and can be collected by tools into documentation.
- Class
- In object-oriented programming, a template that defines the properties (also called attributes or fields) and methods that every object made from it will have.
- Encapsulation
- The object-oriented practice of keeping an object's internal data private and letting other code use it only through the object's public methods.
Module 6: Data and Databases
Why data is valuable, what databases do, how relational and non-relational databases are structured, and how to back data up so it can be restored.
Why Data Is Valuable
- Explain why data and information count as business assets, and classify a dataset as critical or non-critical from the consequences of losing or exposing it.
- Follow a data-driven business decision through data capture and collection, data correlation and meaningful reporting, and tell correlation apart from causation.
- Tell data analytics, big data and data monetization apart, and recognize each one in an exam scenario.
Forty-one croissants in the bin
\nAt closing time on a wet Monday in March 2026, Dana Okafor counted 41 unsold almond croissants at the Riverside branch of Northgate Coffee and dropped them in the bin. Northgate is a fictional business, three small coffee shops in one city, and this lesson follows it from start to finish. Dana pays her bakery supplier 90 cents a croissant, so that one evening cost $36.90. The Monday before had gone the same way, and so had the Thursday in between.
\nDana already had the facts that could have prevented it. Her till recorded every sale with a time stamp. A free weather website could tell her when it had rained. She had plenty of data. What she lacked was a way to turn that data into a decision, and that gap is what this part of the Tech+ exam covers.
\nExam objectives: 5.1 Explain the value of data and information.[1] The objective names data and information as an asset, critical versus non-critical data, data monetization, data analytics, Big Data, and data-driven business decisions. It breaks that last item into data capture and collection, data correlation, and meaningful reporting. Each idea comes up below at the point where Dana needs it, and an exam-cue table near the end puts them side by side.
\n\nData versus information, and why both count as assets
\nData is raw recorded facts: a number, a time, a name, a sensor reading. A single piece of data answers no question by itself. Information is data that has been selected, organized and given context so that it answers a question someone actually has.
\n| Raw data | The information it can become |
|---|---|
| 2026-03-09, 16:42, Riverside, item 118, qty 1, 3.40 | One almond croissant sold at Riverside at 4:42 pm for $3.40 |
| About 400 sales lines from Riverside for 9 March | Riverside sold 19 almond croissants that day and had ordered 60 |
| A week of those daily totals, plus a week of city rainfall readings | On rainy days Riverside sells well under half its usual croissants |
Each row takes more work than the one above it: counting, then grouping, then comparing. The last row also combines two datasets that were collected for unrelated reasons. A lot of data's value comes from that kind of combining.
\nWhy call any of this an asset? In business, an asset is something an organization owns that has value and will bring benefit later, such as cash, an espresso machine or a delivery van. The U.S. General Services Administration (GSA) puts data in the same category, stating that data is an asset with value in business and economic terms.[2] The GSA guide also cites an Office of Management and Budget memo, M-13-13, titled Managing Information as an Asset, which directed federal agencies to manage information as an asset throughout its life cycle.[2]
\nData behaves differently from most assets, and those differences explain where its value comes from.
\n- \n
- It is not used up. Dana can sell a croissant only once, but she can read the record of that sale in a thousand reports. \n
- It gains value when combined. Sales records alone say what sold. Sales plus weather can suggest why. \n
- It can lose value with age. Last week's sales help plan next week. Sales from 2019, before Riverside changed its opening hours, may mislead more than they help. \n
- It carries cost and risk. Data has to be stored, backed up and protected, and customer details bring legal duties. An asset that can leak can become a liability. \n
Remember: data becomes valuable when it is turned into information that someone can act on. Calling it an asset means it deserves what other assets get: an inventory, an owner, protection and a budget.
\n\nCritical and non-critical data at Northgate Coffee
\nA coffee shop can open without its spare chairs, but not without its espresso machine. Data divides up the same way. Critical data is data whose loss, corruption or exposure would stop the business working, break a law or contract, or seriously harm people. Non-critical data is useful but replaceable: losing it is an inconvenience, not a crisis. Four questions sort one from the other.
\n- \n
- If this data vanished tonight, could we still operate tomorrow? \n
- Could we recreate it, and how long would that take? \n
- Would exposing it harm a person or break a rule? \n
- Does a law, a tax authority or a contract require us to keep it? \n
Dana asks those questions about everything Northgate stores. She writes the results down as a small data inventory: a list of datasets, each with a location, a rating and a reason.
\n| Dataset | Where it lives | Rating | Deciding reason |
|---|---|---|---|
| Sales and card-payment records | POS cloud service | Critical | Needed for tax returns, refunds and the accounts |
| Loyalty accounts: names, emails, birthdays, allergy notes | Loyalty app provider | Critical | Personal and health-related details; exposure would harm customers |
| Staff payroll and bank details | Payroll service | Critical | Staff must be paid; exposure enables fraud |
| Supplier price lists and order history | Manager's laptop | Critical | Needed to reorder; slow to rebuild |
| Downloaded daily weather figures | Manager's laptop | Non-critical | Can be downloaded again in minutes |
| Temporary log files from the till | Till's local storage | Non-critical | Rebuilt automatically; nobody reads them |
The loyalty row holds personal data, and the exam's acronym list names two kinds of it. Personally identifiable information (PII) is data that identifies a person, such as a name together with an email address. Personal health information (PHI) is health details linked to a person. U.S. health law uses the related term protected health information, and its rules cover settings such as health providers and insurers, not coffee shops. Whichever term applies, Dana's allergy notes are sensitive health-related details. PII and PHI are usually critical because exposing them harms people and can break privacy law. Not every item carries the same risk, though: a staff work email that is already printed in a public directory is low risk. In the European Union, the General Data Protection Regulation (GDPR) sets the rules for collecting and handling personal data. CompTIA's acronym list expands GDPR as General Data Protection Regulations, but the law's own title uses the singular.
\nThe rating decides where money and effort go. Critical data gets frequent backups, encryption, tight access control and a named owner. Non-critical data gets cheaper treatment. The GSA guide makes the same link: it notes that good data governance shapes resourcing decisions according to the business value of each dataset.[2] Lesson 26, on backups, and the security lessons in Module 7 build on these ratings.
\nTwo mistakes are common. The first is forgetting about copies. Suppose Dana exports the loyalty emails to a spreadsheet on her laptop to send a newsletter. That file is as critical as the original and much less protected. The second mistake is confusing criticality with usefulness. The weather download is non-critical because it can be fetched again, yet it is about to solve Dana's croissant problem. Criticality measures the damage caused by losing or leaking data, not how useful the data is for analysis.
\nRemember: classify data by what happens if it is lost or exposed, not by how large or interesting it is, and give every copy the same rating as the original.
\n\nData capture and collection: where Dana's numbers come from
\nData capture is recording a fact at the moment it happens. Data collection is gathering captured data from many places into one place where it can be used. Northgate captures more data than Dana first realized.
\n| Source | What it captures | How and how often |
|---|---|---|
| Point-of-sale (POS) terminal | Every item sold, with price, time and store | Automatically, with each transaction |
| Loyalty app | Who bought, how often, at which store | Customer scans a code at the till |
| Fridge temperature sensor | Milk fridge temperature | An Internet of Things (IoT) device, every 5 minutes |
| Waste sheet | Items thrown away at close | Staff write it on paper once a day, when they remember |
| Weather website | Daily rainfall and temperature | Dana downloads a file once a week |
Analytics products are sold on how many sources they can draw from. Google Cloud lists, as a core cloud analytics feature, the ability to capture and ingest data from websites, ERP and CRM systems, mobile apps and social media platforms.[3] ERP stands for enterprise resource planning, software that runs stock, purchasing and accounts. CRM stands for customer relationship management, software that tracks customers and every contact a business has with them.
\nWhen Dana clicks Export, the POS service gives her a CSV (comma-separated values) file. It is plain text with one record per line, commas between the fields, and a header line that names the fields.
\ndate,time,store,item_id,item_name,qty,unit_price\n2026-03-09,07:58,Riverside,118,Almond croissant,2,3.40\n2026-03-09,08:03,Riverside,201,Flat white,1,3.80\n2026-03-09,08:03,Riverside,118,Almond croissant,1,3.40\n2026-03-09,08:11,Station,118,Almond croissant,3,3.40\n\nThe file is useful only if its reader knows what each column means, what currency the prices are in and which dates it covers. That description is called metadata: data about data. The GSA guide advises publishing every dataset with a clear description in its metadata.[2] One field the guide recommends is how often the data arrives, for example as a one-time batch, every two weeks, or as a real-time stream.[2] Dana's POS feed streams in as sales happen, while her weather file arrives as a weekly batch.
\nCapture is also where data quality is won or lost, because nothing done later can repair a fact that was never recorded properly. Google Cloud's big data guide states that data quality directly affects the quality of decisions, analytics and planning.[4] Northgate has two weak spots. Staff skip the paper waste sheet on busy nights, so the missing entries look like zero waste. The till also has a catch-all button labeled Pastry, misc, which hides croissant sales among the muffins. Programmers have a name for this problem: garbage in, garbage out. Three habits follow from it. Capture automatically where you can. Capture at the right level of detail, with one button per product. And collect only what you have a purpose for, because every extra field, especially a personal one, adds storage, risk and legal duty.
\n\nData correlation: lining up rain and croissants
\nData correlation means comparing two or more datasets to see whether they move together. When one goes up, does the other go up, go down, or stay the same? Dana suspects the weather. She takes the daily croissant totals from the POS export and the daily rainfall from the weather file, and lines them up by date. The date is the shared field that lets two unrelated datasets meet.
\n| Date | Rain (mm) | Sold | Thrown away |
|---|---|---|---|
| Mon 2 Mar | 9 | 21 | 39 |
| Tue 3 Mar | 0 | 52 | 8 |
| Wed 4 Mar | 0 | 55 | 5 |
| Thu 5 Mar | 6 | 24 | 36 |
| Fri 6 Mar | 1 | 58 | 2 |
| Sat 7 Mar | 0 | 60 (sold out) | 0 |
| Sun 8 Mar | 11 | 30 | 30 |
| Mon 9 Mar | 12 | 19 | 41 |
Work through it the way Dana does. First, split the days into two groups. The dry days, with 1 mm of rain or less, are 3, 4, 6 and 7 March. They sold 52 + 55 + 58 + 60 = 225 croissants, an average of about 56 a day. The wet days, with 6 mm or more, are 2, 5, 8 and 9 March. They sold 21 + 24 + 30 + 19 = 94, an average of 23.5. Of the week's 161 wasted croissants, 39 + 36 + 30 + 41 = 146 went in the bin on wet days.
\nThat is a strong correlation. But a correlation says only that two things move together. It does not show that one causes the other. So Dana checks for a hidden third factor. Two of the four wet days were Mondays, and Mondays might be slow anyway. The following Monday, 16 March, was dry, and Riverside sold 49 croissants. A dry Monday sold far more than either wet one, so the day of the week does not explain the drop. Dana also has a plausible mechanism: Riverside sits on a walking path, and walkers stay home in the rain. A believable mechanism plus a check against the obvious alternative is what turns a correlation into a reason to act. Eight days is still a thin sample, so she treats her new rule as a trial and plans to review it after four weeks of fresh data.
\nNow change one input. Dana runs the same comparison for the Station branch, which is next to the train station.
\n| Group | Days | Croissants sold | Average per day |
|---|---|---|---|
| Dry days | 3, 4, 6, 7 March | 41 + 43 + 40 + 44 = 168 | 42 |
| Wet days | 2, 5, 8, 9 March | 45 + 46 + 42 + 43 = 176 | 44 |
At Station the averages differ by two croissants. With four days in each group, that gap could easily be noise, so Dana reads it as no meaningful rain effect and does not invent a reason for it. The rule to order fewer croissants when rain is forecast is therefore right for Riverside and wrong for Station. The weather data and the method are the same, but the decision is the opposite, because the two shops serve different customers. If she had applied Riverside's rule to both shops, Station would have risked selling out on wet mornings.
\nA classic example shows the trap clearly. Ice cream sales and sunburn cases rise together, but ice cream burns nobody: hot, sunny weather drives both. Whenever two measures move together, ask what else could be moving them.
\nRemember: correlation shows that two datasets move together. It does not prove that one causes the other, so check for a third factor, test whether the pattern holds somewhere else, and treat a small sample as a trial.
\n\nMeaningful reporting: one page that changes an order
\nDana's first move was to email the bakery owner Riverside's full POS export for the week. At roughly 400 lines a day for eight days, it came to about 3,200 rows. Nobody read it. A raw export is data, not a report. Meaningful reporting means presenting information so that a specific reader can understand it quickly and act on it. A meaningful report does five things:
\n- \n
- it answers one stated question; \n
- it is written for a named reader, at that reader's level of detail; \n
- it makes a comparison, with last week, a target or another branch, because a number with nothing beside it tells the reader very little; \n
- it states its source and date range, so the reader can judge how far to trust it; \n
- it ends with a recommended action or a decision to be made. \n
Here is the version Dana sent the second time.
\n| Part | Content |
|---|---|
| Question | Why is Riverside throwing away so many almond croissants? |
| Finding | Wet days (6 mm of rain or more) average 23.5 sold out of 60; dry days average 56. 146 of 161 wasted croissants, about $131, fell on 4 wet days |
| Comparison | Station shows no meaningful rain effect (42 dry, 44 wet), so the change applies to Riverside only |
| Recommendation | Trial at Riverside: order 30 when the morning forecast exceeds 5 mm, 60 otherwise; review after 4 weeks |
| Source | POS export and city weather service, 2-9 March and 16 March 2026 |
Check the cost figure: 146 croissants at 90 cents each is $131.40. The whole report fits on one screen, and the owner can approve or reject it in a minute.
\nCharts help when they show a comparison faster than numbers can. Google Cloud's guide says that analyzing and acting on data includes using tools to create visualizations such as charts, graphs and dashboards.[4] A dashboard is a screen of charts that refreshes automatically from live data, while a report is usually a snapshot of a fixed period. For Dana, two bars showing average croissants sold on wet and dry days would make the finding obvious at a glance. Reports stop being meaningful in predictable ways: a chart axis that starts at 40 so that a small dip looks like a collapse, figures with no date range, or vanity metrics, such as total app downloads, that look impressive but do not help anyone make a decision.
\n\nData-driven business decisions: closing the loop
\nA data-driven business decision is a choice based on the evidence in recorded data rather than on habit or gut feeling alone. CompTIA lists capture and collection, correlation and meaningful reporting beneath it, and Dana's story shows why. They are steps in a single loop.
\n- \n
- Ask a question. Why are we throwing away croissants? \n
- Capture and collect. POS sales, the waste sheet and the rainfall figures. \n
- Correlate. Line up sales and rain by date, then check for a third factor. \n
- Report. One page for the owner, ending in a recommendation. \n
- Decide. The owner approves the trial ordering rule for Riverside. \n
- Measure the result. Capture the same data again and see whether the decision worked. \n
Step 6 is the one people skip. Four weeks later, Dana's figures show that wet-day waste at Riverside has fallen from about 36 croissants a day to about 7. On two wet afternoons, though, the branch sold out early. That second finding matters too. It suggests that 30 is slightly too few, so she raises the wet-day order to 35, and the loop runs again. Every decision is a guess that the next round of data will test.
\nBeing data-driven does not mean relying on data alone. Past sales cannot tell Dana that a riverside festival is planned for next Saturday, so her local knowledge still matters. The data narrows the guesswork; it does not replace her judgement.
\nYou will meet bold claims about how much better data-driven firms perform. Google Cloud's big data page, for example, says that 58% of companies that make data-based decisions are more likely to beat revenue targets than companies that do not.[4] Read that figure the way Dana read her croissant table. The passage does not name the study behind it. It comes from a company that sells data tools. Most important, it describes a correlation: firms that invest in data may also have bigger budgets or stronger managers. None of that makes the claim false, but you should treat it as a sales claim, not a measured effect.
\nRemember: a data-driven decision is a loop of question, capture, correlation, report, decision and measurement. The measurement step is what tells you whether the decision was right.
\n\nData analytics: four questions you can ask of data
\nData analytics is the practice of examining data to find patterns, explain them, predict what comes next and recommend what to do. Google Cloud says analytics tools help you identify patterns, make predictions and derive business intelligence (BI) insights.[3] Business intelligence is the broader name for turning an organization's data into reports and insight for decision-makers. Analysts commonly sort analytics into four types according to the question each one answers, and Dana's story contains an example of each.
\n| Type | Question it answers | Northgate example | Typical method |
|---|---|---|---|
| Descriptive | What happened? | Riverside sold 19 croissants on 9 March | Totals, averages, a report |
| Diagnostic | Why did it happen? | Sales fall on wet days because walkers stay away | Correlation, comparing groups |
| Predictive | What is likely to happen? | With 10 mm of rain forecast tomorrow, expect about 24 sales | Trends, statistical or machine learning models |
| Prescriptive | What should we do? | Order 35, not 60 | Rules or optimization built on the predictions |
Each type down the table is harder than the one before, and more valuable. Descriptive work can be a simple sum in a spreadsheet. Predictive work needs enough history to trust a pattern, and it often uses the machine learning tools from Lesson 18. Each type also depends on the ones before it, so a prediction built on a faulty description inherits the faults.
\nAnalytics and reporting are different things. Analytics is the investigation that finds what is worth saying. Reporting presents the result to a reader. Dana's one-page report carries the results of diagnostic and prescriptive analytics, but the report itself is the communication, not the analysis.
\n\nBig data: when the spreadsheet gives up
\nNorthgate's sales for three shops over eight weeks, at roughly 400 lines per shop per day, come to about 67,000 rows (400 times 3 times 56). A spreadsheet handles that without trouble. Now picture a national coffee chain with 2,000 stores. Transactions stream in from every till, the chain's app logs every tap from millions of phones, ovens and fridges report readings every minute, and customers post photos and reviews. That is a different kind of problem.
\nGoogle Cloud defines big data as large and diverse datasets that are huge in volume and keep growing quickly over time.[4] The usual way to describe what makes data big is a set of words starting with V. The original three are volume, velocity and variety. The same Google Cloud page notes three more that are often added: veracity, variability and value.[4]
\n| V | Meaning | National chain example |
|---|---|---|
| Volume | How much data there is | Many terabytes, growing every day |
| Velocity | How fast it arrives and must be handled | Millions of events an hour, analyzed as they arrive |
| Variety | How many different forms it takes | Tables, app click logs, sensor feeds, photos, review text |
| Veracity | How accurate and trustworthy it is | Duplicates, gaps and errors hidden among billions of records |
| Variability | How much its meaning or flow changes over time | Product codes, apps and collection methods change constantly |
| Value | Whether it is worth the cost of keeping and analyzing | Must be proven, because storage and staff are expensive |
Veracity deserves a second look, because more data does not mean better data. Google Cloud warns that big data can be messy, noisy and error-prone, which makes its quality and accuracy hard to control.[4] A billion records with a 5% error rate contain fifty million errors.
\nThe best way to recognize big data is by a symptom rather than a size threshold: the data is too large, too fast or too varied for ordinary tools such as a spreadsheet or a single database server. Google Cloud notes that big data needs big storage, whether in the cloud, on-premises or both.[4] It also needs its processing split across many machines working at once, which is what tools such as the open-source Apache Spark engine do. That is one reason big data work so often runs on the cloud services from Lesson 10: an organization can rent hundreds of machines for an hour instead of buying them.
\nBig data also concentrates risk. Google Cloud points out that because big data holds valuable business and customer information, big data stores are high-value targets for attackers.[4] The thinking about critical data from earlier in this lesson has to grow along with the data.
\n\nData monetization: turning data into money
\nData monetization means generating measurable economic value from data. Amazon Web Services (AWS) uses this framing in its guidance on research data, where generating measurable value from data is called data monetization.[5] Monetization comes in two broad forms.
\nDirect monetization means selling or licensing data, or insights drawn from it, to someone outside the organization. The AWS guidance describes charging for access through either a pay-per-use model or a subscription model as a way to diversify revenue.[5] Pay-per-use charges the buyer each time it queries or downloads the data. A subscription charges a regular fee for ongoing access. For example, a weather company might sell forecasts to farms and airlines, or a national coffee chain might sell hourly foot-traffic counts by neighborhood to a property developer deciding where to build.
\nIndirect monetization means using data inside the business to earn more or spend less. Dana's croissant rule is a small example. In a week with four wet days, cutting waste from about 36 croissants a day to about 7 saves about 116 croissants, or roughly $104 at 90 cents each. That is around $100 a week at one branch. Larger examples include using purchase history to design new products, or spotting fraud sooner. The AWS Cloud Adoption Framework, describing what organizations can gain from cloud data and analytics platforms in general, includes using machine learning to improve forecasting, decision-making and fraud detection.[6] Some writers use the word monetization only for direct sales, while others include both forms. On the exam, if a question describes data producing revenue or savings, monetization is the concept being tested.
\nThis is where the critical-data rules come back. Suppose a marketing firm offers Northgate $500 a month for its loyalty list of names, emails, birthdays and buying habits. That list is PII. Selling it without a lawful basis, such as customers' clear consent, would likely breach privacy laws like the GDPR wherever they apply. It would also destroy customers' trust, which is what made the list valuable in the first place. Selling a figure such as average weekday visits by hour at Riverside, with no individual in it, raises far fewer problems. Even then, rules differ from place to place. Google Cloud notes that processing big data must meet privacy and regulatory requirements, including data localization and data residency laws, which control where data may be stored.[4]
\nRemember: monetization can be direct, by selling or licensing data through a subscription or pay-per-use, or indirect, by using data to cut costs or build new products. Either way, privacy law limits what personal data may be sold.
\n\nExam cues for objective 5.1
\nExam questions on this objective usually describe a situation and ask which concept it shows. Match the wording of the question to the concept, and watch for the pairs that are easy to confuse.
\n| If the question says... | Think | Do not confuse with |
|---|---|---|
| Inventory of datasets, owner, business value, protect it like property | Data and information as an asset | Data monetization, which needs revenue or savings |
| Loss would halt operations, legally required, contains PII or PHI | Critical data | Data that is merely large or interesting |
| Easily recreated, temporary files, convenience only | Non-critical data | Data that is useless for analysis |
| Recorded at the till, sensor readings, web forms, ingesting sources | Data capture and collection | Data analytics, which works on data already captured |
| Compare two datasets, move together, relationship between | Data correlation | Causation, which correlation alone never proves |
| Summary for a manager, answers a question, recommends an action | Meaningful reporting | A raw data export |
| Choice based on evidence rather than intuition, then measured | Data-driven business decision | Big data, which a small business does not need for this |
| Find patterns, explain why, predict, recommend | Data analytics | Reporting, which presents results |
| Too large, fast or varied for traditional tools; volume, velocity, variety | Big data | One large file on one drive |
| Sell, license, subscription, pay-per-use, new revenue from data | Data monetization | Data as an asset, which describes value held, not revenue earned |
Common misconceptions
\n- \n
- More data always means better decisions. Quality matters more than quantity. Dana's eight-row comparison changed an order, while her 3,200-row export changed nothing. Big datasets bring veracity problems that small, well-captured ones avoid. \n
- If two things rise together, one must cause the other. Correlation shows only that they move together. Ice cream and sunburn both follow hot weather, and Riverside's rain effect did not appear at the Station branch. \n
- Critical data means the biggest or most useful data. Criticality is about the consequences of loss or exposure. The weather download was the most useful dataset for the croissant decision and was still non-critical, because it can be downloaded again. \n
- Big data just means a very large file. A 2 TB archive on one drive is large but is not big data. Big data is too large, fast or varied for ordinary tools, and it usually needs processing spread across many machines. \n
- Data monetization means selling customer details. Most monetization is either indirect, such as cutting waste, or sells aggregated data with no individuals in it. Selling PII without a lawful basis is likely to break privacy law. \n
Recap
\n- \n
- Data is raw recorded facts, and information is data organized and given context so that it answers a question. Data counts as an asset because it has business and economic value, can be reused without being used up, and gains value when combined. \n
- Treating data as an asset means keeping an inventory of datasets, each with an owner, a location and a value, and budgeting to protect them. \n
- Data is rated critical by the consequences of losing or exposing it. Payment records, legally required records, and PII and PHI are usually critical, and every copy gets the same rating. Non-critical data is replaceable. \n
- Data capture records a fact as it happens, and data collection gathers captured data in one place. Poor capture, such as skipped entries or catch-all till buttons, cannot be fixed later. \n
- Data correlation lines up datasets on a shared field, such as date, to see whether they move together. It does not prove causation, so check for a third factor, test the pattern in another setting, and treat a small sample as a trial. \n
- A meaningful report answers one question for a named reader, makes a comparison, states its source and date range, and ends with a recommendation. \n
- A data-driven business decision is a loop: question, capture and collect, correlate, report, decide, then measure the result. \n
- The four types of analytics are descriptive (what happened), diagnostic (why it happened), predictive (what is likely) and prescriptive (what to do). Big data is too large, fast or varied for ordinary tools and is described by volume, velocity and variety, plus veracity, variability and value. \n
- Data monetization creates value directly, by selling or licensing data through a subscription or pay-per-use, or indirectly, by cutting costs or building new products. Privacy law limits selling personal data. \n
Sources
- CompTIA. (2023). CompTIA Tech+ FC0-U71 V6 certification exam: Exam objectives (Document version 4.0). lecbyo.files.cmp.optimizely.com
- U.S. General Services Administration Centers of Excellence. (n.d.). Data Governance Management (AI Guide for Government). coe.gsa.gov
- Google Cloud. (n.d.). What is cloud analytics?. cloud.google.com
- Google Cloud. (n.d.). What is Big Data?. cloud.google.com
- Amazon Web Services. (n.d.). Guidance for Research Data Monetization on AWS. docs.aws.amazon.com
- Amazon Web Services. (n.d.). Data monetization - AWS Cloud Adoption Framework: Business Perspective. docs.aws.amazon.com
- Key terms
- Information
- Data that has been selected, organized and given context so that it answers a question someone has, such as a daily sales total rather than individual till records.
- Critical data
- Data whose loss, corruption or exposure would stop an organization operating, break a law or contract, or seriously harm people, such as payment records or customer personal details.
- Non-critical data
- Data that is useful but replaceable, such as temporary log files or reference files that can be downloaded again, so losing it is an inconvenience rather than a crisis.
- Data capture
- Recording a fact at the moment it happens, for example a point-of-sale terminal logging each item sold or a sensor logging a temperature reading.
- Data correlation
- Comparing two or more datasets, usually lined up on a shared field such as date, to see whether their values move together; a correlation alone does not show that one causes the other.
- Meaningful reporting
- Presenting information so a specific reader can understand and act on it: one stated question, a comparison, a named source and date range, and a recommended action.
- Data analytics
- Examining data to describe what happened, diagnose why it happened, predict what is likely to happen and prescribe what to do.
- Big data
- Datasets too large, fast-arriving or varied for ordinary tools such as a spreadsheet, commonly described by volume, velocity and variety, plus veracity, variability and value.
- Data monetization
- Generating measurable economic value from data, either directly by selling or licensing it through subscription or pay-per-use, or indirectly by using it to cut costs or create products.
What a Database Does, and When a Spreadsheet Is Not Enough
- Explain what a database and a database management system do, and identify the records, fields and keys in a table.
- Tell apart the four database uses, create, import or input, query and report, from the wording of a scenario.
- Compare a flat file with a database on multiple concurrent users, scalability, speed and variety of data, and decide which one a situation needs.
- Explain data persistence and compare cloud with local, and online with offline, ways of making data available.
A spreadsheet called inventory_FINAL_v3
Hillside Cycles is a fictional shop with a very common problem. It has two stores and keeps its whole sales and stock history in one spreadsheet, inventory_FINAL_v3.xlsx, on a shared drive. By October 2026 the file holds 4,812 rows, one per sale, across 11 columns. One Saturday at 9:00 the file shows 3 chain tools in stock. Marco, at the south store, copies the file to his laptop and works in that copy all day. Priya, at the north store, sells two chain tools from the shared file, which now shows 1. Marco sells one from his copy, which now shows 2. At closing time he copies his version back over the shared file. Priya's two sales vanish. The stock column says 2 chain tools are on the shelf. There are none.
Open the file and you find a second, quieter kind of damage. Here are four of its rows:
| Date | Customer | Phone | Item | Qty | Price | Store |
|---|---|---|---|---|---|---|
| 2026-10-04 | Joy Okafor | 555-0142 | Chain tool CT-5 | 1 | 24.00 | North |
| 2026-10-04 | J. Okafor | 555-0142 | Inner tube 29in | 2 | 9.50 | South |
| 2026-10-11 | Joy Okafor | 555-0199 | Brake pads BP-2 | 1 | 18.00 | North |
| 2026-10-11 | Sam Reyes | 555-0107 | Chain tool CT-5 | 1 | 24.00 | South |
Is J. Okafor the same person as Joy Okafor? Which phone number is current? To answer a simple question such as how much Joy has spent this year, someone has to read every row and guess. Microsoft's help pages for its desktop database product, Microsoft Access, describe this path. Many databases begin as a list in a spreadsheet or word processor, and as the list grows bigger, redundancies and inconsistencies begin to appear.[1]
So the shop has an argument. Dana, the owner, says the spreadsheet has worked for six years and the fix is a house rule: one person updates stock, and nobody works in copies. Luis, the bookkeeper, says the shop has outgrown a single file and needs a database. Each has a case. This lesson gives you the vocabulary and the criteria to decide between them, which is what the exam asks of you.
Exam objectives: CompTIA Tech+ FC0-U71 objective 5.2, Explain database concepts and the purpose of a database.[2] It covers database uses (create, import or input, query, reports), flat file versus database (multiple concurrent users, scalability, speed, variety of data), database records, storage (data persistence) and data availability (cloud versus local, online versus offline).
What a database is, and the DBMS that runs it
A database is an organized collection of data stored electronically. Amazon Web Services (AWS) describes it as a collection that lets you read, write, delete and update data.[3] A shoebox of receipts is data. A database is data arranged so that a computer can find, change and combine any piece of it on request.
The data does not manage itself. A database management system (DBMS) is the software that manages the information in a database.[3] Think of the database as the books in a library and the DBMS as the librarian. The librarian decides where each book goes, keeps the catalogue current, checks who may enter the rare-books room, and stops two people from walking off with the same copy. Well-known DBMS products include Microsoft Access on a desktop and server systems such as MySQL, PostgreSQL and Microsoft SQL Server.
Nearly everything you do with a database comes down to four basic operations: create, read, update and delete, shortened to CRUD.[3] Adding Joy Okafor as a new customer is a create. Looking up her phone number is a read. Changing it is an update. Removing a discontinued part is a delete. The DBMS carries out all four, and it can refuse one when a rule says no.
Now the thing a database is contrasted with. A flat file stores records in one plain table, with no links to other tables and no rules beyond what a person types. A single spreadsheet sheet is a flat file in practice. So is a comma-separated values (CSV) file: plain text with one record per line and commas between the fields. Look back at the Hillside rows. Every sale repeats the customer's name and phone number, because a flat file has nowhere else to put them. That repetition is where the contradictions come from.
A database usually holds several tables. Access stores all of them, together with its queries, forms and reports, in a single file with the extension .accdb. That breaks a tempting rule of thumb. A database is not defined by how many files it uses. It is defined by structure: separate tables for separate subjects, links between them, and rules the software enforces.
In short: a database is organized, electronically stored data; a DBMS is the software that manages it through create, read, update and delete; and a flat file is a single table with no links and no rules enforced by software.
Database records: rows, fields and the key that names each one
Inside a table, each row is a database record and each column is a database field. A record holds everything the table stores about one thing, such as one customer or one order.[4] A field holds one item of information about that thing, such as a phone number or a price. An old library card catalogue is a good picture: each card is a record, and each line on the card (author, title, shelf number) is a field.
A well-built table gives every record a primary key: a field whose value is unique to that record and never reused. A customer number such as C107 makes a good primary key. Names make poor ones, because two people can share a name and one person can spell theirs three ways, as the Hillside rows show.
A primary key from one table can be stored in another table to link the two. In the second table it is called a foreign key.[5] Here is the Hillside data rebuilt as two related tables:
| CustomerID (primary key) | Name | Phone |
|---|---|---|
| C101 | Sam Reyes | 555-0107 |
| C107 | Joy Okafor | 555-0199 |
| SaleID (primary key) | SaleDate | CustomerID (foreign key) | PartNo | Qty | Price | Store |
|---|---|---|---|---|---|---|
| S4810 | 2026-10-04 | C107 | CT-5 | 1 | 24.00 | North |
| S4811 | 2026-10-04 | C107 | IT-29 | 2 | 9.50 | South |
| S4812 | 2026-10-11 | C107 | BP-2 | 1 | 18.00 | North |
| S4813 | 2026-10-11 | C101 | CT-5 | 1 | 24.00 | South |
Joy now exists once, as record C107. Her three sales point to her by key rather than by a typed name, so "J. Okafor" cannot appear. When her phone number changes, you update one field in one record, and every sale, query and report sees the new number at once. In the flat file you would have to find and fix every row she appears in, and sooner or later you would miss one.
Data kept in tables of rows and columns, linked by keys, is a relational database. It is the most common kind and the kind Access builds. Lesson 25 compares it with other database structures.
Four things you do with a database: create, import, query, report
The exam lists four uses of a database. They come roughly in this order in a database's life, and each has its own job.
Create. Creating a database means building its structure before real data goes in: the tables, the fields in each table, each field's data type (text, number, date, true or false, from Lesson 20) and the keys. Create has a second, smaller meaning too: adding one new record, the C in CRUD. A question about setting up tables and fields means the first sense. A question about adding one customer means the second.
Import and input. These are the two ways data gets in. Input is entry one record at a time, usually by a person typing into an on-screen form. A form can show only some fields and allow only some actions, which helps keep entries correct. Import brings data in bulk from another source, such as a spreadsheet, a CSV file or another database. Access can import the data, making its own copy, or link to it where it already lives without moving it.[6] Here is a fictional CSV file waiting to be imported into the Customers table:
CustomerID,Name,LoyaltyPoints
C101,Sam Reyes,120
C107,Joy Okafor,340
C112,Ana Lima,n/a
The third record will cause trouble. LoyaltyPoints should be a number, and n/a is text. A DBMS that enforces data types will reject or flag that value, which is the point: bad data is caught at the door. Access has a related trap. When you paste rows into a table, it sets each field's data type from what is in the first row of each column.[6] Clean the source data before you bring it in.
Query. A database query is a question you put to the database, or an instruction to change it. Microsoft lists what queries do: answer simple questions, calculate, combine data from different tables, and add, change or delete data.[4] A query that only retrieves data is a select query; one that changes data is an action query. Many database systems write queries in SQL (Structured Query Language). Here is the question the spreadsheet could not answer, how much each customer has spent this year, written in SQL against the two example tables, followed by its output:
SELECT Customers.Name, SUM(Sales.Qty * Sales.Price) AS Spent
FROM Sales
JOIN Customers ON Sales.CustomerID = Customers.CustomerID
WHERE Sales.SaleDate >= '2026-01-01'
GROUP BY Customers.Name;
Name Spent
Joy Okafor 61.00
Sam Reyes 24.00
Read it line by line. SELECT names what you want back. FROM and JOIN say which tables to use and how they connect: through the CustomerID both share. WHERE keeps only this year's sales. GROUP BY adds up the rows for each customer. Joy's total is 24.00 plus 2 times 9.50 plus 18.00, which is 61.00. The query reads the data and changes nothing.
Reports. A report presents data to people. It lays out, formats and summarizes information, usually for printing or sharing.[4] Here is a fictional monthly report Luis might hand Dana:
HILLSIDE CYCLES: SALES BY STORE, OCTOBER 2026
Store Sales Items Revenue
North 212 341 9,804.50
South 187 290 8,112.00
Total 399 631 17,916.50
Printed 2026-11-01 Page 1 of 1
The line between a query and a report trips people up. A query fetches or changes data. A report takes data, often a query's result, and dresses it for a reader. If a question stresses formatting, totals, printing or a summary for managers, it means a report. If it stresses finding, filtering, matching or calculating, it means a query.
In short: create builds the structure, input and import bring data in one record at a time or in bulk, a query asks questions of the data or changes it, and a report formats results for people to read.
Dana's case: why the spreadsheet survives
A spreadsheet costs nothing extra, since the shop already owns one, and every employee can use it without training. It is flexible: any cell can hold anything, a new column takes two seconds, and formulas and charts are right there. A database asks you to design tables, choose data types and pick keys before you store anything, and someone has to build the forms and queries. For a list of 300 rows that one person maintains, that design work costs more than it saves.
Spreadsheets have also moved in Dana's direction. Cloud spreadsheets let several people edit the same file at the same time, with each person's changes appearing for the others. That alone would have saved Priya's sales, because Marco would have had no private copy to paste back.
Her last point: starting with a spreadsheet is not a trap. A database table looks like a sheet, and Microsoft notes that it is usually quite easy to import a spreadsheet into a database table.[1] If the shop outgrows the file in two years, the move costs days, not the shop's history.
Luis's case: concurrent users, scalability, speed and variety
Luis answers that the difference between a spreadsheet and a database is not how the data looks but how it is organized and policed. The exam tests that difference on four criteria:
| Criterion | Flat file (one sheet or CSV) | Database managed by a DBMS |
|---|---|---|
| Multiple concurrent users | Built for one editor; co-editing shows everyone's typing but enforces no rules across users | Built for many users at once, with locking, transactions and per-user permissions |
| Scalability | Whole file sits on one machine; slows as it grows; fixed row limit per sheet | Can move to a bigger server or spread across many servers |
| Speed | A search checks row after row | Indexes jump straight to matching records |
| Variety of data | Text and numbers in a grid | Typed fields, related tables, and non-relational models for documents, key-value pairs and more |
Multiple concurrent users. Concurrent means at the same time. AWS says a DBMS can support tens of thousands of concurrent users.[3] One tool it uses is locking, which prevents conflicts when many people work at once.[3] Replay Saturday in a database. Priya's two sales and Marco's one each try to reduce the stock of part CT-5. The DBMS locks the stock record while each update runs, so each one starts from the true count: 3, then 1, then 0. If a fourth customer tries to buy one, a rule that stock cannot fall below zero can refuse the sale at the till, instead of the count quietly going wrong. A cloud spreadsheet would show every edit, but it does not know that two rows describe the same physical tool, and it has no rule that records the sale and reduces the stock as one step.
Concurrency also means deciding who may do what. A DBMS can grant each user, role or group its own operations, so some staff can read records but cannot create or change them.[3] A shared spreadsheet usually offers edit or view for the whole file, not "may add sales but may not change prices".
Scalability. Scalability is how well a system copes when data or users grow. A spreadsheet program loads the whole file into one computer's memory, and an Excel worksheet stops at 1,048,576 rows. A database can grow in two directions. It can scale vertically, by giving its server more CPU (central processing unit) power or more RAM (random-access memory).[5] It can also scale horizontally, by spreading data and work across several servers. Think of a bigger kitchen versus more kitchens.
Speed. Finding Joy's purchases among 4,812 rows is quick enough. Among 4.8 million rows, checking every row, which is called a full scan, is slow. A DBMS uses indexes to cut down the need for full-table scans.[3] A database index works like the index at the back of a book: instead of reading every page for the word "brake", you look it up and go straight to pages 41 and 207. The database keeps a sorted list of, say, CustomerID values with the location of each matching record, so a lookup jumps straight to the right records.
Variety of data. A spreadsheet stores text and numbers in a grid. Real data is messier: photos, scanned forms, sensor readings arriving every second, records whose shape differs from one to the next. A relational database handles much of this by adding related tables. Non-relational databases, also called NoSQL databases, go further and use a range of data models beyond rows and columns.[5] A key-value database, for example, suits jobs such as session stores and shopping carts.[7] A document database stores each record as a self-contained document whose fields can differ from record to record. Here is a simplified, fictional example of one customer's bike stored as a document:
bike B-2231
model: Trail 29
photos: front.jpg, side.jpg, frame-number.jpg
service history:
2026-03-14 brake bleed
2026-09-02 new chain and cassette
rider notes: prefers firm suspension
Try to fit that into one spreadsheet row. The service history is a list of unknown length, and the photos are files, not text. You end up with columns named Service1, Service2 and Service3, and the fourth service has nowhere to go. Both kinds of database solve this. A relational database adds a child table, ServiceHistory, with one row per service and the bike's key stored as a foreign key, so a bike can have any number of services. A document database keeps the whole history inside the bike's document. Only the flat file has no good answer.
In short: a database beats a flat file when several people write at once, when data grows large, when lookups must stay fast, and when data comes in more shapes than a grid of text and numbers.
Data persistence: why the sale is still there tomorrow
Data persistence means data outlives the program and the session that created it. When the till closes, the computer restarts or the power fails, the record is still there. Persistence depends on non-volatile storage, such as the solid-state drives and hard disk drives from Lesson 7, because RAM loses its contents when the power goes.
A DBMS protects persistence with the database transaction, a group of changes treated as one unit. Recording a sale is really two changes: add a row to Sales, and take one off the stock count. A DBMS uses commit and rollback, so a transaction's changes are either finalized or undone if something fails.[3] Once the transaction commits, it is permanent. If the power fails halfway through, the half-finished change is rolled back. You never end up with a sale recorded but the stock not reduced.
Compare a desktop spreadsheet without autosave. A sale typed into a cell lives only in the program's memory until someone presses Save, so a laptop battery that dies first takes the sale with it. And Save writes the whole file, so the last person to save wins, which is exactly what happened to Priya. Cloud spreadsheets autosave, which fixes the first problem but not the second: there is still no transaction tying the sale to the stock count.
Persistence is not the same as backup. A persistent record still sits on one drive, and that drive can fail, be encrypted by ransomware or be dropped. Only a separate, tested copy protects against that, and Lesson 26 covers backups that actually restore.
Data availability: cloud or local, online or offline
Data availability asks a practical question: can the people who need the data reach it when they need it? The exam splits it into two separate choices.
Cloud versus local is about where the database runs. A local database runs on hardware you own: an Access file on an office personal computer (PC), or a database server in a back room, often called on-premises. You control it, it does not depend on an internet link, and you are responsible for the hardware, the updates and the backups. A cloud database runs on a provider's servers and is reached over the internet. A DBMS can copy data to several servers and spread read and write requests among them, which keeps it responsive and guards against losing data when one server fails.[3] Running a database across several machines like that is the kind of work a cloud provider takes off your hands. When the provider also runs and patches the database software, that is an example of Platform as a Service (PaaS) from Lesson 10. The price is a monthly bill and a dependence on both the provider and your internet connection.
Online versus offline is about whether a user is connected to the database right now. Online means a live connection: changes go straight into the shared database and other users see them immediately. Offline means working without a connection, either against a local database or against a local copy that an app syncs with the main database later. Offline work keeps people productive in a basement with no signal, but it brings back the Saturday risk: two people can change the same record while apart, and the sync has to resolve the conflict.
| Arrangement | Where the data lives | Works without internet? | Who looks after hardware and backups |
|---|---|---|---|
| Local desktop file (Access .accdb) | One PC, perhaps shared on the office network | Yes | You |
| Cloud database, used online | Provider's data centers | No | Mostly the provider |
| Offline-capable app with cloud sync | A copy on the device plus the cloud database | Yes, until it needs to sync | You for the device, the provider for the cloud |
What settles the argument: one decision, run twice
Dana and Luis are not really disagreeing about tools. They are disagreeing about facts: how many people write at once, how much data there is, and how connected it is. So turn the criteria into questions and answer them with the shop's numbers. Here is one fictional decision run twice, with every fact held fixed except one.
The fixed facts: two stores, about 5,000 sales a year, customers recorded by name for a loyalty card, and only text and numbers to store.
Run 1: one writer. Both tills write sales on paper slips, and Dana types them all into the spreadsheet herself each evening. Concurrent writers: one, so nobody can overwrite anybody. Volume: 5,000 rows a year, far below the sheet's row limit, and a lookup at that size is instant. Variety: text and numbers fit the grid. Relationships: customers link to many sales, which is a real point for Luis, but one careful typist using a customer number column can keep names consistent. Cost of a mistake: Dana spots it the next morning. The spreadsheet is defensible here. A database would be real work spent on problems that are mostly not there yet.
Run 2: change one input. Each till now records sales directly into the shared file as they happen. Volume, relationships and variety are exactly as before. The only change is that two people write at the same time during opening hours. That single change flips the answer. The Saturday overwrite becomes an everyday risk, and the mild problem from Run 1, inconsistent customer names, gets worse, because two people now type names with nobody checking. A database with locking and transactions fixes exactly the problem that changed. Relational databases suit data that is predictable in size, structure and access frequency,[5] and sales, customers and parts are about as predictable as data gets.
The availability choice follows from where the writers are. Two stores need one database both can reach, which points to a cloud database or a server reachable from both sites. If the tills must keep selling when the internet drops, the shop can choose a till app that records sales offline and syncs later, and accept that the sync must handle conflicts.
Exam cues: the pairs people confuse
| The question says | It points to | Often confused with |
|---|---|---|
| Design the tables, fields and data types | Create | Input, which adds records to an existing structure |
| Load thousands of rows from a CSV file or old spreadsheet | Import | Input, which is one record at a time through a form |
| Filter, search, calculate, combine tables | Query | Report |
| Formatted summary, totals, print, distribute to managers | Report | Query, which fetches data but does not format it |
| Many employees update the same data at once | Multiple concurrent users | Scalability |
| Data grows from thousands to millions of records | Scalability | Speed, although growth often causes slowness |
| Images, documents, records of differing shape | Variety of data | Scalability |
| Data survives the program closing or the power failing | Data persistence | Backup, which is a separate copy |
| Reachable from anywhere; the provider runs the hardware | Cloud | Online, which describes the connection, not the location |
| Must keep working with no internet connection | Offline, usually with local storage | Local, which says where data lives, not whether you are connected |
Common misconceptions
- "A database is just a big spreadsheet." A table looks like a sheet, but a database splits data into related tables linked by keys, and its DBMS enforces data types, permissions, locking and transactions. Size is not what makes the difference.
- "One file means a flat file." An Access .accdb file is one file that holds many related tables, queries, forms and reports. Flat means one table with no links, however the data is stored on disk.
- "A query and a report are the same thing." A query retrieves or changes data. A report formats and summarizes data for people to read, often using a query's results.
- "If it is in the database, it is backed up." Persistence means committed data survives a restart. It does not protect against a failed drive, deletion or ransomware. Only a separate, tested copy does that.
- "Cloud means always available." A cloud database is out of reach whenever your internet connection is down, while a local database works without one. Cloud and local describe where the data lives; online and offline describe whether you are connected.
What to carry forward
- A database is organized, electronically stored data. A DBMS is the software that manages it through create, read, update and delete (CRUD).
- A record is one row about one thing, and a field is one column. A primary key uniquely identifies each record; the same value stored in another table is a foreign key that links the two tables.
- Create builds the structure, import loads data in bulk, input enters it one record at a time, a query retrieves or changes data, and a report formats and summarizes data for people.
- A flat file is a single table with no enforced links or rules, such as a CSV file or one spreadsheet sheet. An Access .accdb file is a full database even though it is one file.
- A DBMS supports multiple concurrent users with locking and per-user permissions, so two people updating the same record do not overwrite each other.
- Databases scale vertically with more CPU and RAM on one server, or horizontally across several servers. Indexes keep lookups fast by avoiding full-table scans.
- Variety of data favours databases: related tables for repeating, predictable data, and non-relational models such as key-value and document for carts, sessions and records of differing shape.
- Data persistence means committed data survives the program closing or the power failing. A transaction either commits fully or rolls back. Persistence is not a backup.
- Cloud versus local is where the database runs. Online versus offline is whether the user is connected right now. Offline work needs local storage and later syncing, which can cause conflicts.
Sources
- Microsoft Support. (n.d.). Database basics. support.microsoft.com
- CompTIA. (2023). CompTIA Tech+ FC0-U71 V6 certification exam: Exam objectives (Document version 4.0). lecbyo.files.cmp.optimizely.com
- Amazon Web Services. (n.d.). What is a Database Management System (DBMS)?. aws.amazon.com
- Microsoft Support. (n.d.). Video: Get to know database objects. support.microsoft.com
- Amazon Web Services. (n.d.). What's the Difference Between Relational and Non-relational Databases?. aws.amazon.com
- Microsoft Support. (n.d.). Basic tasks for an Access desktop database. support.microsoft.com
- Amazon Web Services. (n.d.). Choosing an AWS database service. aws.amazon.com
- Key terms
- Database
- An organized collection of data stored electronically, arranged so that software can find, add, change and delete any part of it on request.
- Database management system (DBMS)
- Software that manages a database: it stores and retrieves data, enforces rules and permissions, handles many users at once, and runs queries. Examples include Microsoft Access, MySQL and PostgreSQL.
- Flat file
- Data kept as a single table with no links to other tables and no rules enforced by software, such as a CSV text file or one spreadsheet sheet.
- Record
- One row in a database table, holding all the stored information about one thing, such as one customer or one order.
- Field
- One column in a database table, holding a single type of information, such as a phone number or a price, for every record.
- Primary key
- A field whose value is unique to each record in a table and identifies that record; when the same value is stored in another table to link the two, it is called a foreign key.
- Query
- A request to a database that retrieves, filters, combines or calculates data, or that adds, changes or deletes it; often written in SQL.
- Report
- Database output that formats and summarizes data for people to read, print or distribute, such as monthly sales totals by store.
- Data persistence
- The property that stored data survives after the program closes or the power fails, because committed changes are written to non-volatile storage.
- Scalability
- How well a system copes as data or users grow, either by adding CPU and RAM to one server (vertical) or by spreading the work across several servers (horizontal).
Tables, Keys and Documents: Database Structures Compared
- Classify data as structured, semi-structured or non-structured by where its description lives and what software can read in it.
- Identify the schema, tables, rows (records), fields (columns), primary keys and foreign keys in a relational design, and predict which writes its constraints will accept or refuse.
- Explain referential integrity and what NO ACTION and CASCADE do when a referenced row is deleted.
- Choose between a relational, key/value or document database for a given scenario and justify the choice.
One order, stored three ways
Order 1042 is a made-up example of something every shop records many times a day. On 3 November 2026, a customer named Priya Shah buys two bicycle inner tubes at $8.75 each and one tire lever at $6.00, a total of $23.50. Here is that one order stored three ways.
Version 1: a row in a table. The shop's database has a table named orders. Every order gets the same four columns, and those columns were chosen long before Priya walked in.
| order_id | customer_id | order_date | total |
|---|---|---|---|
| 1042 | 7 | 2026-11-03 | 23.50 |
Version 2: a JSON document. JSON (JavaScript Object Notation) is a text format in which every value carries its own label. The whole order, including its line items and an optional gift note, is stored as one bundle that describes itself.
{
"order_id": 1042,
"order_date": "2026-11-03",
"customer": { "name": "Priya Shah", "email": "priya@example.com" },
"items": [
{ "sku": "TUBE-700", "qty": 2, "price": 8.75 },
{ "sku": "LEVER-01", "qty": 1, "price": 6.00 }
],
"gift_note": "Happy riding!"
}Version 3: a photograph. The shop assistant also takes a phone photo of the handwritten receipt. The file is receipt_1042.jpg, about 2.4 MB of pixels.
All three versions hold the same facts. What differs is how much the computer knows about them. In version 1, the database knows that 23.50 is an amount of money and 7 is a customer number, because a definition written in advance said so. In version 2, the labels travel inside the data, so the next order could add a field or leave one out. In version 3, a person can read everything, but the computer has only a grid of colored dots. Now ask which orders this month included a tire lever. Version 1 answers at once. Version 2 can answer if the database is able to look inside documents. Version 3 needs a person, or an AI (artificial intelligence) tool that reads images, to go through every photo.
Exam objectives: 5.3 Compare and contrast various database structures.[1] The bullets cover three things: structured, semi-structured and non-structured data; relational databases, with their schema, tables, rows or records, fields or columns, primary keys, foreign keys and constraints; and two kinds of non-relational database, key/value and document. Each of them comes back to the question the three versions raise: how much does the system know about the shape of its data?
Structured, semi-structured and non-structured data
Microsoft's Azure training on storage design sorts data into three classes: structured, semi-structured and unstructured.[2] CompTIA's objective says non-structured. Vendors and most documentation say unstructured. Both words name the same class, so treat them as synonyms on the exam.
Structured data fits a shape agreed in advance. Microsoft describes it as data stored in a relational format with a shared schema, usually in a database table with rows, columns and keys.[2] The important word is shared. Every row of the orders table has the same columns, with the same data types. The description of the data lives in one central place, and every row follows it.
Semi-structured data is organized too, but the organization is carried by labels inside each record rather than by a central blueprint. In Microsoft's description, it contains tags that show how the data is organized.[2] The standard examples are HTML (Hypertext Markup Language) web pages, JSON files and XML (Extensible Markup Language) files. Look again at version 2. The label qty tells you that 2 is a quantity. Nothing forces the next order to use the same labels, so a later document could add delivery_window or drop gift_note.
Non-structured data, usually called unstructured data, has no internal fields that a database can query. Microsoft calls it the least organized class: a mix of information without a clear relationship.[2] Its examples include photos, video, audio, Word documents, slide decks and PDF (Portable Document Format) files. Unstructured does not mean worthless. A recorded support call is full of information. It just is not split into named, typed pieces. Software has to pull the information out first, for example with speech-to-text or OCR (optical character recognition, which turns pictures of text into real text), before anyone can search it by content. In practice, unstructured files usually live on file shares or in cloud object storage rather than inside a database.
| Question | Structured | Semi-structured | Non-structured (unstructured) |
|---|---|---|---|
| Where is the shape described? | In a central schema, written before data arrives | In labels or tags inside each record | Nowhere a database can read |
| Can two records differ in shape? | No: every row has the same columns | Yes: one record may have a field another lacks | There are no fields to compare |
| Typical formats | Database tables, CSV (comma-separated values) files with fixed columns | JSON, XML, HTML | Photos, video, audio, Word files, scanned PDFs |
| How you find things | Filter on any column: every order over $20 | Filter on a label: items whose sku is LEVER-01 | Search file names, or extract the text first |
| Usual home | Relational database | Document or key/value database, or plain files | File shares and object storage |
Classifying the bike shop's files
You classify a file by what a machine can read in it, not by how tidy it looks to you. Try it on four of the bike shop's files (all fictional).
| File | Class | Reason |
|---|---|---|
| sales_2026-10.csv: a header line order_id,order_date,total and 412 order lines | Structured | Every line has the same three fields in the same order, so it loads straight into a table |
| supplier_feed.json | Semi-structured | Each product carries its own labels: lights include lumens, tires include width_mm |
| newsletter_nov.docx | Non-structured | Paragraphs of prose with no business fields to query |
| receipt_1042.jpg | Non-structured | Pixels: the total exists only as a picture of handwriting |
Now change one input. The owner prints the October sales report, and her accountant scans it back in as sales_2026-10_scan.pdf. To your eye it is still a neat table of 412 orders. To the computer, the PDF now holds a picture of a table, so the file is non-structured. If OCR is run on it to rebuild a CSV file, the extracted copy is structured again. The facts never changed. The classification changed twice, each time because of what software could read.
You might object that a .docx file is zipped XML underneath. It is, but that XML describes formatting, such as which words are bold, not business fields such as which number is the order total. The content still counts as unstructured.
The upshot: ask where the description of the data lives. In a central schema, the data is structured. In labels inside each record, it is semi-structured. If nothing in it can be queried by a machine, it is non-structured.
Relational databases: schema, tables, rows and columns
A Relational database stores structured data in tables and links the tables through shared key values. The model comes from Edgar F. Codd, an IBM researcher, who published it in 1970. In his mathematics a relation is a table, and that is where the name comes from, not from the relationships between tables. Products you may meet include Microsoft SQL Server, PostgreSQL, MySQL, MariaDB and Oracle Database. Nearly all of them are managed with SQL (Structured Query Language).
A relational database starts with a Database schema: the blueprint that names each table, lists its columns, gives each column a data type, and states the rules the data must follow. Here is a fictional schema for the bike shop, written in SQL. Tech+ does not ask you to write SQL, but you should be able to read what a schema says.
CREATE TABLE customers (
customer_id INTEGER PRIMARY KEY,
full_name VARCHAR(100) NOT NULL,
email VARCHAR(255) NOT NULL UNIQUE,
city VARCHAR(60)
);
CREATE TABLE orders (
order_id INTEGER PRIMARY KEY,
customer_id INTEGER NOT NULL REFERENCES customers (customer_id),
order_date DATE NOT NULL,
total NUMERIC(8,2) NOT NULL CHECK (total >= 0)
);Read it one piece at a time, and the objective's paired names fall into place.
- Each CREATE TABLE makes a table: a set of rows that all describe the same kind of thing. Here there are two, customers and orders. Relational theory calls a table a relation.
- Each line inside the brackets defines a column, which the exam also calls a field: one property that every row has, with one data type. email is a column. VARCHAR(100) means text of up to 100 characters. NUMERIC(8,2) means a number with up to eight digits, two after the decimal point.
- Once data is loaded, each row, also called a record, is one complete entry: one customer or one order.
- Every word after a data type is a rule. full_name cannot be empty. email cannot be empty or repeat. city is optional. In orders, customer_id must match a real customer, and total can never be negative. The database checks these rules on every insert and every update.
Here is the schema with some data loaded.
| customer_id | full_name | city | |
|---|---|---|---|
| 5 | Marcus Lee | marcus@example.com | Leeds |
| 7 | Priya Shah | priya@example.com | Bristol |
| 8 | Priya Shah | p.shah@example.net | Glasgow |
| order_id | customer_id | order_date | total |
|---|---|---|---|
| 1041 | 5 | 2026-11-02 | 49.00 |
| 1042 | 7 | 2026-11-03 | 23.50 |
| 1043 | 5 | 2026-11-04 | 12.00 |
The row 7, Priya Shah, priya@example.com, Bristol is one record. The column city is one field. The single value where they meet, Bristol, is sometimes loosely called a field too, as on a paper form. On the exam, read field as column unless a question clearly means one value.
Because the schema comes first, a relational database checks data as it is written. A row with text where a number belongs is turned away. That gives you consistent data, but it costs flexibility. When the shop starts selling helmets that come in sizes, someone must change the schema (in SQL, with ALTER TABLE) before any sizes can be stored. That rigidity is the main reason document databases exist.
The upshot: the schema is the blueprint. A table holds one kind of thing, each row (record) is one instance of it, and each column (field) is one property with one data type.
Primary keys: one identifier per row
Look at customers 7 and 8. Both are named Priya Shah. If an order said only Priya Shah, nobody could tell which one bought the inner tubes. A Primary key fixes this. It is a column, or a group of columns, whose value identifies exactly one row.
The PostgreSQL manual states the rule precisely: a primary key constraint is a combination of a unique constraint and a not-null constraint.[3] Unique means no two rows share the value. Not null means every row must have a value. A table can have at most one primary key.[3] Relational theory says every table should have one.
Why are both rules needed? A unique constraint on its own still allows empty (null) values, so by itself it does not give every row an identifier.[3] A table can have several UNIQUE columns, such as email, but only one key is named the primary key.
| Candidate | Unique? | Always present? | Stable over time? | Verdict |
|---|---|---|---|---|
| full_name | No: two Priya Shahs | Yes | No: names change | Rejected |
| Yes, today | Usually | No: people change addresses, and a couple may share one | Risky | |
| city | No | No | No | Rejected |
| customer_id, assigned by the database | Yes, by design | Yes | Yes: never changed or reused | Chosen |
A key the database makes up, such as customer_id, is called a surrogate key. It means nothing outside the database, and that is exactly why nothing in the outside world can force it to change. Stability matters because other tables copy the key's value, as the next section shows. Change a key and every copy has to change with it.
Now change the input. Suppose the table holds countries instead of customers. ISO 3166 two-letter codes such as GB, FR and JP are unique, every country has one, and they rarely change. Here a real-world value, called a natural key, works well. The choice depends on the data, not on a habit of numbering rows.
Some tables need two columns working together. In a course_enrollments table, a student appears many times and a course appears many times. Only the pair (student_id, course_id) is unique, so the pair becomes the primary key. A primary key made of more than one column is called a composite key.
Foreign keys: how one table points at another
Order 1042 does not repeat Priya's name, email and city. It stores only her number, 7. That number is a Foreign key: a column holding another table's primary key value, so that a row in one table can point at a row in another. MariaDB's documentation sums it up as the primary key in a foreign table.[4] Microsoft defines a foreign key as a column or set of columns used to establish and enforce a link between the data in two tables.[5]
Why point with the primary key instead of, say, a first name? Because a name can match several customers, and then nobody knows which one made the sale. A foreign key must reference columns that are either a primary key or covered by a unique constraint.[3] A pointer aimed at a non-unique column could land on several rows, and the link would be ambiguous again.
Notice the pattern. customer_id is unique in customers, where it is the primary key, but it repeats freely in orders. Marcus Lee, customer 5, appears on orders 1041 and 1043: one customer, many orders. This one-to-many pattern is the most common relationship in relational databases, and it is why a foreign key column almost never carries a UNIQUE rule.
A table can have more than one foreign key, and that is how many-to-many relationships are built.[3] One order can contain many products, and one product can appear on many orders. The shop also has a products table, not shown here, whose primary key is sku. To connect orders and products, it adds a third table, order_items, with one foreign key pointing to orders and another pointing to products. Its primary key is the composite pair (order_id, sku).
| order_id | sku | qty |
|---|---|---|
| 1042 | TUBE-700 | 2 |
| 1042 | LEVER-01 | 1 |
Now try to break it. A clerk enters order 1044 for customer_id 9, but there is no customer 9. Because the foreign key is in place, the database refuses the row. Microsoft's own example works the same way: a salesperson ID cannot go into the order table unless it already exists in the salesperson table.[5]
Referential integrity: when a pointer has nothing to point at
Referential integrity means every foreign key value points at a row that really exists. MariaDB's definition: if a foreign key holds a value, that value refers to an existing record in the related table.
MariaDB's documentation shows what goes wrong without it.[4] A lecturer table lists Anne Cohen (code 1), Leonard Clark (2) and Vusi Cave (3). A separate course table records which lecturer code teaches each course. Anne Cohen leaves the institution. Someone deletes her row from the lecturer table, and nothing touches the course table. These are two independent tables; the only thing linking them is the lecturer code.
| Code | First name | Surname |
|---|---|---|
| 2 | Leonard | Clark |
| 3 | Vusi | Cave |
| Course title | Lecturer code |
|---|---|
| Introduction to Programming | 1 |
| Information Systems | 2 |
| Systems Software | 3 |
Anyone who now looks up who teaches Introduction to Programming follows code 1 to a record that no longer exists. MariaDB calls this poor data integrity.[4] Rows left pointing at nothing are often called orphaned records.
A foreign key constraint prevents orphans. When you define it, you also choose what happens if someone tries to delete or change a parent row that other rows still point at. Two choices matter most:
- NO ACTION (refuse). SQL Server raises an error and rolls back the delete or update on the parent row.[5] Anne Cohen's row stays until her course is reassigned.
- CASCADE (carry the change through). The matching rows in the referencing table are updated or deleted along with the parent.[5] Deleting Anne Cohen would also delete the Introduction to Programming row.
Most systems also offer SET NULL, which keeps the child row but empties its pointer, and SET DEFAULT, which resets the pointer to a default value. An empty foreign key is allowed and simply means no relationship exists.[4] A new course with no lecturer assigned yet is a sensible example.
| Attempt | With NO ACTION | With CASCADE |
|---|---|---|
| Delete customer 5, Marcus Lee, who has orders 1041 and 1043 | Error. Marcus and both orders stay | Marcus, order 1041 and order 1043 are all deleted |
| Delete customer 8, the Glasgow Priya Shah, who has no orders | Customer 8 is deleted | Customer 8 is deleted |
The second row is the changed input that flips the result. When no rows point at the parent, the delete rule makes no difference; it only matters when children exist. CASCADE is convenient but dangerous for business records. Deleting Marcus would quietly erase $61.00 of sales history the shop needs for its accounts. For financial data, refusing the delete is usually the safer design.
The upshot: a primary key identifies a row in its own table. A foreign key copies that value into another table to point back at the row. Referential integrity means every pointer lands on a real row, and the delete rule (refuse, cascade or set null) decides what happens when someone tries to remove the row being pointed at.
Constraints: rules checked on every write
A data type already limits what a column accepts: a DATE column will not take the word Tuesday. But types are blunt. No standard type accepts only positive prices, or only quantities from 1 to 99. A Database constraint is a rule written into the schema that the database enforces itself. If a write would break a constraint, the database raises an error and stores nothing.[3] Primary keys and foreign keys are constraints too; Microsoft calls them two types of constraints used to enforce data integrity.[5]
| Constraint | Rule it enforces | Bike shop example |
|---|---|---|
| NOT NULL | Every row must have a value in this column | full_name |
| UNIQUE | No two rows may share a value in this column or group of columns | |
| PRIMARY KEY | UNIQUE plus NOT NULL, at most one per table | customer_id in customers |
| FOREIGN KEY | The value must exist in the referenced table, or be null if nulls are allowed | customer_id in orders |
| CHECK | The value must make a true/false test come out true | total >= 0 |
| DEFAULT (often listed alongside) | Fills in a value when a write leaves the column out; it adds data rather than blocking it | order_date set to today |
Here is the bike shop schema at work. Each write runs in order against the data shown earlier, and each refused write breaks exactly one rule.
| Attempted write | Rule it meets | Result |
|---|---|---|
| Customer 9, email ana@example.com, no full_name supplied (null) | NOT NULL on full_name | Refused |
| Customer 10, Ana Ruiz, email marcus@example.com | UNIQUE on email | Refused: customer 5 uses it |
| Order 1044, customer 8, dated 2026-11-05, total -5.00 | CHECK (total >= 0) | Refused |
| Customer 7, Jo Park, email jo@example.com | PRIMARY KEY on customer_id | Refused: 7 is taken |
| Order 1045, customer 9, dated 2026-11-05, total 15.00 | FOREIGN KEY to customers | Refused: customer 9 was never created |
| Order 1046, customer 8, dated 2026-11-05, total 31.25 | All rules pass | Accepted |
One detail in the first row: no value at all (null) is not the same as an empty piece of text. A full_name of two quote marks with nothing between them is a value, so NOT NULL would let it through. Blocking empty text needs a CHECK rule as well.
Now change one input: remove UNIQUE from the email column and replay the second write. This time it succeeds. The shop now has two accounts using marcus@example.com, and a password-reset email cannot tell which account it is for. One missing rule leaves a data problem that lasts.
Why put rules in the database instead of in the shop's website code? Because the schema applies to every route the data takes in: the website, the till app, a bulk import from a spreadsheet, and a technician typing a fix by hand. A check written into one app protects only that app.
The upshot: data types limit the kind of value a column accepts, and constraints limit which values are allowed. NOT NULL, UNIQUE, PRIMARY KEY, FOREIGN KEY and CHECK each refuse a specific kind of bad write, every time and from every source.
Non-relational databases: key/value stores
Non-relational databases, often called NoSQL databases (usually read as not only SQL), give up the fixed table-and-schema model in return for flexibility, speed, or both. The exam names two families.
A Key-value database (written key/value in the objectives) stores pairs. The key is a unique name. The value is whatever you keep under that name: a number, a string, a list, or a whole JSON blob. The core operations are few and fast: put a value under a key, get the value for a key, delete a key. In the basic model, the database treats each value as a single unit and does not search by its contents. Some products, Redis being a well-known example, add operations for certain value types, such as adding to a list or increasing a counter, but lookup is still by key.
Think of a coat check. You hand over a coat and get ticket 214. Later you show ticket 214 and get your coat back. The attendant never needs to know what is in your pockets. That is the whole model: you find things by key only.
KEY VALUE
session:8f3a2c {"user": 7, "signed_in": "2026-11-10T09:14"}
cart:7 ["TUBE-700", "TUBE-700", "LEVER-01"]
setting:store_open_hour "09:00"
login_attempts:203.0.113.25 3This fictional listing shows the typical jobs: login sessions, shopping carts, app settings and counters. In each, the program always knows the exact key it wants. When the website needs Priya's cart, it asks for cart:7 and gets the whole value in one step, with nothing to join or filter. Because each key stands alone, the data can also be spread across many servers by key.
Now flip the question. The marketing team asks how many carts contain LEVER-01 right now. A key/value store cannot search by contents, so a program must fetch every cart and unpack each one. The design that made the first question instant makes this one slow. Key/value stores also have no foreign keys, so nothing stops cart:9 from existing for a customer who does not.
The upshot: choose a key/value database when every read is give me the value for this exact key. Do not choose one when people need to search by what is inside the values.
Document databases
A Document-oriented database (the objectives say document database) stores data as documents, usually JSON or a JSON-like format, grouped into collections. A collection plays roughly the role of a table, and a document the role of a row. Unlike a key/value store, it understands the fields inside each document, so it can search and index them. Unlike a relational table, it does not require every document in a collection to have the same fields. MongoDB is a well-known example.
The bike shop's product catalog shows why this helps. Tires and lights share little beyond a name and a price.
{ "_id": "TIRE-700x28", "type": "tire", "name": "Road tire 700x28",
"price": 34.00, "width_mm": 28, "valve": "presta" }
{ "_id": "LIGHT-F400", "type": "light", "name": "Front light 400",
"price": 42.00, "lumens": 400, "battery": "USB-C rechargeable",
"modes": ["steady", "flash", "eco"] }A relational design would need either one products table with columns for width_mm, valve, lumens, battery and modes, most of them empty in any given row, or a separate table for each product type. The document database stores each product as it is, and it can still find all lights with lumens over 300 because it reads inside the documents. When helmets arrive, the shop simply starts saving helmet documents with a sizes field. No schema change is needed.
Document databases also let you embed related data. Version 2 of order 1042 keeps the customer's name and the line items inside the order document, so one read returns the whole order. The cost is copying. If Priya changes her email, every document that embedded the old address still holds it. Links between documents are usually not enforced the way foreign keys are, so by default nothing blocks an order that names a deleted customer. Some products let you add optional validation rules.
NoSQL does not mean no structure. A document has named fields, nested objects and lists. The difference is where that structure is described: inside each document, not in a central schema. That is what makes the data semi-structured.
Relational, key/value and document databases side by side
| Feature | Relational | Key/value | Document |
|---|---|---|---|
| Unit of storage | Row in a table | Value stored under a key | Document in a collection |
| Schema | Fixed, enforced when data is written | None: the value is stored as a unit | Flexible: each document describes itself |
| Ways to find data | Any column, and joins across tables | The key | The id or any field inside the document |
| Relationships | Foreign keys, enforced | None | Embedding or stored ids, usually not enforced |
| Typical uses | Orders, accounts, inventory, payroll | Sessions, carts, caches, settings | Product catalogs, user profiles, content |
| Weak spot | Rigid when records vary | Cannot search by content | Copied data, weaker integrity across documents |
Exam questions describe a situation and expect you to spot the structure. These cue words point to an answer, alongside the thing people confuse it with.
| If the question stem says | Think | Do not confuse with |
|---|---|---|
| rows and columns, shared schema, fixed fields | Structured data, relational database | Semi-structured, which has labels but no shared schema |
| tags, labels, JSON, XML, HTML, self-describing | Semi-structured data | Non-structured, which has no labels at all |
| photos, audio, video, scanned pages, free text | Non-structured (unstructured) data | Structured, even if the scanned page looked like a form |
| blueprint, defines tables, columns and data types | Schema | Table, which holds the data the schema describes |
| uniquely identifies each record, cannot be null | Primary key | Unique constraint, which allows nulls and can appear many times |
| links to another table, references, repeats across rows | Foreign key | Primary key of the same table |
| value must exist in the other table, orphaned records | Referential integrity, enforced by a foreign key constraint | NOT NULL, which only requires that some value is present |
| must be greater than, only allow values between | Check constraint | Data type, which cannot express ranges |
| look up by one identifier, session, cache, very fast | Key/value database | Document database, which adds searching inside the data |
| records with different fields, nested data, query any field | Document database | Key/value database, which cannot search by contents |
Common misconceptions
- Relational means the tables have relationships. The name comes from Codd's mathematical term relation, which means a table. Relationships between tables exist, built from foreign keys, but they are not the source of the name.
- Unstructured data is messy or worthless. A video or a recorded call can be very valuable. Unstructured only means there are no internal fields a database can query until software extracts them.
- A foreign key has to be unique. The primary key it points to is unique. The foreign key usually repeats, because one customer has many orders.
- A UNIQUE column is the same as a primary key. A unique constraint allows nulls, and a table can have many of them. A primary key is unique and not null, and a table has at most one.
- NoSQL databases have no structure. Documents have named fields and nesting, and key/value stores have strictly unique keys. What they lack is a central schema enforced on every write.
- If it looks like a table, it is structured. A scanned picture of a table is non-structured until OCR turns it back into fields.
What to remember
- Data is structured when one shared schema defines every record, semi-structured when labels or tags inside each record describe it (JSON, XML, HTML), and non-structured, or unstructured, when nothing inside it can be queried (photos, audio, video, scanned PDFs).
- Classification depends on what software can read: a scanned image of a table is non-structured until OCR extracts its contents.
- A schema is the blueprint of a relational database: its tables, their columns, each column's data type, and the constraints.
- A table holds one kind of thing. A row is a record, one instance of that thing. A column is a field, one property with one data type.
- A primary key is unique and never null and identifies exactly one row. A table has at most one, though it may span several columns as a composite key.
- A foreign key holds another table's primary key value. It may repeat and may be null, and referential integrity means every non-null value matches a real row.
- Constraints (NOT NULL, UNIQUE, PRIMARY KEY, FOREIGN KEY, CHECK) are schema rules the database enforces by refusing any write that breaks them.
- When a referenced row is deleted, NO ACTION refuses the delete with an error, and CASCADE deletes the dependent rows too.
- Key/value databases fetch a value by its unique key very quickly but do not search by what is inside values. Document databases store self-describing JSON-like documents whose fields can vary and can be searched.
Sources
- CompTIA. (2023). CompTIA Tech+ FC0-U71 V6 certification exam: Exam objectives (Document version 4.0). lecbyo.files.cmp.optimizely.com
- Microsoft Learn. (n.d.). Design for data storage. learn.microsoft.com
- PostgreSQL Global Development Group (hosted by MIT SIPB). (n.d.). 5.3. Constraints. stuff.mit.edu
- MariaDB. (n.d.). Relational databases foreign keys. mariadb.com
- Microsoft Learn. (n.d.). Primary and foreign key constraints. learn.microsoft.com
- Key terms
- Structured data
- Data that follows one shared schema decided in advance, so every record has the same named, typed fields, as in a relational database table.
- Semi-structured data
- Data organized by labels or tags carried inside each record, such as JSON, XML or HTML, so records can differ in which fields they contain.
- Non-structured (unstructured) data
- Data with no internal fields a database can query, such as photos, audio, video, prose documents and scanned pages, until software extracts its content.
- Schema
- The blueprint of a relational database: the tables, each table's columns, each column's data type, and the constraints the data must obey.
- Primary key
- A column or group of columns whose value is unique and never null, identifying exactly one row in its table; a table has at most one.
- Foreign key
- A column that stores the primary key value of a row in another table, linking the two tables; its values may repeat and may be null.
- Referential integrity
- The guarantee that every non-null foreign key value points at a row that actually exists in the referenced table, so no records are orphaned.
- Constraint
- A rule in a database schema, such as NOT NULL, UNIQUE, PRIMARY KEY, FOREIGN KEY or CHECK, that the database enforces by refusing any write that would break it.
- Key/value database
- A non-relational database that stores values under unique keys and retrieves them very quickly by key; in the basic model it does not search by the contents of the values.
- Document database
- A non-relational database that stores self-describing documents, usually JSON-like, in collections; documents may have different fields, and the database can search inside them.
Backups That Actually Restore
- Build a backup inventory that lists what data exists, where each item actually lives, and what the business cannot run without.
- Tell a file backup from a system backup, and choose the right one for a given failure such as one deleted file or a dead drive.
- Compare local storage (SD card, flash drive, external hard drive) with cloud storage as a backup location, and check a setup against the 3-2-1 rule.
- Plan and check a restore: partial or full, back to the original place or to a different one, with a realistic restore time worked out from the data size and the transfer speed.
Fernhill Grounds and the drive that was always plugged in
At 8:05 on a Monday morning, the bookkeeper at Fernhill Grounds, a fictional four-person landscaping firm, turns on the office's desktop personal computer (PC). Every spreadsheet, invoice and job-site photo now ends in a new extension, .locked, and a text file on the desktop asks for payment in exchange for the key. This is Ransomware: malicious software that encrypts your files and then sells you the way back. Fernhill would not be unusual. CISA, the US Cybersecurity and Infrastructure Security Agency, cites Verizon's 2025 Data Breach Investigations Report, where ransomware played a part in 44 percent of the breaches investigated.[1]
Fernhill had a backup. A 2 terabyte (TB) external hard drive sat on the desk, plugged into a Universal Serial Bus (USB) port day and night, and every night a job copied the Documents folder onto it. Here is what the backup software's log showed. The log is a fictional example, but the layout is typical:
Fictional example: backup log on the Fernhill office PC
Job: Nightly-Docs
Source: Documents folder on drive C:
Target: external hard drive, drive E:
Date Time Result Files Errors
2026-03-12 23:00 Completed 1,214 0
2026-03-13 23:00 Completed 1,219 0
2026-03-14 23:00 Completed 1,219 0
2026-03-15 23:00 Completed 1,221 0
Last test restore: never
Every line says Completed, and none of it helped. Three separate failures sank Fernhill. Each one matches a part of this lesson.
- The copy was not separate. The PC treated the external drive as just another drive, E:, so the ransomware encrypted it along with C:.
- The copy covered the wrong things. The accounting program kept its data in its own folder outside Documents, so the nightly job never touched it. Nothing captured Windows, the installed programs or their settings either.
- Nobody had ever restored anything. The log proved that copying happened. It never proved that anything could come back.
Ransomware is only one way to lose data. CISA's list also includes system failures, accidental deletion and natural disasters, and any of them can stop a business.[1] CISA also warns that recovering without backups can take weeks or months, and may be impossible.[1] Below, you will rebuild Fernhill's plan one piece at a time: what to copy, where to keep it, and how to prove it comes back.
Exam objectives: CompTIA Tech+ FC0-U71, objective 5.4, "Explain basic data backup concepts."[2] The objective lists the data you back up (file backups and system backups), restoring data, and where the copy lives. A copy can be stored locally, on a Secure Digital (SD) card, a flash drive or an external hard drive, or it can be kept in cloud storage.
What turns a copy into a backup
CISA defines a backup as a secure copy of critical data. The copy is kept apart from the main systems, so that after an attack, a deletion, a failure or a disaster you can restore the data and get back to work.[1] Two words in that definition do most of the work: separately and restore. A copy that sits next to the original and dies with it is not a backup. A copy you cannot get back is not one either.
A simple test sorts real backups from false comfort. Name an event that would destroy the original. Then ask whether the same event would also destroy the copy. Here is how common hiding places do against four events:
| Where the copy is | Accidental deletion | Internal drive dies | Ransomware on the PC | Theft, fire or flood |
|---|---|---|---|---|
| A second folder on the same internal drive | Yes, if you notice in time | No | No | No |
| External drive that is always plugged in | Yes | Yes | Often no: the malware can reach it | No, if it sits beside the PC |
| External drive unplugged between backups, same room | Yes | Yes | Yes, if it was unplugged during the attack | No |
| External drive kept at another site | Yes | Yes | Yes | Yes |
| Cloud backup service that keeps older versions | Yes | Yes | Usually, by restoring a version from before the attack | Yes |
| Cloud sync folder and nothing else | Only if a recycle bin or version history catches it | Yes | Risky: encrypted files can sync over good ones | Yes |
The last row needs explaining, because people confuse File synchronization with backup more than anything else in this topic. A sync service keeps two places identical. That is exactly what you want when you edit a file on your laptop and open it on your phone. It is exactly what you do not want when you delete a folder by mistake, because the deletion is copied to the other side as faithfully as an edit. Microsoft's OneDrive folder backup shows how closely the two ideas are tied. OneDrive offers to "back up" your Desktop, Documents and Pictures folders, and Microsoft explains that if you later stop, the files already backed up stay in the OneDrive folder and disappear from the folder on your device.[3] In other words, those folders now live in OneDrive. That is useful protection against a dead laptop. Against a mistaken deletion or ransomware, though, the protection comes from whatever recycle bin or version history the service keeps, and those have time limits you should look up for your own account.
So what?: a copy counts as a backup only if the event that destroys the original leaves the copy alive, and only if you can actually restore from it. Test any setup by naming the event first and checking the copy second.
Deciding what data to back up
Fernhill's second failure was about scope, and it belongs to the part of objective 5.4 labeled simply Data. Before you choose a tool or a drive, you need a list of what you are protecting. CISA's advice to small businesses starts there: take an inventory of the important information on your network.[1] It adds that a simple spreadsheet is enough to track what you are backing up.[1]
CISA then points you to sensitive and business-critical data first.[1] Its examples include customer and client records, employee and HR information, financial and payroll data, emails, website and operational databases, and configuration files and software settings.[1] That last item is easy to forget, because settings do not look like documents. Yet a rebuilt computer without its settings can take hours to make usable again. Finally, rank the list. CISA says to identify the data the business cannot operate without, such as proprietary research, development files or financial records, and to protect those first.[1]
Here is what that inventory might look like for Fernhill, written after the attack. It is a fictional example:
| Data | Where it actually lives | What losing it means | Priority | Covered by the old nightly job? |
|---|---|---|---|---|
| Invoices and quotes (spreadsheets) | Documents folder | Cannot bill customers | High | Yes |
| Accounting data | The accounting program's own data folder on drive C: | Cannot pay staff or file taxes | Highest | No |
| Job-site photos | Pictures folder, copied from a camera's SD card | No proof of finished work in a dispute | Medium | No |
| The mail provider's servers, plus a copy on the PC | Lost customer conversations | High | No, though the provider holds a copy | |
| Windows, programs, printer and email settings | System drive C: | A day or more of rebuilding | High | No |
The column that matters most is the second one. Programs often save their data outside the Documents folder, and a backup that copies only the default folders misses that data without showing any error. Check each program's settings to see where it saves, and add that folder to the backup. The third column then tells you whether a file backup is enough or whether you also need a system backup, which is the next split.
So what?: a backup plan starts with a written list of what exists, where each item really lives, and what the business cannot run without. Anything missing from the list is missing from the backup.
File backups and system backups
The objective's first split is about what you copy.
A file backup copies chosen files and folders: documents, photos, spreadsheets, email archives. Windows File History is a typical tool. Microsoft notes that it automatically backs up all your libraries, such as Documents, Pictures, Videos and Music.[4] It keeps saving copies to an external drive or a network location.[4] A file backup is small, quick to run, and good for getting one lost file back. What it does not contain is the operating system (OS), the installed applications or their settings.
A system backup copies everything needed to rebuild the computer: the OS, applications, settings and data files. People often call it a System image, because it captures the whole drive as one restorable unit. Apple's Time Machine shows a backup that reaches well beyond documents. Apple says it automatically backs up apps as well as music, photos, email and documents, to a USB drive or another external storage device.[5] Apple also says a Time Machine backup can restore any or all of your files, to the same Mac or to a different Mac.[5] Being able to put everything onto a replacement Mac is what makes it useful after a computer dies. Apple's page does not describe Time Machine as a drive image, though, so treat it as an example of backing up more than files, not as the definition of a system backup.
| Question | File backup | System backup |
|---|---|---|
| What it copies | Selected files and folders | Operating system, applications, settings and files |
| Typical size | Small to medium | Large: roughly the used space on the drive |
| Best restore | One file, one folder, or an earlier version of a document | The whole computer onto a new or wiped drive |
| After the internal drive dies | Reinstall the OS and every app, re-enter license keys, redo settings, then copy files back | Restore the image and start the computer back up |
| Main blind spot | Anything stored outside the chosen folders | Bulky and slower to make, so it may run less often |
Worked example, run 1. On Thursday afternoon the Fernhill bookkeeper saves a quote spreadsheet over an older one by mistake. It is now Friday. The computer works fine. Only one file is wrong. Which kind of backup gets her out of trouble? A file backup that keeps versions: she opens Wednesday's version of the folder and takes back the one file. A system backup could also do it, but rolling the whole computer back to Wednesday would throw away Thursday's other work. Using it would be like replacing a car to fix a flat tire.
Worked example, run 2: one input changes. Now the office PC's Solid-state drive (SSD) fails completely, and a new, empty drive goes in. With only a file backup, the technician installs Windows, then the accounting program, then the design software, finds each license key, rebuilds printer and email settings, and only then copies the files back. That can take most of a day, and it fails outright if a license key has gone missing. With a recent system backup, the technician restores the image onto the new drive and the PC comes back as it was on the night of the backup. Then only files changed since that night need a file backup. The changed input, what failed, flips the answer. A lost file calls for a file backup. A lost machine calls for a system backup.
That is why careful setups usually run both: a frequent file backup for everyday mistakes and a less frequent system backup for disasters. A tool such as Time Machine, which keeps apps as well as files on an hourly schedule, covers much of both jobs at once.
How backup software decides what to copy each time
Copying 400 gigabytes (GB) every night would be slow and would fill drives quickly, so backup tools usually copy only what changed. Three methods are worth knowing. They are not named in objective 5.4, but you will meet them on almost every backup settings screen.
| Method | What each run copies | Backup speed | What a restore needs |
|---|---|---|---|
| Full | Everything in scope, every time | Slowest | Just that one backup |
| Incremental | Only what changed since the last backup of any kind | Fastest | The last full backup plus every incremental after it, in order |
| Differential | Everything changed since the last full backup | In between, getting slower each day | The last full backup plus the latest differential |
Time Machine shows the incremental idea at work. Apple warns that the first backup may take a while. After that, Time Machine copies only the files that changed since the previous backup, so later backups go faster.[5] So if a first backup takes six hours and the next one takes four minutes, nothing is broken. You are looking at incremental copying.
Good tools also keep versions, meaning earlier states of the same file, and a retention rule decides how many to keep. Time Machine's default schedule is a clear example of retention:[5]
| How far back | What is kept |
|---|---|
| The past 24 hours | One backup per hour |
| The past month | One backup per day |
| Earlier months | One backup per week |
There is a catch: when the backup disk fills up, the oldest backups are deleted.[5] A small backup disk therefore gives you a short history, and a short history matters. Ransomware or a slowly corrupting file can go unnoticed for days, and by the time you look, every version you still have may already be damaged. Size also matters for whole-machine backups. Apple recommends a backup device with at least twice the storage capacity of the Mac. For example, a Mac with 1 TB of storage should ideally have a 2 TB backup disk.[5]
Finally, the schedule has to run without anyone remembering it. CISA's advice is to choose a backup solution that runs automatically and regularly.[1] A backup that depends on someone remembering to start it on Friday stops happening the first busy Friday.
So what?: incremental copying keeps nightly backups fast, versions let you step back past a mistake, and retention decides how far back you can step. A full disk quietly shortens that history.
Stored locally or in cloud storage
The objective's next split is about where the copy lives. A backup stored locally sits on a device you can touch: an SD card, a USB flash drive, an External hard drive, or a network drive in the same building. A backup in Cloud storage sits on a provider's servers and travels over your internet connection. Neither is better in every way. Each is strong exactly where the other is weak.
| Question | Stored locally | Cloud storage |
|---|---|---|
| Restore speed | Fast: limited by the drive and its port | Limited by your internet download speed |
| Works with no internet? | Yes | No |
| Survives fire, flood or theft at the site? | No, unless it is taken off-site | Yes: the copy is already elsewhere |
| Cost pattern | Buy the device once, replace it when it wears out | Usually a monthly or yearly subscription that grows with the data |
| Who holds the data | You | The provider, under its terms and its security |
| Typical weak point | Left plugged in, dropped, lost or stolen with the computer | Account takeover, sync mistakes, and slow restores of large data |
CISA's advice is to combine on-site and remote backups, which protects against threats, hardware failures and physical damage.[1] The local copy gets you back to work fast after a dead drive. The cloud copy is still there after the building burns down.
Local media: SD card, USB flash drive and external hard drive
The exam names three local devices. They differ in size, durability and how easily they get lost.
A Secure Digital card, usually called an SD card, is a small removable flash memory card built to standards set by the SD Association. The Association does not make or sell cards. It writes the standards that competing manufacturers follow so that their cards and devices work together.[6] Cards come in a range of capacity and speed classes, including SDHC (Secure Digital High Capacity) and SDXC (Secure Digital eXtended Capacity) and their smaller microSD versions.[6] You will find SD cards in cameras, drones, some laptops and many phones and tablets. Be careful about which role a card is playing. The card inside a camera holds the original photos. It becomes part of a backup only when there is a second copy somewhere else. As a backup medium, an SD card works for a small extra copy, but it is tiny, easy to lose, and holds less than a drive.
A USB flash drive (thumb drive) is flash memory with a USB connector. It needs no power supply or cable, which makes it handy for carrying a copy of a few important folders home at the end of the day. The same pocket size makes it easy to lose. Encrypt it if it carries anything sensitive, and do not trust a single cheap flash drive as your only backup.
An External hard drive is a Hard disk drive (HDD) in its own case. It connects by USB or by Thunderbolt, a faster connection standard found on Macs and many Windows laptops. Of the three devices, it gives the most capacity for the money, which makes it the usual target for Time Machine, File History and system images. Because a hard disk has spinning platters and moving heads, a drop while it is running can damage it. External SSDs do the same job faster and cope better with knocks, but cost more per terabyte.
| Device | Typical backup role | Strengths | Watch out for |
|---|---|---|---|
| SD card | Small extra copy; original storage in cameras and drones | Tiny, light, fits many devices | Easily lost; small capacity; often mistaken for a backup when it is the original |
| USB flash drive | Carrying a few critical folders off-site | Pocket-sized, needs no power cable | Easily lost or stolen; encrypt it; avoid relying on one |
| External hard drive | Main local backup: file history, system images | Large capacity at low cost per terabyte | Damage from drops; ransomware if left plugged in; theft or fire with the PC |
So what?: pick local media by how much it must hold and where it will be kept. External drives carry the bulk, flash drives and SD cards carry small copies, and none of them protect you while they sit plugged in beside the computer they back up.
The 3-2-1 rule, applied to Fernhill
CISA calls the 3-2-1 backup rule a trusted guideline.[1] Each number answers a different failure:
- 3 copies of important files.[1] In practice that means the original plus two backups, so one bad backup is not the end.
- 2 different types of storage media, CISA's example being a hard drive and the cloud.[1] Then one kind of fault cannot take out every copy.
- 1 copy off-site, away from the business location.[1] Then a fire, flood or burglary leaves something behind.
CISA adds protections for the backups themselves: physical security, encryption, and offline copies.[1] An offline copy is one that is not connected to the network or the computer, so malware cannot reach it. That last protection is the one Fernhill was missing.
Here is Fernhill's setup measured against the rule, and then a redesign:
| Check | Before | After |
|---|---|---|
| What is copied | Documents folder only | Nightly system backup of the whole PC, plus hourly file versions of Documents, Pictures and the accounting data folder |
| Copies | 2 (original plus one drive) | 4 (original, external drive A, external drive B, cloud backup) |
| Media types | 1 (hard disk) | 2 (hard disk and cloud storage) |
| Off-site copy | None | Cloud backup, plus drive B kept at the owner's home |
| Offline copy | None: drive always connected | Drives A and B swapped each Friday; the drive not in use stays unplugged |
| Encryption | None | Both drives and the cloud backup encrypted, with the password stored in the owner's password manager and a sealed paper copy |
| Tested restore | Never | One file every month; a full restore to a spare drive every quarter |
Two judgment calls sit inside that redesign. Swapping two drives keeps one unplugged and away from the office at any moment, which covers ransomware and fire at once. Keeping the encryption password in two places matters because, as Apple warns about encrypted Time Machine backups, you need that password to restore files later.[5] An encrypted backup without its password is as gone as an encrypted original.
Restoring data: partial, full, and somewhere safe
Restoring data means copying data from a backup back to where it can be used. It is the only step that proves the backup worked. CISA tells businesses to test their backup procedure and make sure the team can restore data quickly, both fully and partially.[1] It also says to be sure you can roll back data at least seven days if needed.[1] The words fully and partially point to two kinds of restore:
- Partial restore: one file, one folder or one earlier version. This is the everyday restore after a mistake.
- Full restore: the whole system or the whole data set, usually after a dead drive, a stolen laptop or ransomware. You may need to start the computer from recovery media or a recovery environment and point it at the backup.
Here is a second, separate fictional example, this time with Windows File History set to save a version every hour. On 19 March at 14:30, the bookkeeper overwrites a quote in the Quotes folder. Microsoft's steps for getting it back: open File Explorer, go to the folder that held the file, right-click the folder and choose Restore previous versions, then pick a version from the list.[4] Microsoft's general tip is to choose a version from before the loss. If a file was deleted today, for example, choose yesterday's version of the folder, which should still contain it.[4] The version list for the Quotes folder might look like this:
| Name | Date modified | Location |
|---|---|---|
| Quotes | 2026-03-19 16:00 | File History |
| Quotes | 2026-03-19 15:00 | File History |
| Quotes | 2026-03-19 14:00 | File History |
| Quotes | 2026-03-19 13:00 | File History |
The overwrite happened at 14:30, so the 15:00 and 16:00 versions already contain the mistake. The 14:00 version is the newest one that still holds the good file. Before restoring, she can preview a version to check it. Then comes the decision that catches people out. A plain Restore puts the old version in place of the current one. Microsoft's warning is blunt: the replacement cannot be undone.[4] If there is any chance the current file holds something worth keeping, restore to a different location instead, using Restore to..., and compare the two.[4]
A full restore needs more planning, and two numbers help. The Recovery point objective (RPO) is how much recent data you can afford to lose, measured in time. With nightly backups, the worst case is close to a day of work. The Recovery time objective (RTO) is how long you can afford to be down while the restore runs. CISA tells businesses to refine both through scheduled recovery tests until they meet the business's needs.[1] If Fernhill cannot lose more than an hour of invoicing, nightly backups miss the RPO. If it must be invoicing again by noon, a cloud-only restore of hundreds of gigabytes may miss the RTO, as the next section shows.
So what?: a backup is only as good as a restore you have actually done. Restore single files to a different location when in doubt, practice a full restore on spare hardware, and keep the encryption password where the restore team can find it.
How long will the restore take? A worked calculation
This is where the units from earlier in the course pay off. Storage is sold in bytes, such as gigabytes (GB) and megabytes (MB). Connection speeds are quoted in bits, such as megabits per second (Mbps). One byte is 8 bits.
Run 1: restoring from cloud storage. Fernhill's PC holds 400 GB, and the office internet connection downloads at 100 Mbps. Ignoring overhead, convert to gigabits (Gb), then to megabits (Mb), then divide:
Step 1 Bytes to bits: 400 GB x 8 = 3,200 Gb
Step 2 Gigabits to megabits: 3,200 Gb x 1,000 = 3,200,000 Mb
Step 3 Divide by line speed: 3,200,000 Mb / 100 Mbps = 32,000 seconds
Step 4 Seconds to hours: 32,000 / 3,600 = about 8.9 hours
Nearly nine hours is the best case. Real connections rarely hold their full rated speed, and some providers may limit download speed. If you skip step 1 and treat 100 Mbps as 100 megabytes per second, you get about 67 minutes, which is wrong by a factor of 8.
Run 2: one input changes. Now restore the same 400 GB from a local external drive. Assume, as an example, that the drive and its USB port keep up 150 MB per second. Real drives vary, so check your own.
400 GB = 400,000 MB
400,000 MB / 150 MB per second = about 2,667 seconds = about 44 minutes
The local restore is about twelve times faster. But change the input once more: the drive sat on the desk the night the office flooded. Now the local restore time is not 44 minutes. It is never. That is the whole argument for using both locations. The local copy has one more advantage: CISA advises knowing how to reach critical files even without an internet connection, and only a local copy allows that.[1]
Reading backup questions on the exam
Tech+ questions usually describe a situation and expect you to spot the concept. These cues point to the usual answers, including the pairs people mix up:
| The stem says | It points to |
|---|---|
| Deleted one file, overwrote a document, wants an earlier version | File backup with versions; a partial restore |
| Drive failed, rebuild the computer, apps and settings back quickly | System backup (system image); a full restore |
| Which data to protect first, list what the business has | An inventory of data, ranked by what the business cannot run without |
| Fire, flood or theft at the office | Off-site copy, often cloud storage |
| No internet, fastest restore | Backup stored locally, such as an external hard drive |
| Ransomware also encrypted the backup | The backup was connected; an offline copy was needed |
| Camera, drone, small removable card | SD card, and remember it may hold the original rather than a backup |
| Pocket-sized USB device for a few folders | Flash drive |
| Large capacity, local, connects by USB | External hard drive |
| Three copies, two media, one off-site | The 3-2-1 backup rule |
| Prove the backup works | Test a restore, not just check the job log |
| Changes on the laptop appear on the phone, deletions too | Sync, which is not the same as a backup |
Backups and recovery come up again in CompTIA A+, the next certification on the CompTIA path, which you can study in the Atlas A+ course.
Common misconceptions
- "Sync is a backup." Sync keeps two places identical, so a deletion or an encrypted file spreads to both. Protection comes only from a separate copy, or from version history kept long enough to step back past the problem.
- "My external drive is safe because it is a separate device." If it stays plugged in, the computer and any ransomware on it can write to it. Separate means unreachable by whatever hits the original.
- "The log says Completed, so I can restore." A completed job proves that copying happened, not that the right data was copied or that it can be read back. Only a test restore proves that.
- "Backing up Documents covers everything important." Programs often store their data in their own folders, and settings live with the system. Only an inventory of where data actually lives shows what a folder backup misses.
- "A file backup lets me rebuild the computer." It returns your files, but the operating system, applications, license keys and settings must be rebuilt by hand. Rebuilding the machine is the job of a system backup.
- "The SD card in my camera is my backup." Until the photos exist somewhere else, the card is the original, and losing it loses everything.
The short version
- CISA defines a backup as a secure copy stored separately from the main systems, so you can restore after an attack, a deletion, a failure or a disaster.
- Deciding what to back up starts with an inventory: list the data, find where each item really lives, and rank what the business cannot operate without. CISA includes configuration files and software settings.
- A file backup copies chosen files and folders and is best for partial restores. A system backup (system image) copies the OS, applications, settings and files and is best for rebuilding a whole computer.
- Incremental backups copy only what changed since the previous backup. Time Machine keeps hourly backups for 24 hours, daily for a month and weekly after that, deleting the oldest when the disk fills.
- Local options in objective 5.4 are SD cards, flash drives and external hard drives. They restore fast and work without the internet, but they share the site's risks of theft, fire and flood.
- Cloud storage survives disasters at the site, but restore speed depends on the connection: 400 GB at 100 Mbps takes about 8.9 hours, because 1 byte is 8 bits.
- The 3-2-1 rule: 3 copies, 2 different types of media, 1 copy off-site. CISA adds encryption, physical security and offline copies.
- CISA advises testing both full and partial restores and being able to roll back at least seven days.
- In File History, a plain Restore replaces the current file and cannot be undone. Restore to a different location when the current version might matter, and keep any backup encryption password where the restore team can reach it.
Sources
- CISA. (n.d.). Back Up Business Data. cisa.gov
- CompTIA. (2023). CompTIA Tech+ FC0-U71 V6 certification exam: Exam objectives (Document version 4.0). lecbyo.files.cmp.optimizely.com
- Microsoft Support. (n.d.). Back up your folders with OneDrive. support.microsoft.com
- Microsoft Support. (n.d.). Backup and restore with File History. support.microsoft.com
- Apple Support. (n.d.). Back up your Mac with Time Machine. support.apple.com
- SD Association. (n.d.). SD Association FAQ. sdcard.org
- Key terms
- File backup
- A backup that copies chosen files and folders, such as documents and photos, but not the operating system or installed applications. Best for getting back individual files or earlier versions.
- System backup
- A backup, often called a system image, that copies everything needed to rebuild a computer: operating system, applications, settings and files. Best for a full restore after a drive failure.
- Restoring data
- Copying data from a backup back to where it can be used, either partially (one file or folder) or fully (a whole system or data set), to its original location or to a different one.
- 3-2-1 backup rule
- A backup guideline: keep 3 copies of important data, on 2 different types of storage media, with 1 copy stored off-site.
- Offline backup
- A backup copy that is disconnected from the computer and network, so malware such as ransomware on the original system cannot reach or encrypt it.
- Incremental backup
- A backup run that copies only the data that changed since the previous backup of any kind, making each run fast but making a restore depend on the whole chain of backups.
- File synchronization
- Keeping two or more storage locations identical, so edits and deletions made in one place are repeated in the others. Useful for access across devices, but not on its own a backup.
- Recovery point objective (RPO)
- The most recent data an organization can afford to lose, measured in time. Nightly backups mean up to about a day of work could be lost.
- Recovery time objective (RTO)
- The longest an organization can afford to be without a system or data while a restore is carried out.
Module 7: Security
The core ideas of security, the threats people meet every day, how to secure devices and software, password and encryption practice, and securing a small wireless network.
Security Basics: Confidentiality, Integrity, Availability and Access Control
- Classify a security incident by whether it harms confidentiality, integrity or availability, and explain why.
- Explain authentication, authorization, accounting and non-repudiation, and tell single-factor, multifactor and single sign-on apart.
- Apply the least privilege model to permissions and to the choice between administrator and standard user accounts.
- Distinguish privacy from confidentiality, identify PII, explain when the GDPR applies, and describe cookie consent and privacy habits for social networks, email, file sharing and messaging.
A price that changed by itself at Larkspur Books
On a Saturday in March, a customer emailed Larkspur Books with a question. Why did a hardback atlas that cost 64.00 Canadian dollars on Friday now cost 6.40? Larkspur is a fictional shop made up for this lesson: three people in Toronto selling books online, mostly to readers in Canada, France and Germany. Maya owns it. Tom packs orders three days a week. Priya, an outside bookkeeper, does the accounts at the start of each month.
The atlas was not the only surprise that weekend. The shop's website had been unreachable for four hours overnight, so no orders came in. Then Maya opened the order spreadsheet, which holds every customer's name, email address and home address. She found that since the previous spring it had been shared with the setting \"anyone with the link can view\".
So she asked the obvious question: who changed the price? Nobody could say. All three people signed in to the website, the email account and the shop laptop with one shared account called larkspur-admin. Its password was written on a sticky note under the keyboard. Every line in every log carried the same name.
Each of Maya's problems, and each fix she makes, is one of the ideas the exam expects you to explain. Follow her through and every new term comes with a reason attached.
Exam objectives: 6.1 Explain fundamental security concepts and frameworks.[1] The objective covers confidentiality, integrity and availability. It covers authentication, authorization, accounting and non-repudiation, including single-factor, multifactor and single sign-on; permissions, administrator versus user accounts and the least privilege model; and logs, location tracking and web browser history. And it covers privacy: social networking sites, email, file sharing, instant messaging, personally identifiable information, government regulations such as the GDPR, and cookie consent.
Three questions to ask about any incident: the CIA triad
Security people sort problems using three words: confidentiality, integrity and availability. Together they are called the CIA triad. The name has nothing to do with the spy agency. The glossary of NIST (the U.S. National Institute of Standards and Technology) collects official definitions, and one of them defines security as simply the combination of these three.[2] Each word asks a different question about a piece of information.
- Confidentiality asks: did anyone see this who should not have? One definition reproduced in the NIST glossary calls it the property that information is not made available or disclosed to unauthorized individuals, entities or processes.[2] Note the word processes. A malicious program that reads a file is a confidentiality breach even if no human ever looks at the file.
- Integrity asks: is this still accurate and complete, and was it changed only by someone allowed to change it? A U.S. federal law (Public Law 107-347), quoted in the same glossary, describes integrity as guarding against improper modification or destruction of information, and includes non-repudiation and authenticity within it.[2]
- Availability asks: can the people who are allowed to use this get to it when they need it? The same law defines it as timely and reliable access to and use of information.[2]
One protection in the table below needs a word first. Encryption scrambles data so that only someone holding the right key can turn it back into readable form. A thief who copies encrypted data gets nothing they can read.
Now sort Larkspur's weekend using those three questions.
| What happened | Property harmed | Why that property | Typical protections |
|---|---|---|---|
| Order spreadsheet shared as \"anyone with the link\" | Confidentiality | Customer names and addresses could be read by anyone who had the link | Permissions, sharing with named people only, encryption |
| Atlas price changed from 64.00 to 6.40 | Integrity | The data is now wrong, and nobody authorized the change | Permissions, separate accounts, logs, change history, digital signatures |
| Website down for four hours | Availability | Customers who were allowed to shop could not reach the shop | Backups, redundant hosting, an uninterruptible power supply (UPS), patching |
Worked example: one lost laptop, two different answers
Classification questions often turn on one detail. Try this one. Tom leaves the shop laptop on a tram and it is never seen again. The laptop holds a copy of the order spreadsheet. Which property is harmed?
- What did the loss expose? The drive is not encrypted, so whoever finds the laptop can open the spreadsheet. Customer data is now in an unauthorized person's hands.
- What did the loss block? The same spreadsheet lives in the shop's cloud storage, so Maya can keep working. Nothing the shop needs is out of reach.
- Verdict: confidentiality. Availability was barely touched.
Now change one input. This time the laptop's drive is encrypted with a strong password (Lesson 31, Encryption in Everyday Use, covers how this works). But the laptop was the only place that held the newest week of orders, because someone had switched off cloud sync. The finder sees only scrambled data, so confidentiality holds. Maya, though, can no longer reach a week of orders. The harm is now to availability. A backup, the subject of Lesson 26, would have made this a minor inconvenience.
Worth holding on to: confidentiality is about who can see the information, integrity is about whether it is still right, and availability is about whether the right people can reach it. Ask what the incident exposed, what it altered and what it blocked, and the answer usually becomes clear.
The triad is not the whole list. The NIST glossary notes that other properties, such as authenticity, accountability, non-repudiation and reliability, can also be relevant.[2] Accountability and non-repudiation are where Maya's sticky note turns into a real problem.
Why one shared password broke the investigation: AAA
To find out who changed the price, Maya needed three things to happen every time anyone used the website. Security calls them AAA: authentication, authorization and accounting.
| Step | Question it answers | What it looks like at Larkspur | What it needs |
|---|---|---|---|
| Authentication | Who are you, and can you prove it? | Typing a username and password, then a code from a phone | One account per person, and proof that only that person has |
| Authorization | Now that we know who you are, what may you do? | Tom can mark orders as shipped but cannot edit prices | Permissions attached to each account |
| Accounting | What did you actually do, and when? | A log line: tom.k set order 4471 to shipped at 14:02 | Logs that record the account behind each action |
The order matters. Authorization depends on authentication, because a system cannot decide what you may do until it knows who you are. Accounting depends on both, because a log can only name the account that signed in.
That is why the shared account ruined Maya's investigation. The website's log did record the price change, with an accurate time. But it said larkspur-admin, which could mean Maya, Tom, Priya or anyone else who had read the sticky note. The sign-in proved only that someone knew the password. It did not prove which person. With no action pinned to a person, the accounting record is useless.
A fourth idea sits next to AAA: non-repudiation. It means a person cannot believably deny an action they took. (To repudiate something is to deny it.) Suppose Tom had his own account, protected by a code from his own phone, and the log said tom.k changed the price. Tom would find it hard to claim it was not him. With one shared account, anyone can say \"it wasn't me\", and nobody can prove otherwise.
Worth holding on to: AAA runs in order. First authenticate the person, then authorize what that account may do, then account for what it did. One account per person is the starting condition for all three, and for non-repudiation as well.
Proving who you are: authentication factors
NIST Special Publication 800-63B-4 is the U.S. government's current guideline on digital authentication. It describes authentication as checking whether the authenticators someone uses to claim a digital identity are valid.[3] An authenticator is whatever you present: a password, a phone that receives a code, a fingerprint. Authenticators are grouped into kinds called factors, and NIST's glossary names three: something you know, something you have and something you are.[4]
| Factor | Examples | How it is usually attacked |
|---|---|---|
| Something you know | Password, PIN (personal identification number), answer to a security question | Guessed, phished, reused from another site's breach, read off a sticky note |
| Something you have | Phone with an authenticator app, phone that receives text codes, hardware security key, smart card | Stolen, or the owner is tricked into giving up the code |
| Something you are | Fingerprint, face, iris | Hard to steal remotely, but cannot be changed if it is ever copied |
Some training materials add somewhere you are (your location) and something you do (such as a typing pattern). Treat these as extra signals a system may check, not as replacements for the three main factors.
Single-factor authentication checks only one factor. Larkspur's sticky-note password was single-factor. NIST grades sign-ins by Authentication Assurance Level (AAL), from 1 to 3. Its lowest level, AAL1, accepts single-factor authentication.[3]
Multifactor authentication (MFA) requires more than one distinct type of factor.[4] The word type is the whole test. A password plus a second password is still one type. A password plus the answer to \"What was your first pet's name?\" is also one type: both are things you know, and one fake web page can steal both. A password plus a code from an authenticator app on your phone is two types: something you know and something you have. At NIST's middle level, AAL2, proof of two distinct factors is required.[3]
Here are four sign-in methods Maya considered for the shop email:
| Sign-in method | Factors checked | Verdict |
|---|---|---|
| Password, then a 4-digit PIN | Know + know | Single-factor |
| Password, then a security question | Know + know | Single-factor |
| Password, then a 6-digit code from an authenticator app on Maya's phone | Know + have | Multifactor |
| Fingerprint unlocks the phone, which then releases a passkey stored on it | Are + have | Multifactor |
The last row needs one definition. A passkey is a sign-in key stored on your device in place of a password. The website checks that your device holds the key, and the device asks for your fingerprint, face or PIN before it will use it. You never type a secret that a fake page could capture.
Now change one input in the third row. Suppose Maya also keeps her password in a notes app on the same phone that runs the authenticator. Is it still multifactor? On paper, yes: two types of factor are still checked. In practice, a thief who takes her unlocked phone now holds both. Factors protect you only while they stay separate.
Websites often call the setting two-factor authentication or two-step verification. Common forms are a code texted to a phone or a code generated by an authenticator app.[5] Authenticator apps make a new code every 30 seconds.[5] A stolen code is therefore useless a minute later. Biometrics, such as face or fingerprint recognition, are another option. Codes sent by text message are generally regarded as the weakest of these. In an attack called SIM swapping, a criminal persuades a phone company to move your number to a new SIM (subscriber identity module) card, and your codes then go to the criminal.
How much does MFA help? Microsoft says its own studies show an account using MFA is 99.9% less likely to be compromised.[6] Read that as a vendor's figure about its own accounts, not a law of nature. MFA also has a firm limit. NIST says plainly that its authentication protections are not meant to stop a user who knowingly hands over their secrets.[3] If a caller pretending to be your bank talks you into reading out the code, MFA has failed and nothing technical stopped it. Lesson 28, Social Engineering and Securing Your Devices, covers tricks like this.
Maya started with the email account. A CISA (U.S. Cybersecurity and Infrastructure Security Agency) case shows why. A man whose email account was taken over found that, because his accounts were linked, criminals who got into one entry point, his email, could get into his other accounts too.[5] Password reset links arrive by email, so whoever controls the inbox can reset almost every other account.
One sign-in, many applications: single sign-on
Larkspur uses six online services: email, cloud file storage, the shop platform, a shipping label site, accounting software and a chat app. Six accounts each for three people means eighteen passwords and eighteen MFA setups. The alternative is single sign-on (SSO). NIST defines it as an authentication process in which one account and its authenticators give smooth access to many applications.[4]
Microsoft's documentation for Entra ID, its identity service, describes what users experience: they sign in once with one set of credentials, then open each application assigned to them without signing in again.[7] Behind the scenes, it works like this:
- Tom opens the shipping label site.
- Instead of showing its own password box, the site sends Tom's browser to the identity provider, the one service that holds Tom's account.
- The identity provider checks Tom's password and phone code, or sees that he already signed in this morning. Microsoft describes Entra ID as verifying each user and confirming that user's identity to the app.[7]
- The shipping site trusts that confirmation and lets Tom in. It never sees his password.
The benefits are real. People have fewer passwords to forget and fewer sign-ins to get wrong. When Tom leaves the job, Maya disables one account and his access to all six services ends at once.
The cost is concentration. One account now opens everything, so that account has to be the best-protected thing in the business, and MFA on it is not optional. Two things often get mistaken for SSO:
- Using the same password on six sites is not SSO. Each site still stores and checks that password, so a breach at the weakest site exposes all six.
- A password manager is not SSO either. It stores six different passwords and fills them in for you, but each site still runs its own sign-in. Lesson 30, Passwords and Password Managers, covers them.
The protocols that let an identity provider vouch for you to other sites go beyond this exam. If you continue after Tech+, the Atlas Security+ course takes identity and access management further.
What each person may do: permissions
Once each person has their own account, Maya can decide what each account is allowed to do. That decision is authorization, and its everyday tool is the permission. Microsoft's Windows Server training separates two words. A right is the ability to perform an administrative task, while a permission is the ability to access an object such as a file or folder.[8] Installing software is a right. Opening a folder is a permission.
File-system permissions are set on each file or folder, at different levels. On a Windows drive formatted with NTFS (New Technology File System), the standard levels build on each other like this:
| Level | What it allows | Can delete? | Can change who has access? |
|---|---|---|---|
| Read | Open, view and copy files and their properties | No | No |
| Write | Create new files and add to or change contents | No | No |
| Modify | Everything in Read and Write, plus delete | Yes | No |
| Full control | Everything in Modify, plus change permissions and take ownership | Yes | Yes |
Windows also has Read and execute, which adds running programs, and List folder contents, which lets you see what a folder holds. The pair people mix up is Write and Modify. Write alone does not include deleting; Modify does. And the thing that sets Full control apart is not deleting but the power to decide who else gets access.
Cloud file services use simpler role names, such as Viewer and Editor, but the idea is the same. Here is how Larkspur's cloud storage and shop platform might look after the cleanup. The settings are fictional.
| Folder or data | Maya | Tom | Priya |
|---|---|---|---|
| Orders | Owner | Editor | No access |
| Sales reports | Owner | No access | Viewer |
| Supplier contracts | Owner | No access | No access |
| Product prices (shop platform) | Edit | View | No access |
With these settings, Tom could not have changed the atlas price, not even by accident.
Administrator accounts versus standard user accounts
On a computer, the biggest permission decision is the type of account. An administrator account can install software, change system settings and read other users' files. In Windows, members of the built-in Administrators group have complete and unrestricted access to the computer.[8] A standard user account can run programs and change its own settings, but not the system's.
The danger of doing everyday work as an administrator is that every program you run gets your power. Microsoft's training describes a case at Contoso, its fictional example company. A user signed in with the top-level Enterprise Admins rights and opened an email attachment that ran malicious code.[8] Because the user had full administrative rights, so did the code, across the whole company. Had the user opened the same attachment from a standard account, the malware would have been limited to what that account could do.
Windows eases the trade-off with User Account Control (UAC). Even an administrator normally works with standard rights until a task needs more, and then a prompt appears. Microsoft's training describes the two kinds of prompt. An administrator is asked to confirm the elevation.[8] A standard user is asked for an administrator's credentials instead.[8] Maya's fix at Larkspur applies the same idea by hand. Each day she signs in as maya, a standard account, and she keeps a separate maya-admin account for installing updates and changing settings.
Setting up local accounts and UAC on real machines is technician work covered in more depth in the Atlas A+ course, the next step on the CompTIA path.
The least privilege model
One rule sits behind every row of that permissions table. The principle of least privilege limits access rights to only those needed for a specific task or job role.[8] Microsoft puts it in terms of accounts: every user should sign in with an account that has the minimum permissions needed for the current task, and nothing more.[8]
Microsoft's guidance for its cloud administrator roles makes the idea sharper with three dimensions: a specific set of permissions, over a specific scope, for a specific period of time.[6] Apply them to Priya.
- Which permissions? Read only. She checks figures but never edits them.
- Over what scope? The Sales reports folder only, not the whole drive and not the customer list.
- For how long? She works the first week of each month, so her access could switch on then and off afterwards. Some identity services can grant access for a set window and remove it automatically when the window ends.
Why bother when Priya is trustworthy? The question is not whether Priya would misuse her access. It is what happens if someone steals her account. Microsoft's reasoning is that limiting roles and scopes limits what is at risk if an account is ever compromised.[6] The same reasoning is behind its advice to give the all-powerful Global Administrator role to fewer than five people in an organization.[6] At Larkspur, that number is one: Maya.
Worth holding on to: authorization answers \"what may this account do?\" Least privilege answers \"as little as the job needs, over as small a scope as possible, for as short a time as possible.\" Daily work belongs in a standard account. The administrator account comes out only for administrative tasks.
Keeping a record: logs, location tracking and browser history
The third A, accounting, is the record of what each account did. The exam names three kinds of record.
Log files. A log is a list of events, each with a time stamp, written by a system. Typical events are sign-ins, failed sign-ins, file changes and settings changes. Here is a fictional excerpt from Larkspur's shop platform a month after the cleanup:
2026-04-07 09:14:22 maya sign-in OK MFA: app code Toronto, CA
2026-04-07 09:20:51 maya price change SKU 1182: 18.00 -> 16.50
2026-04-07 14:02:10 tom.k order 4471 status: shipped
2026-04-08 03:47:05 priya.s sign-in FAILED MFA: not completed Singapore, SG
2026-04-08 03:47:40 priya.s sign-in FAILED MFA: not completed Singapore, SG
2026-04-08 08:05:33 priya.s sign-in OK MFA: app code Toronto, CA
SKU stands for stock-keeping unit, the shop's code for one product. Now read the log as an investigator would. Every line names a person, so Maya's price change on 7 April can be traced to her. At 03:47 on 8 April, someone in Singapore got as far as the second-factor prompt on Priya's account, which almost always means they typed her correct password. Then they failed the code twice. Priya was asleep in Toronto. The log tells Maya two things: Priya's password has leaked, and MFA stopped the intruder. Her next step is to have Priya change that password, and the log is the evidence that it needs changing.
Location tracking. The Singapore column is location tracking at work. Online services estimate where a sign-in came from, usually from its IP address. Phones record their own position using GPS (Global Positioning System), Wi-Fi and cell towers. Location records support accounting, as in Priya's case, and they help people find lost phones. But they are also among the most revealing records about a person. A month of phone locations shows where someone sleeps, works and worships. That is why phones ask your permission before an app can use your location, and why checking which apps have that permission is a basic privacy habit.
Web browser history. Your browser keeps a list of the pages you visited and when. On a shared or work computer, that list is a record of activity, and some organizations review it. It has two limits. First, the user can delete it, so it is weaker evidence than a log kept on a server the user cannot edit. Second, a private or incognito window only stops your own browser from saving history on that device. The websites you visit, your employer's network and your internet service provider can still see the traffic. Lesson 17, Getting the Most from a Web Browser, Safely, covers browser settings in detail.
Notice the tension. Every record that makes people accountable is also personal information about someone. The European Commission lists an Internet Protocol (IP) address among its examples of personal data.[9] Good practice is to keep only the logs you need, protect them from tampering, limit who can read them, and delete them once they are no longer needed.
Proof that holds up: non-repudiation and the digital signature
Logs tied to individual accounts give some non-repudiation, but a log is only as trustworthy as the system that wrote it. Strong non-repudiation comes from cryptography, and it depends on something that only one party holds.
A digital signature is created with a private key that only the signer has. It is checked with a matching public key that anyone can have. NIST's glossary says digital signatures support authenticity, integrity and non-repudiation, but not confidentiality.[4] Each part has a reason:
- Integrity: if even one character of a signed contract changes, the signature no longer checks out.
- Non-repudiation: only the holder of the private key could have made the signature.
- No confidentiality: a signature does not hide the document. It only proves the document is unchanged and who signed it.
Compare a message authentication code. In cryptography, this is a checksum made with a key that both parties share. (The same letters, MAC, also stand for Media Access Control, a network hardware address. The context tells you which one is meant.) NIST notes that message authentication codes give authenticity and integrity protection, but not non-repudiation.[4] The reason is the shared key. Both sides hold it, so either one could have made the code, and an outsider cannot tell which. That is Maya's sticky-note problem in mathematical form: a shared secret cannot pin an action on one person.
When Larkspur signs a new supplier contract, Maya uses an e-signature service. It records her sign-in, the time and a signature over the document. If the supplier later claims they agreed a different price, the signed document settles the question.
Privacy: who decides what happens to information about you
Back to the order spreadsheet. Restricting the link fixed one problem. It did not answer a second set of questions. Should Larkspur collect each customer's phone number at all? How long should it keep a home address after the last order? May it use the order list to send marketing emails? Those are privacy questions.
Information privacy is a person's ability to control what information about them is collected, how it is used, who it is shared with and how long it is kept. It is about personal information: what U.S. guidance calls PII and European law calls personal data, both explained in the next section.
Confidentiality is narrower. It is a security property of data: keeping it away from unauthorized readers. The U.S. law quoted in NIST's glossary describes confidentiality as preserving authorized restrictions on access and disclosure, including means for protecting personal privacy.[2] Notice the direction. Confidentiality is one tool that protects privacy, not the whole of it.
| Situation at Larkspur | Confidentiality kept? | Privacy respected? |
|---|---|---|
| Spreadsheet open to anyone with the link | No | No |
| Spreadsheet locked to staff, but used to send advertising that customers never agreed to | Yes | No |
| Spreadsheet locked to staff, holding only what orders need, old addresses deleted | Yes | Yes |
The middle row is the one to remember. Every file can be perfectly confidential and privacy can still be harmed, because the harm comes from what the organization itself chooses to do with the data.
Worth holding on to: confidentiality asks whether unauthorized people can read the data. Privacy asks whether the person the data is about would agree to what is being collected, how it is used and who sees it.
Personally identifiable information, and why a Toronto shop follows EU law
The leaked spreadsheet held personally identifiable information (PII): information that can identify a specific person, either alone or combined with other information. Names, home addresses, personal email addresses, phone numbers, government ID numbers and dates of birth are classic PII. NIST has a whole publication on the subject, SP 800-122, its Guide to Protecting the Confidentiality of Personally Identifiable Information (PII).[10] Health records are a sensitive category of their own. CompTIA's acronym list for this exam includes PHI, which it expands as personal health information.
European law uses a different term, personal data, and defines it broadly: any information about an identified or identifiable living individual.[9] Three parts of that definition catch people out.
- Combinations count. Pieces of information that together can identify a person can also be personal data.[9] A postcode alone points to thousands of people. A postcode plus a birth date plus \"the customer who ordered a Welsh dictionary\" may point to one.
- Disguised data is not anonymous data. Data that has been de-identified, encrypted or pseudonymised (names swapped for codes) but can still be used to re-identify someone remains personal data.[9] If Larkspur replaces names with customer numbers but keeps the table that links them, the data is still personal.
- The test is the person, not the format. The Commission keeps a list of examples of data that is not considered personal data.[9] It includes a company registration number and a general company address like info@company.com, while an address in the form firstname.lastname@company.com is personal data. Both are email addresses, but only one points to a person.
The European Union's main law on personal data is the General Data Protection Regulation (GDPR). The exam objective writes General Data Protection Regulations, plural, but the law's own title is singular. Maya's first thought was that a Toronto shop is not in Europe. The Commission's explanation says otherwise. The GDPR covers organizations based outside the EU when they offer goods or services to people in the EU, paid or free.[9] Larkspur sells to readers in France and Germany, so the GDPR applies to how it handles those customers' data.
The GDPR does not depend on technology. It protects personal data no matter what technology is used to process it.[9] That includes organized paper files. \"Processing\" covers almost anything you can do with data, from collecting and storing it to sharing and deleting it. The law sets out seven key principles that organizations must follow.[9] They are:
- Lawfulness, fairness and transparency
- Purpose limitation: use data only for the purpose it was collected for
- Data minimisation: collect only what you need
- Storage limitation: keep data no longer than you need it
- Accuracy: keep it correct and up to date
- Integrity and confidentiality: keep it secure
- Accountability: be able to show that you follow the rules
Notice that integrity and confidentiality is only one of the seven. The other six are privacy rules that no lock or password can satisfy on its own. The GDPR also gives individuals rights, including the right to be informed, the right to access their data, the right to have it corrected and the right to have it erased.
Hold Larkspur's spreadsheet up against the principles. The open link broke integrity and confidentiality. Keeping every customer's address since the shop opened, years after their last order, strains storage limitation. Maya's fix has three parts. She limits the file to named staff. She deletes the addresses of customers who have not ordered in two years. And she writes a short note of what the shop collects and why, which is the accountability principle in practice.
Other places have their own laws. Many countries and several U.S. states have privacy laws, and health or financial data often has extra rules. For the exam, know the GDPR as the leading example of a government regulation on personal data, and know that it can reach organizations outside Europe.
Cookie consent banners
An HTTP cookie is a small piece of text that a website asks your browser to store and send back on later visits. HTTP, Hypertext Transfer Protocol, is the set of rules browsers use to fetch web pages. Some cookies are needed for the site to work, such as the one that keeps items in your basket or keeps you signed in. Others count visitors for analytics. Others let advertising companies recognize your browser across many sites and build a profile of you. The European Commission's list of personal data examples includes a cookie ID, because it can single out one browser and so, usually, one person.
In the EU, a separate law on electronic communications, usually called the ePrivacy Directive, works alongside the GDPR. In general it requires a website to ask before storing cookies that are not strictly necessary for the service the visitor asked for. That is why European websites, and sites that serve Europeans, show a cookie consent banner. A fair banner makes rejecting as easy as accepting, lets you choose by category, and does not set advertising cookies before you answer.
Larkspur's site had been loading an advertising tracker on every page. Maya's new banner offers Accept all, Reject all and Choose, and the tracker does not load until a visitor says yes. As a user, choosing Reject all or Necessary only is a real privacy decision, and you can clear stored cookies in your browser settings at any time.
Privacy in everyday tools: social networks, email, file sharing and messaging
The spreadsheet leak was not a hack. It was a sharing setting. Most everyday privacy losses work the same way: information travels further than the person who shared it meant it to. Each of the four channels on the exam leaks in its own way. One term in the last row needs a gloss: an app with end-to-end encryption scrambles messages so that only the sender's and recipients' devices can read them, not the company running the app.
| Channel | How information escapes | Habits that help |
|---|---|---|
| Social networking sites | Public profiles; photos that show locations or ID badges; tagged friends; posts that give away security-question answers such as pet names or hometowns; data the platform collects itself | Review privacy settings and the audience for each post, turn off location tagging, never post security-question answers, assume anything posted can be copied |
| Wrong recipient picked by autocomplete, Reply all, recipients forwarding messages, attachments copied into many inboxes | Check recipients before sending; for sensitive files, send a link with restricted access instead of an attachment; assume any email may be forwarded | |
| File sharing | \"Anyone with the link\" settings, links that never expire, edit rights where view rights would do, former staff still on the share | Share with named people, choose view only, set expiry dates, review who has access regularly |
| Instant messaging | Screenshots, group chats with unknown members, messages synced to other devices, chat backups | Check who is in a group, remember disappearing messages can still be screenshotted, check whether the app uses end-to-end encryption |
The law reaches these channels too. The Commission's list of examples of processing personal data includes posting a photo of a person on a website.[9] So a business that posts customer photos on social media needs a lawful basis, such as the customers' consent. And when Tom posts a cheerful photo of the packing bench, he should check that no customer's address is readable on a shipping label in the shot.
Worth holding on to: everyday privacy is mostly about where information goes after it leaves your hands. Ask who can see it now, who can pass it on, and for how long.
Exam cues: telling the neighbours apart
| If the question says... | Think | Do not confuse with |
|---|---|---|
| Data seen by or disclosed to someone not allowed | Confidentiality | Integrity, which is about data being changed |
| Data altered, corrupted or tampered with | Integrity | Availability, which is about access being blocked |
| Outage, cannot reach it, system down, files locked by ransomware | Availability | Confidentiality |
| What is collected about a person, how it is used, who it is shared with | Privacy | Confidentiality, which only keeps data from unauthorized readers |
| Proving who you are with a password, fingerprint or code | Authentication | Authorization |
| What a signed-in user may do; read, write, modify, permissions | Authorization | Authentication |
| Logs, audit trail, record of who did what | Accounting | Authorization |
| Cannot deny sending or signing; digital signature | Non-repudiation | Confidentiality, because signatures do not hide data |
| Two prompts of the same type, such as password plus PIN | Still single-factor | Multifactor |
| Two different types, such as password plus phone code | Multifactor | Two checks of the same type |
| Sign in once, reach many apps | Single sign-on | Password manager, password reuse |
| Minimum access needed for the job | Least privilege | Giving administrator rights for convenience |
| Name, address, ID number, anything that identifies a person | PII or personal data | Company data such as a registration number |
| EU personal data law that reaches firms serving people in the EU | GDPR | A law that applies only inside EU borders |
| Banner asking you to accept or reject tracking | Cookie consent | Terms of service or an end user license agreement (EULA) |
Common misconceptions
- \"Security is mostly about keeping secrets.\" Secrecy is only confidentiality. A wrong price is an integrity failure and a four-hour outage is an availability failure, and both are just as much security problems.
- \"If the data is kept confidential, privacy is protected.\" A company can lock its customer list perfectly and still harm privacy by collecting too much, keeping it too long or using it for purposes customers never agreed to.
- \"A password plus a security question is two-factor authentication.\" Both are something you know, and one fake web page can steal both. MFA needs different types of factor.
- \"It is my own laptop, so working as administrator is harmless.\" Every program you run, including malware hidden in an attachment, gets the administrator's power. Use a standard account for daily work.
- \"The GDPR only matters to companies in Europe.\" It also covers organizations outside the EU that offer goods or services to people in the EU.
- \"Replacing names with ID numbers makes data anonymous.\" If anyone can still link the numbers back to people, the data remains personal data.
Where this leaves us
- Confidentiality means only authorized people or processes can see information. Integrity means it is accurate and changed only by those allowed to change it. Availability means authorized users can reach it when they need it.
- The same event can harm different properties: a stolen unencrypted laptop is a confidentiality breach, while a stolen encrypted laptop holding the only copy of data is an availability problem.
- AAA runs in order: authentication proves who you are, authorization decides what that account may do, and accounting records what it did. Shared accounts defeat accounting and non-repudiation.
- The three authentication factors are something you know, something you have and something you are. MFA needs at least two different types, so a password plus a PIN is still single-factor.
- Single sign-on lets one account, checked by an identity provider, open many applications without signing in again. That account therefore needs MFA.
- Least privilege gives the minimum permissions, over the smallest scope, for the shortest time. People work daily in standard accounts and use administrator accounts only for administrative tasks. In Windows, Modify adds deleting to Write, and Full control adds changing permissions and ownership.
- Logs, location records and browser history provide accounting, but they are also personal data. Browser history can be deleted by the user, and private browsing does not hide traffic from websites or networks.
- Digital signatures provide integrity, authenticity and non-repudiation but not confidentiality. Shared-key message authentication codes cannot provide non-repudiation.
- Privacy is a person's control over what is collected about them and how it is used; confidentiality is one safeguard within it. Under the GDPR, personal data is any information about an identifiable living person, pseudonymised data still counts, the law reaches non-EU organizations serving people in the EU, and non-essential cookies need consent.
Sources
- CompTIA. (2023). CompTIA Tech+ FC0-U71 V6 certification exam: Exam objectives (Document version 4.0). lecbyo.files.cmp.optimizely.com
- NIST CSRC. (n.d.). Glossary: security. csrc.nist.gov
- NIST. (2025). NIST SP 800-63B-4 Digital Identity Guidelines: Authentication and Authenticator Management. pages.nist.gov
- NIST. (2025). NIST SP 800-63-4 Digital Identity Guidelines: Glossary. pages.nist.gov
- CISA. (n.d.). Turn on MFA. cisa.gov
- Microsoft Learn. (n.d.). Best practices for Microsoft Entra roles (least privilege). learn.microsoft.com
- Microsoft Learn. (n.d.). What is single sign-on (SSO)?. learn.microsoft.com
- Microsoft Learn. (n.d.). Define least privilege administration. learn.microsoft.com
- European Commission. (n.d.). Data protection explained. commission.europa.eu
- NIST. (2025). Digital Identity Guidelines (SP 800-63-4). pages.nist.gov
- Key terms
- CIA triad
- The three core goals of information security: confidentiality (only authorized people see data), integrity (data stays accurate and is changed only by those allowed) and availability (authorized users can reach data when needed).
- Non-repudiation
- Assurance that a person cannot believably deny an action they took, such as signing a document, usually provided by digital signatures and logs tied to individual accounts.
- AAA
- Authentication, authorization and accounting: proving who a user is, deciding what that account may do, and recording what it actually did.
- Multifactor authentication (MFA)
- Sign-in that requires at least two different types of factor, such as a password (something you know) plus a code from a phone app (something you have).
- Single sign-on (SSO)
- An arrangement in which one account, verified by an identity provider, gives access to many applications without signing in to each one separately.
- Principle of least privilege
- Giving each user, service or process only the permissions needed for its task, over the smallest scope and for the shortest time necessary.
- Standard user account
- A computer account that can run programs and change its own settings but cannot install system software or change system-wide settings without administrator approval.
- Information privacy
- A person's ability to control what information about them is collected, how it is used, who it is shared with and how long it is kept; confidentiality is one safeguard that supports it.
- Personally identifiable information (PII)
- Information that can identify a specific person on its own or combined with other information, such as a name, home address, ID number or date of birth.
- General Data Protection Regulation (GDPR)
- The European Union's main data protection law, which protects the personal data of living individuals and also applies to non-EU organizations that offer goods or services to people in the EU.
Social Engineering and Securing Your Devices
- Recognize social engineering and phishing by the pressure tactics and clues they use, and check a suspicious request through a channel you choose yourself.
- Tell malicious content from compromised content, and explain why a trusted sender does not make a message safe.
- Explain what authentication, anti-malware, a host firewall and patching each protect a phone or workstation against, and what each cannot stop.
- Choose cable locks, USB locks and screen locks to fit physical device security scenarios.
Omar's payment that did not go through
The US Cybersecurity and Infrastructure Security Agency (CISA) tells the story of a shopper named Omar on its Secure Our World phishing page. Omar gets an email that looks as if it comes from a store he uses. It says his payment did not go through and that he needs to log into his account to approve the payment method.[1] The email includes a shortcut link to a site that looks like the store's, and it insists he sign in right away. Omar is in a hurry, so he clicks, signs in and approves the "purchase". The criminals behind the email were then able to steal his password and credit card information.[1] He got most of the money back, but it took many hours on the phone with his bank and the retailer.
A natural first guess about what went wrong is: "His antivirus must have been missing or out of date." That guess is specific and sounds sensible, but it is wrong. Finding exactly where it breaks teaches most of this lesson. So this lesson runs like a debugging session. You take a belief a reasonable person holds, follow the reasoning step by step, find the line where it fails, and put the right idea in its place. Some of the bugs are about people and what attackers persuade them to do. The rest are about the devices people carry, and what you set up so that one mistake does less damage.
Exam objectives: CompTIA Tech+ FC0-U71 objective 6.2, "Explain methods to secure devices and security best practices."[2] This lesson teaches the security awareness bullets: social engineering, phishing, and malicious or compromised content. It also teaches the bullets on securing mobile devices and workstations: authentication, anti-malware, firewall, patching and updating, and physical device security with cable locks and USB (Universal Serial Bus) locks. Lesson 29 teaches the rest of 6.2: licensing, software sources, safe browsing and privacy.
Bug one: "his antivirus failed"
Follow what actually happened to Omar, one step at a time. At each step, ask whether antivirus software had anything to look at.
- The attacker sent an email. It held text and a link. There was no attachment and no program.
- Omar clicked the link. His browser opened an ordinary web page on a server the attacker controlled. Nothing was installed on his laptop.
- Omar typed his password and card number into a form. The browser sent that text to the attacker's server, the same way it would send it to a real store.
- The attacker used the stolen details. That happened on the attacker's computers, not on Omar's.
No harmful software ran on Omar's machine at any step. Anti-malware software looks for harmful programs: files, scripts and running processes that behave badly. A fake login page is just a page that asks for text, and your computer lets you type your own password into a page because you chose to. CISA calls Omar's case a login credential phishing attempt, one in which the hacker tricked Omar into revealing his login credentials.[1] The important word is tricked. The attack worked on Omar, not on his laptop.
There is one partial exception. Browsers can check pages against reputation lists. Microsoft says SmartScreen in its Edge browser warns you when a website or download location has been reported as unsafe.[3] Notice the condition in that sentence: reported. A fake site that went up an hour ago may not be on any list yet. Reputation filters are good at catching yesterday's scam and poor at catching today's.
So where did things really fail? CISA's account says it directly: Omar should have noticed that the email address was not from the store's own domain, and he should have noticed how urgent the message was trying to sound.[1] In the story, Omar now types the retailer's address into his browser himself instead of following links in emails. That one habit would have beaten this attack however convincing the fake page was, because he would never have reached the fake page at all.
This is social engineering: manipulating a person into doing something that helps an attacker. The person might reveal a password, click a link, open an attachment, send money or hold a door open. The attack goes after human judgment, not a flaw in the software.
The core of it: when an attack works by persuading a person, the fix is a habit that person has. Pause, check through a channel you choose yourself, and only then act. Security software helps at the edges, but it cannot make the decision for you.
The levers social engineers pull
The UK's National Cyber Security Centre (NCSC) sums up the method in two short sentences: scammers try to win your trust quickly, and they press you to act before you think.[4] Every social engineering attack does those two jobs, whether it arrives by email, by phone or in person. It borrows trust it has not earned, and it takes away the time you would need to check. The NCSC lists tell-tale signs that scams often show, and a scam may use one or several of them. The examples in this table are fictional.
| Lever | What it sounds like (fictional example) | Why it works |
|---|---|---|
| Authority | "This is the IT service desk. We need your password to finish moving your mailbox." | People are used to following instructions from banks, managers, doctors and government departments. A claimed title cuts questions short. |
| Urgency | "Your account will be closed within 24 hours unless you confirm your details." | A deadline makes checking feel risky in itself. Fines or other penalties are often added as threats. |
| Emotion | "Someone has posted embarrassing photos of you. See them here." | Panic, fear, hope and curiosity all push careful thinking aside. |
| Scarcity | "Only 3 tickets left at this price. Pay in the next ten minutes." | Fear of missing out on a deal makes people answer quickly. |
| Current events | "Your tax refund is ready. Claim it before the filing deadline." | A message that matches the news, or the time of year, feels expected and relevant. |
The NCSC notes that criminals often pose as important people or organisations to get you to do what they want.[4] They also use news stories, big events and seasonal moments such as tax reporting to make a scam seem relevant.[4] When you read any message, ask which lever it is pulling. A message that pulls two or three at once, such as "Official notice: respond today or face a penalty", deserves the most suspicion.
The many forms of social engineering
The exam objective names only social engineering and phishing. A working technician is still expected to recognize the common variants by name. They differ by channel and by how targeted they are, but they all use the levers above.
| Name | Channel | What happens |
|---|---|---|
| Phishing | Mostly email; also texts, social media and calls | A broad message posing as a trusted sender, trying to get a click, a reply or a login. |
| Spear phishing | Usually email | Phishing aimed at one person or a small group, using real details about them such as a manager's name, a project or a recent trip. |
| Whaling | Usually email | Spear phishing aimed at senior executives, often about payments or legal matters. |
| Smishing | SMS (Short Message Service) text message | Phishing by text: fake delivery notices, bank alerts or unpaid toll charges. |
| Vishing | Voice call | Phishing by phone: a caller who claims to be from a bank, a tech support company or your own IT department. |
| Pretexting | Any | An invented story (the pretext) that makes a request seem normal: "I'm the new auditor and I need the staff list." |
| Impersonation and tailgating | In person | Someone dressed as a courier or contractor follows an employee through a secured door without badging in. |
| Shoulder surfing | In person | Watching someone type a PIN (Personal Identification Number) or password, or read a screen, from close by. |
| Dumpster diving | Physical | Searching rubbish for printed records, sticky notes and old devices. |
| Baiting | Physical or online | Leaving an infected USB drive labelled "Salaries 2026" where someone will find it and plug it in, or offering a free download that carries malware. |
Targeted attacks need information about the target, and people give a lot of it away. CISA warns that revealing too much online gives criminals material they can use to phish you specifically.[1] The NCSC suggests thinking about what personal information you and others post about you, and reviewing your social media privacy settings.[4] An out-of-office reply that says "I'm at the Lisbon conference until Friday, contact my deputy Sam" tells a spear phisher who to impersonate, who to target and how long the real person will be hard to reach.
Bug two: "the spelling is perfect, so it must be real"
CISA defines phishing as criminals trying to get you to open harmful links, emails or attachments that ask for your personal information or infect your device.[1] It also notes that these messages usually arrive as an email, a text, a direct message on social media or a phone call.[1] So phishing is not only an email problem. The same trick works in any channel that can carry a link or a request.
For years the standard advice was to look for typos and clumsy grammar. That test is now unreliable. CISA says poor grammar used to be a common sign, but in the age of artificial intelligence (AI) some phishing emails have perfect grammar and spelling.[1] The NCSC makes the same point: scams are getting smarter, and some fool even experts.[4] The bug in "perfect spelling means genuine" is that it treats the absence of a mistake as proof. A clean message proves only that whoever wrote it, or the tool they used, can spell.
The clues that still work are about what the message wants, not how it looks. CISA's list starts with urgent or emotional language, especially claims of dire consequences if you do not respond immediately.[1] It adds requests for personal and financial information, untrusted shortened links, and email addresses or links that are slightly wrong. The NCSC adds a newer one: criminals increasingly put Quick Response (QR) codes, the square barcodes a phone camera reads, in phishing emails to send people to scam websites.[4] A QR code hides its destination until you scan it, and you usually scan it with a phone, which may have weaker protections than your work computer.
Here is a fictional message to practise on. Read it once as the recipient would, in a hurry. Then read it again as evidence.
From: Northgate Office Supply <accounts@northgate-supply-billing.com>
To: dana.reyes@example.com
Subject: ACTION REQUIRED: Payment declined for order #48213
Hello Dana,
We were unable to process the card ending 4417 for your order of
toner and paper (total 318.40). To avoid cancellation and a late
fee, please confirm your payment details within 12 hours.
Review payment: https://go.example/3xNg-pay
Or scan the code below with your phone to review on the go.
[QR code image]
Thank you for your prompt attention,
Northgate Customer Accounts
| Clue | Where it appears | What it suggests |
|---|---|---|
| Look-alike domain | The sender is northgate-supply-billing.com. Dana's real invoices come from northgatesupply.com. | Anyone can register a domain that contains a company's name. The name being present proves nothing. |
| Urgency and threat | "Within 12 hours", "cancellation and a late fee" | The message is trying to stop her checking. |
| Request for financial details | "Confirm your payment details" | This is exactly what a credential or card thief needs. |
| Hidden destination | A shortened link and a QR code | Both hide where they really lead. |
| Accurate-looking detail | Card ending 4417, a real-sounding order | Details can come from a previous breach or be invented. They raise the message's credibility without proving it. |
Dana should not use anything the message gives her: not the link, not the QR code, and not any phone number in it. The NCSC's advice is that if you have any doubt about a message, you contact the organisation directly.[4] For contact details, use the details from their official website.[4] It also reminds readers that a bank, or any other official source, will never ask you to supply personal information by email.[4] So Dana opens a new browser tab, types northgatesupply.com or uses her bookmark, and signs in there. If a payment really failed, the account page will show it.
Afterwards she reports the message. CISA recommends reporting phishing to protect yourself and others, for example with the "report" or "report spam" option in your mail program.[1] Then she deletes it without replying and without clicking any link or attachment in it, including an "unsubscribe" link.[1] An unsubscribe link in a phishing email is just another link the attacker controls.
Now change one input and run the example again. Suppose the same message arrives from accounts@northgatesupply.com, the real domain. The link points to northgatesupply.com, there is no QR code, and there is no deadline. Most of the clues have disappeared. Should Dana's procedure change? No. She still goes to the site herself. If the message was genuine, she finds the declined payment and fixes it, having lost thirty seconds. If the supplier's own mail system had been taken over, which is the next section's topic, she has still avoided the trap. The procedure gives the right outcome whether the message is real or fake. That is why it beats trying to judge a message by how it looks.
The core of it: judge a message by what it asks you to do, not by how polished it looks. Then check through a channel you choose, never one the message provides.
Malicious content and compromised content
The exam lists "malicious or compromised content" as one bullet, but the two words describe different situations, and the difference matters.
- Malicious content was made to cause harm from the start: a fake login page, an attachment that installs malware, a booby-trapped download.
- Compromised content was legitimate until an attacker took it over or changed it: a real website with malicious code injected into it, a friend's hijacked account sending links to everyone in their contacts, or a genuine USB drive that picked up malware from an infected shared PC.
Microsoft warns that suspicious links and attachments can appear in email, social posts, online ads and messages, and that they sometimes pose as known and trusted sources.[5] Compromised content goes one step further than posing: it really does come from the trusted source, because the attacker is now inside that source.
| Carrier | Malicious example (fictional) | Compromised example (fictional) |
|---|---|---|
| Email attachment | "Invoice_0412.pdf.exe" from a stranger | A supplier's real mailbox, now controlled by an attacker, sends "updated bank details.docx" to every customer |
| Link | A look-alike domain such as northgate-supply-billing.com | A small business's genuine website, hacked to push visitors a fake "browser update" |
| Download | A "cracked" copy of a paid game from a piracy site | A real vendor's download page altered to serve a tampered installer |
| Ad or pop-up | A pop-up claiming "Your PC has 5 viruses, call this number" | A malicious ad that reaches a respected news site through its advertising network |
| USB drive | A baited drive left in a car park | Your own drive, infected when you plugged it into a shared print-shop PC |
| QR code | A QR code inside a phishing email | A sticker pasted over a genuine QR code on a parking meter |
Several of these carriers come straight from Microsoft's guidance. It notes that many viruses travel as email attachments and spread as soon as the attachment is opened.[3] It advises against streaming or downloading pirated movies, music, books or applications from sources you do not trust, because they may contain malware.[5] Pop-up windows are mostly made by advertisers but can carry malicious code, which is why browsers include pop-up blockers.
The distinction matters because of the first check most people use: "Do I know the sender?" That check catches malicious content from strangers. Compromised content passes it every time. So you need a second check on the content itself. Is this request normal for this sender? Did I expect it? Is it pulling one of the levers?
A worked example shows the second check doing its job. Priya (fictional) receives a direct message from her cousin's genuine account: "omg is this you in this video??" followed by a link to a site she does not recognize. The first check passes, because the account is her cousin's. The second check fails on three counts: her cousin never writes like that, the message pulls the curiosity and embarrassment levers, and the link goes somewhere unfamiliar. She texts her cousin on a different app. The cousin replies that the account was taken over that morning. The same message from a stranger would have been easy to ignore. From a trusted account, only the content check saves her.
The core of it: a trusted sender is evidence, not proof. Compromised accounts and hacked sites deliver malicious content through channels you already trust, so check whether the request itself makes sense.
Bug three: "my laptop is locked down, so a click cannot hurt me"
This is the mirror image of bug one. Bug one blamed the device for a human failure. This one trusts the device to make up for any human failure. Both bugs come from the same mistake: treating "security" as one thing that you either have or lack. In reality, each control blocks particular routes of attack and leaves others open. Professionals layer them so that one failure does not become a disaster, an approach called defense in depth.
| Control | Mainly protects against | Does not protect against |
|---|---|---|
| Authentication (screen lock, password, PIN, biometrics, multi-factor authentication) | Someone else using your device or account | You typing your own password into a fake site |
| Anti-malware | Known and suspicious harmful software | Credential phishing; a stolen laptop |
| Host firewall | Unwanted network connections to and from the device | Malware you run yourself that uses allowed connections; phishing pages, which use normal web traffic |
| Patching and updating | Attacks that use flaws the vendor has already fixed | Flaws not yet fixed; social engineering |
| Cable lock | A grab-and-go theft of the hardware | Someone using the device where it sits |
| USB lock | Unknown drives being plugged into ports | Malware arriving by email or the web |
Read down the right-hand column and you will see why every control is needed. Each gap is covered by a different row. The sections that follow take each control in turn, for workstations and for mobile devices.
Authentication: proving it is you before the device opens
Authentication is the step where a device or service checks that you are who you claim to be before it lets you in. On a workstation or phone it usually means unlocking with a password, a PIN, a pattern, a fingerprint or your face. These methods fall into factors: something you know (a password or PIN), something you have (a phone that receives a code) and something you are (a fingerprint or face). A later lesson in this module covers passwords and password managers in depth. This lesson is about authentication as a device control.
The weak point is usually not the lock but whether it is used. An unlocked laptop on a café table belongs to whoever sits down next. Microsoft's advice is to lock your device whenever you walk away, even briefly. Press the Windows logo key + L on Windows, or Control + Command + Q on a Mac.[5] Pair that habit with an automatic lock so a forgotten device locks itself. Here is a fictional settings check on two devices:
| Setting (fictional devices) | Reception laptop | Manager's phone | Verdict |
|---|---|---|---|
| Unlock method | Password | 4-digit PIN plus fingerprint | Both set, but the PIN is short |
| Lock after inactivity | Never | 30 seconds | The laptop stays open indefinitely if forgotten |
| Signed-in account type | Administrator | Not applicable | Daily work should use a standard account |
The counting behind PIN length is simple. Each digit has ten possible values, so a 4-digit PIN has 104 = 10,000 possible values. A 6-digit PIN has 106 = 1,000,000. Each extra digit multiplies a guesser's work by ten. Phones also slow down or limit repeated wrong guesses, but a longer PIN still gives a better starting point.
Multi-factor authentication (MFA) means using more than a password to get into an app or account, for example a text code or a fingerprint.[1] It protects you when a password is guessed, reused or leaked, because the password alone is no longer enough. Go back to Omar, though. A fake sign-in page can ask for the code as well as the password and pass both to the real site within seconds. MFA cuts the risk a great deal, but it does not make it safe to sign in through a link someone sent you. A code you read out to a caller is just as lost. No genuine help desk needs your one-time code.
Account type is part of authentication on a workstation too. If you do daily work in an administrator account, anything you run can change the whole system. Windows User Account Control (UAC) asks you to approve changes that need administrator permission, and Microsoft notes that UAC can help keep viruses from making unwanted changes.[3] That prompt only protects you if it means something. If it appears when you did not just start an install, say no.
Anti-malware: what it catches and what it cannot
Malware, short for malicious software, covers viruses, worms, ransomware, spyware and any other program written to harm you. Anti-malware software detects, blocks and removes it. People still say "antivirus", which is the older name from when viruses were the main threat. On the exam and in practice, treat the two words as the same kind of product.
On Windows you do not need to install anything to start. If you run Windows, you already have Windows Security installed.[5] Its Microsoft Defender Antivirus component scans your device continuously for threats and acts on them immediately. This is called real-time protection.[6] The naming is confusing, so keep two things apart. Microsoft 365 Family and Personal subscribers also get a separate Microsoft Defender app for Windows, Mac, Android and iOS, at no extra charge.[5] That subscription app and the Defender Antivirus built into Windows are different things with nearly the same name.
A scanner recognizes known threats by comparing what it sees with its definitions: a regularly updated list of known malware and the patterns that identify it. New malware appears all the time, so the list must be refreshed often. Microsoft says that installing anti-malware and keeping it up to date is what helps it defend your PC.[3] A scanner with old definitions can only recognize what it was taught before its last update.
A status screen tells you more than whether the product is installed. Here is a fictional one, laid out as a table, for a PC whose owner has installed a third-party product called FreeShield AV:
| Item (fictional security summary) | Status | What to do |
|---|---|---|
| Microsoft Defender Antivirus | Off, because another antivirus provider is installed | Expected; nothing to fix here |
| Other antivirus provider | FreeShield AV, real-time protection on | Keep it as the one active product |
| FreeShield AV definitions | Last updated 41 days ago | Update now; old definitions miss newer malware |
| Last quick scan | Yesterday, no threats | Fine |
Why is Defender's "Off" fine here? Because one scanner is better than two fighting each other. Microsoft says running several anti-malware apps at once can make your system slow or unstable.[3] So if you install anti-malware from another company, Microsoft Defender switches itself off automatically.[3] The real problem on this screen is the 41-day-old definitions. Two third-party products, though, are a different story: Microsoft notes they may both try to run at the same time and conflict. One well-maintained product with real-time protection on is the target.
Now change one input. Suppose the screen shows Defender's real-time protection Off, and no other antivirus provider is listed at all. Nothing explains it. Microsoft explains that you can briefly turn real-time protection off yourself, and that it soon turns itself back on automatically.[6] So "Off" that stays off for days, with no other product installed, suggests something switched it off on purpose. That is a warning sign of infection. Microsoft's Tamper Protection exists for this case: it stops unauthorized apps from changing your security settings, and Microsoft notes that many viruses try to disable anti-malware software and other security settings.[3] The same word on the same screen, "Off", is harmless in the first run and alarming in the second.
Scans come in several kinds. A quick scan checks the places malware usually hides. A full scan checks everything and takes longer. A custom scan checks one file or folder, which in Windows you can start by right-clicking it. Some threats, called rootkits, hide from the operating system itself. For those, Microsoft Defender Offline runs outside Windows so the threat cannot hide from the scanner.[5] Reputation checks add another layer for new programs. Microsoft advises caution about running unrecognized apps downloaded from the internet, because unrecognized apps are more likely to be unsafe.[3]
Phones are protected somewhat differently. Most apps come from an official app store that reviews them, and the operating system limits what each app can reach. Anti-malware apps exist for phones too, but the bigger protections are keeping to official stores and keeping the phone updated. Lesson 29 covers software sources and app stores.
The core of it: anti-malware catches harmful software, not harmful decisions. Keep exactly one product running with real-time protection and current definitions, and treat protection that is off for no reason as a sign of trouble.
The host firewall: a gatekeeper on the device itself
Lesson 12 placed a firewall at the edge of a network, usually inside the home or office router, where it filters traffic between the local network and the internet. A host-based firewall does the same kind of filtering on one device, for that device's traffic only. Windows has a firewall built in and turned on automatically.[5] Microsoft describes it as watching incoming and outgoing network traffic and blocking suspicious activity.[6]
Why have both? A typical wrong answer is: "The router already has a firewall, so the laptop's own firewall is redundant." Follow the laptop for a day. It leaves the house, joins a café's Wi-Fi, then a hotel's, then a conference network. None of those networks has your router in it. The laptop now shares a network with strangers, and its own firewall is the only filter between their devices and its open ports. A phone moving between Wi-Fi networks faces the same situation. Phone operating systems limit which apps can accept incoming connections at all.
A host firewall often decides with your help. When an app asks to accept incoming connections, Windows may ask which kinds of network to allow. Here is a fictional prompt of that kind:
Windows Security
Allow PhotoShare Server to communicate on these networks:
[x] Private networks, such as my home or work network
[ ] Public networks, such as those in airports and cafes
[ Allow access ] [ Cancel ]
Run this decision twice. At home, sharing photos with your own family's devices on a private network, ticking the private box makes sense. On café Wi-Fi, ticking the public box would let any stranger on that network try to connect to the app. The app is the same; the network has changed, so the right answer flips.
Know where the firewall's limits lie. Browsing to a phishing page uses the same ordinary outbound web traffic as browsing to a real store. The firewall has no way to know your password is going to the wrong place. And if you run a malicious program yourself, it may communicate over connections the firewall already allows. The firewall controls connections. It does not judge content or intentions.
Patching and updating: closing holes before someone climbs through
A vulnerability is a flaw in software that an attacker can use. An exploit is the code or technique that uses it. A software patch is the vendor's fix, delivered as an update. CISA puts it plainly: flaws in software can give criminals access to files or accounts.[1] Microsoft describes its security updates as closing possible security holes.[3] Once a fix is published, attackers can study it to learn exactly what was broken. Every unpatched machine after that date is an easier target.
"Updates" covers more than the operating system. Microsoft advises turning on automatic updates for non-Microsoft software too, especially browsers, Adobe Acrobat Reader and other apps you use regularly.[5] Firmware, the low-level software inside routers, printers and the computer's own motherboard, also gets security updates. On phones, the operating system update comes from the phone's maker, while app updates come through the app store. Phones and computers eventually stop receiving security updates when their maker ends support. At that point no patch is coming, however careful you are.
Now debug a fictional update history. The owner says, "Windows Update says I'm up to date, so this PC is fully patched."
| Software (fictional PC) | Status | Problem |
|---|---|---|
| Windows | Up to date | None |
| Web browser | Update downloaded, restart pending for 9 days | The fix is on disk but not running |
| PDF (Portable Document Format) reader | Version from 2023, automatic updates disabled | Years of fixes missing, and PDFs arrive as email attachments every day |
| Phone (same owner) | Model no longer receives security updates | Nothing to install; plan a replacement |
The owner's reasoning fails twice. First, Windows Update covers Microsoft's software, not every app. Second, "downloaded" is not "installed". Microsoft notes that you may still need to restart occasionally for updates to finish installing.[3] A browser or operating system that has been waiting nine days for a restart is still running the old, vulnerable code. In priority order: restart to finish the browser fix (minutes, and the browser faces the internet constantly), turn on automatic updates for the PDF reader and install the current version, then replace the phone.
The core of it: a patch protects you only once it is installed and running, on every piece of software, not just the operating system. Automatic updates plus a prompt restart close most of the gap.
Physical device security: cable locks and USB locks
Every control so far assumes the attacker is somewhere else. Physical access changes that. Someone holding your laptop has time, tools and no audit log watching them. A screen lock slows them down, and drive encryption, covered later in the course, protects the data. But the hardware is gone, and so is your working day. Physical device security keeps the device where it belongs and controls what can be plugged into it.
A cable lock is a steel cable with a loop at one end and a lock head at the other. You wrap the loop around something fixed, such as a desk leg, then fit the lock head into a small security slot in the laptop's or monitor's case. That slot is commonly called a Kensington Security Slot, after the company that popularized it. The lock opens with a key or a combination. Its job is to defeat the quick, opportunistic theft: a laptop lifted from a library table, a trade-show booth or a hot desk while its owner steps away. It is a deterrent, not a vault. A determined thief with bolt cutters can cut it, and some slim laptops have no slot at all and need an adapter or a locking dock. Cable locks are rare for phones in daily use. Phones rely instead on staying with their owner, on the screen lock, and on the maker's locate-and-erase service.
A USB lock controls the ports instead of the whole device. Three forms are common:
| Form | How it works | What it stops |
|---|---|---|
| Physical port blocker | A small plug pushed into an unused USB port with a key tool; it can only be removed with the matching key | Anyone plugging an unknown drive or device into that port |
| Cable-retaining lock | A clamp that locks an existing cable, such as the keyboard's, into its port | Someone unplugging the keyboard and inserting a device between it and the computer |
| Software USB control | An operating system or management policy that blocks USB storage while still allowing keyboards and mice | Copying files to or from flash drives, on every port at once |
Why lock ports at all? Microsoft's guidance is to use only external devices that belong to you or come from a reliable source, to avoid infection by malware.[5] A port lock turns that advice into something enforced rather than something remembered. It also blocks data leaving: a flash drive can carry a customer list out of the building in seconds.
Work an example. A dental clinic (fictional) has a check-in computer on the reception counter. Patients sit beside it, two front USB ports face the waiting room, and the receptionist often goes to the back office. The fixes match the gaps one for one. A cable lock to the counter stops the computer being carried off. Physical port blockers in the two front ports stop visitors plugging in drives, while the keyboard, connected at the back, keeps working. A short automatic screen lock, plus the habit of pressing Windows + L, stops visitors using the computer while it sits there. Now change one input: the clinic replaces the computer with a wall-mounted kiosk that has no reachable ports. The USB blockers are no longer needed, but the screen lock still is.
The core of it: cable locks keep the device in place, USB locks control what can be plugged in, and screen locks control who can use it while it sits there. They solve three different physical problems.
Four incidents, diagnosed
Each fictional incident below has a tempting first fix that treats the wrong layer. Read the incident, decide on your own diagnosis, then compare.
| Incident (fictional) | Tempting wrong fix | What actually failed | Right control |
|---|---|---|---|
| An accountant's laptop disappears from a conference booth during lunch | Buy a better antivirus | Physical security | Cable lock, screen lock and encryption |
| An employee plugs in a found drive labelled "Bonuses" and the PC is infected | Add a second firewall | Social engineering (baiting) plus open USB ports | Awareness training, USB locks or USB policy, real-time anti-malware |
| A supplier's hijacked mailbox sends a booby-trapped PDF, which exploits an old PDF reader | Teach staff to spot typos | Compromised content plus a missing patch | Automatic updates for all apps; check unexpected requests |
| A caller "from IT" gets an MFA code read out to him and takes over a mailbox | Require longer passwords | Vishing that defeated MFA through the person | Never share codes; call the help desk on a known number |
Exam questions describe a situation and expect you to name the control or the attack. These cues point to particular answers, including the pairs people mix up.
| If the question stem says... | Think... |
|---|---|
| Pretends to be the bank, the boss or IT; urgent; asks for details or money | Social engineering, usually phishing |
| Text message with a link | Smishing (phishing by SMS) |
| Phone call asking for a password or code | Vishing (phishing by voice) |
| Uses the target's name, manager and current project | Spear phishing |
| Link from a friend's real account, or a trusted site now serving malware | Compromised content, not just malicious content |
| Laptop could be carried off from a desk or booth | Cable lock, not USB lock |
| Stop unknown flash drives being plugged in | USB lock or USB policy, not cable lock |
| Someone could use an unattended, unlocked device | Authentication: screen lock and automatic lock |
| More than a password, such as a code or fingerprint | Multi-factor authentication |
| Vendor has released a fix for a known flaw | Patching and updating |
| Block unwanted connections to this one device | Host firewall, not anti-malware |
| Detect, quarantine or remove viruses; real-time scanning | Anti-malware, not firewall |
If you continue to Security+ after A+, these ideas come back in far more depth. Atlas teaches it at CS Security+, and the next step on the CompTIA path is A+.
Common misconceptions
- "Antivirus protects me from phishing." Credential phishing needs no malware: you type your password into a page. Reputation filters catch some known-bad sites, but the protection that reliably works is going to the site yourself.
- "No spelling mistakes means the message is genuine." AI tools write clean text. Judge a message by what it asks for and how hard it pushes, not by its polish.
- "If it came from someone I know, it is safe." Hijacked accounts and hacked sites deliver compromised content through trusted channels. Check whether the request makes sense, and confirm unusual ones another way.
- "Two antivirus programs protect twice as well." Running several at once can slow the system or make it unstable. Windows Defender steps aside when another company's product is installed for exactly this reason.
- "My router has a firewall, so the laptop does not need one." The router protects only the network it sits on. On café, hotel or conference Wi-Fi, the laptop's own firewall is the only one.
- "Downloaded updates protect me straight away." Many updates finish installing only after a restart. Until then, the old vulnerable code is still running.
Putting it together
- Social engineering manipulates people rather than software. Its main levers are authority, urgency, emotion, scarcity and current events.
- Phishing arrives by email, text, social media message or phone call. Smishing is phishing by text, vishing is phishing by voice, and spear phishing targets a particular person using real details.
- Perfect spelling and grammar no longer suggest a message is genuine. Urgency, requests for personal or financial details, shortened links, QR codes and look-alike addresses are still useful warning signs.
- To check a suspicious request, use contact details you find yourself, such as a typed address, a bookmark or the number on your card. Never use details the message supplies. Then report it and delete it without clicking anything, including unsubscribe links.
- Malicious content was built to harm. Compromised content is legitimate content or an account that an attacker has taken over, so it passes the "do I know the sender?" test.
- Anti-malware catches harmful software but not credential phishing. Run exactly one product, with real-time protection on and current definitions; Defender switches itself off when another company's product is installed.
- A host firewall filters connections for one device and matters most on public networks. It does not judge where you send your password.
- Patches close known flaws only once they are installed and running. Update every app, not just the operating system, and restart when asked.
- Cable locks stop grab-and-go theft of the hardware. USB locks and USB policies stop unknown drives being plugged in. Screen locks with automatic timeouts stop strangers using an unattended device.
Sources
- Key terms
- Social engineering
- Manipulating a person into doing something that helps an attacker, such as revealing a password, clicking a link or opening a door, by exploiting trust and pressure rather than a software flaw.
- Phishing
- A social engineering attack in which a message posing as a trusted sender, sent by email, text, social media or phone, tries to get the recipient to click a harmful link, open an attachment or hand over personal information.
- Spear phishing
- Phishing aimed at a specific person or small group, made convincing with real details about the target such as their manager, projects or travel.
- Compromised content
- Content or an account that was legitimate until an attacker took it over or altered it, such as a hacked website or a hijacked friend's account, so it arrives through a channel the victim already trusts.
- Anti-malware
- Software that detects, blocks and removes malicious programs such as viruses, ransomware and spyware, usually by scanning files in real time against regularly updated definitions of known threats.
- Host-based firewall
- A firewall running on an individual computer or device that filters network connections to and from that device, protecting it even on networks without a separate firewall.
- Software patch
- An update released by a software vendor to fix a flaw, often a security vulnerability; it protects the device only after it is installed and, where required, the device has restarted.
- Multi-factor authentication
- Sign-in that requires more than one kind of evidence of identity, such as a password plus a one-time code or a fingerprint, so a stolen password alone is not enough.
- Cable lock
- A steel cable that loops around a fixed object and locks into a security slot on a laptop or monitor, deterring opportunistic theft of the hardware.
- USB lock
- A physical port blocker, cable-retaining clamp or software policy that prevents unauthorized devices such as flash drives from being connected to a computer's Universal Serial Bus ports.
Software You Can Trust: Licensing, Sources, Safe Browsing and Privacy
- Compare software licensing models (open source vs. proprietary; subscription vs. one-time purchase vs. perpetual), explain why software piracy is a security risk, and tell a product key from a serial number.
- Pick a legitimate source for software and drivers by comparing OEM websites, third-party websites and application stores, and check a download using its publisher's name, its web address and its published hash.
- Decide how to remove unwanted, unnecessary and malicious software, and judge whether a browser certificate is valid or invalid before you enter any data.
- Name the privacy risks of social networking sites, email, file sharing, instant messaging and AI tools, and choose habits that keep PII and PHI from leaking.
Twenty-five characters and a scratch-off panel
A Windows product key is a 25-character code, written as five blocks of five characters separated by hyphens.[1] On a new PC the key may be built into the device, included in the packaging, or printed on a Certificate of Authenticity (COA) label attached to the case.[1] Some COA cards hide the key under a gray coating that you scratch off with a coin or a fingernail.[1] Here is the detail that surprises most people: Microsoft keeps its own record of a key only if you bought the copy from Microsoft's online store.[1] If you lose the card from a boxed copy, Microsoft cannot look the key up for you.
That string of characters proves you have permission to use the software. It also leads into the first of four questions you should be able to ask about any program on a computer you look after. The table maps each question to the exam topics this lesson teaches.
| Question | Exam topics | What a wrong answer costs |
|---|---|---|
| Am I allowed to run this, and on what terms? | Licensing, software piracy, open source vs. proprietary, payment models, product keys and serial numbers | Legal exposure, missed updates, malware hidden in cracked copies |
| Did this copy come from someone I can trust? | Researching and validating sources, original equipment manufacturer (OEM) vs. third-party websites, application stores | Adware, bundled extras or a trojan instead of the program you wanted |
| Should it still be on this machine? | Removal of unwanted, unnecessary and malicious software | Slow systems, forgotten programs nobody patches, an infection that survives |
| Who can see what I type, post and share? | Safe browsing with valid and invalid certificates; privacy on social networks, email, file sharing, instant messaging and artificial intelligence (AI) | Stolen logins, leaked personal data, phishing aimed at you personally |
Exam objectives: CompTIA Tech+ FC0-U71 objective 6.2, "Explain methods to secure devices and security best practices," and specifically its device use best practices. These are software sources (licensing, software piracy, open source vs. proprietary, subscription vs. one-time purchase vs. perpetual, product keys and serial numbers, researching and validating legitimate sources, original equipment manufacturer websites vs. third-party websites, application stores), removal of software, safe browsing practices with valid and invalid certificates, and privacy considerations.[2] The other half of 6.2, security awareness and securing the device itself, was covered in the previous lesson.
Software licensing: what you actually buy
When you "buy" a program, you almost never buy the program itself. You buy a software license: written permission from the copyright holder to install and use the software under stated conditions. The publisher still owns the code. The conditions are set out in the End-user license agreement (EULA, which CompTIA expands as End User License Agreement). That is the long text you accept with an "I agree" button during setup.
A EULA usually answers a few practical questions. How many devices may run the software? May you use it for business, or only at home? May you sell or give the license to someone else? Is it tied to one person, one device or one organization? Take a student edition that forbids commercial use. It is not licensed for the paid freelance job you take on next month, even though it installs and runs exactly the same way.
Software piracy means using, copying or distributing software without a valid license for that use. It covers much more than downloading a cracked game:
| Form of piracy | What it looks like |
|---|---|
| Unlicensed copying | One purchased copy installed on ten office PCs when the license covers one |
| Cracked software | A copy changed so that its activation or license check no longer works |
| Key generators and borrowed keys | A "keygen" tool that makes up keys, or a key copied from someone else's purchase |
| Counterfeit media | Fake boxes, discs or COA labels sold as genuine |
| Misused license types | Using a key issued to another organization, using a student edition for paid work, or using a trial after it has expired |
The exam puts piracy under security, not only under law, and the reason is how infections happen. A cracked installer is written by an anonymous stranger who has already shown they will break rules, and you run it with administrator rights. That makes it a perfect disguise for a trojan horse. Microsoft describes this kind of malware as pretending to be something it is not, in order to trick you into installing it.[3] Pirated copies also often cannot be updated safely. An official update may undo the crack or flag the copy, so people running cracked software frequently turn updates off. Flaws in software can give criminals access to files or accounts until an update fixes them.[4] A copy that never takes updates keeps those flaws open.
Bottom line: a license is permission under conditions, and piracy is any use outside those conditions. Pirated software is a security risk mainly because it comes from untrusted hands, and secondly because it often goes without updates.
Open source vs. proprietary software
Every program starts as source code, the human-readable instructions a programmer writes. Most programs are then compiled into machine code. The central processing unit (CPU) can run machine code, but people cannot easily read it. Open source and proprietary software differ in what the license lets you do with the source code.
Open-source software publishes its source code under a license that lets anyone read it, change it and share copies, changed or unchanged, as long as they follow the license's conditions. Well-known examples are the Linux kernel, the Firefox browser, the LibreOffice suite and the VLC media player. Proprietary software, also called closed-source software, keeps the source code private. You get only the compiled program, and the license limits copying, changing and redistributing it. Windows, macOS and Microsoft Office are proprietary.
| Feature | Open source | Proprietary |
|---|---|---|
| Source code | Published for anyone to read | Kept private by the publisher |
| Changing the program | Allowed, under the license's terms | Not allowed; the EULA often forbids reverse engineering |
| Sharing copies | Allowed, often with conditions such as keeping the same license | Forbidden except as the publisher permits |
| Price | Usually free to download; companies may sell support or hosted versions | Usually paid; some proprietary programs are free (freeware) |
| Support | Community forums, or a paid contract with a company that packages the software | The vendor's support channels, as the license describes |
| Who can find and fix flaws | Anyone who reads the code, if someone actually does | Only the vendor; outsiders can report what they observe |
Three distinctions trip people up. First, open source does not mean unlicensed. Open-source licenses are real legal terms. Some of them, called copyleft licenses, say that if you distribute a changed version, you must release your changes under the same license. Second, free of charge does not mean open source. A free proprietary utility, called freeware, still keeps its code hidden and still limits what you may do with it. Third, neither model is automatically safer. Anyone can inspect open code, but a small project run by one overworked volunteer may go years without a careful review. A large vendor pays security staff, but outsiders have to take its word for the results. In both cases, what protects you is the same: a legitimate download and prompt updates.
Open source does not excuse you from checking where a copy came from. Attackers copy popular open-source tools, add malware and post them on look-alike sites. The safe copy of Firefox comes from Mozilla, and the safe copy of LibreOffice comes from The Document Foundation. Neither comes from whichever site happens to rank first in a search.
Subscription vs. one-time purchase vs. perpetual licensing
The second licensing question is how you pay and how long the permission lasts. The objective lists three terms, and they overlap. It helps to separate two ideas: when you pay and how long you may keep using the software.
| Model | How you pay | How long you may use it | Updates and upgrades | If you stop paying |
|---|---|---|---|---|
| Subscription | A recurring fee, monthly or yearly, often per user | Only while the subscription is active | Usually included; you always run the current version | The software stops working or drops to a limited mode |
| One-time purchase | A single payment up front | Whatever the license grants for that payment, often one version with no end date | Fixes for that version; new major versions usually cost extra | Nothing stops: you have already paid |
| Perpetual license | Usually a single payment, sometimes with an optional yearly maintenance plan | Indefinitely, for the version licensed | Upgrades come with the maintenance plan or must be bought separately | You keep the version you have, but you lose upgrades and, eventually, security support |
In everyday use, a one-time purchase and a perpetual license often describe the same product: you pay once and keep it. The two terms stress different things. "One-time purchase" describes the payment. "Perpetual" describes how long the right to use the software lasts. If an exam question says "pay once and use it indefinitely," it points to perpetual. If it says "a monthly fee that includes the newest version," it points to subscription.
Perpetual does not mean supported forever. The license lets you run version 8 for as long as you like. But once the vendor stops publishing security fixes for version 8, you are running unpatched code. That makes the choice a security decision as well as a budget one.
Here is a worked comparison, using made-up prices for a fictional photo editor.
| Option (fictional prices) | Price | Cost over 5 years |
|---|---|---|
| Subscription | $12 per month | $12 x 60 months = $720 |
| Perpetual license, plus one paid upgrade in year 3 | $300, then $99 | $300 + $99 = $399 |
Someone who edits photos every week for five years saves $321 with the perpetual license, as long as the version they own keeps getting security fixes for that long. Now change one input. Suppose the same person needs the editor for a single four-month project and never again. The subscription costs 4 x $12 = $48, against $300 for the perpetual license. Now the subscription wins by $252, and there is no aging copy left on the machine to remove later. Which model is cheaper depends on how long you will actually use the program.
Bottom line: with a subscription you rent access and always have the latest version. With a one-time purchase you pay once. A perpetual license lets you keep using the licensed version indefinitely, which is not the same as getting updates indefinitely.
Product keys, serial numbers and activation
A Product key is a code that proves you hold a license and unlocks, or activates, the software. During activation the program checks the key, usually with the publisher's servers. On Windows 11, once a valid key is accepted, the device receives a digital license based on that key.[1] The objective pairs the product key with the serial number, and the two are easy to mix up.
| Feature | Product key | Serial number |
|---|---|---|
| Purpose | Proves the right to use software and activates it | Identifies one specific unit or copy |
| Where you find it | Email receipt, online account, card in the box, COA label, or stored in the device | Sticker or engraving on the hardware, the box, or a system information screen |
| Who asks for it | The software's installer or activation screen | Warranty claims, support calls, product registration, the OEM's driver download page |
| Keep it secret? | Yes: anyone who copies it may use up your activations | Not secret, but it tells support exactly which unit you have |
Older software often used the phrase "serial number" for what we would now call a product key, and some vendors still do. If a question says the number is typed in to unlock the software, treat it as a product key, whatever the vendor calls it. Here is how the two can sit side by side on one label:
Example label on the underside of a fictional laptop (not a real key)
Model: Halden 14 Pro
Serial number: SN-4XK29-0042-EX (identifies this unit: warranty, drivers)
Windows 11 Pro PRODUCT KEY: XXXXX-XXXXX-XXXXX-XXXXX-XXXXX (activates the license)
Where the key comes from depends on how the license was bought. Refurbished machines are a common trap. If you buy a refurbished PC, Microsoft says the refurbisher, not Microsoft, must give you the product key.[1] So a refurbished laptop that shows Windows as not activated should go back to the seller, not to a stranger selling cheap keys.
Organizations buy differently. Under volume licensing, a company gets its keys through an admin portal. Microsoft states that these keys are only for volume-licensed products and are intended only for use by that organization.[5] Some volume activation methods also need a minimum number of machines. Microsoft's documentation says an organization must have at least 25 computers to activate Windows client systems that way.[5] One way cheap keys arise is that a volume key meant for one organization is resold, for example as a Windows Pro "key" offered by an unknown reseller for the price of a sandwich. Whatever the origin, a key that did not come from the publisher or the seller of your device is not a license you hold. Using it is piracy, and if the key is later blocked, the machine falls back to unactivated.
Treat keys like passwords. Keep them in a password manager or another secure record, and photograph the COA before the label wears off. Never post a key in a support forum screenshot.
Bottom line: a product key unlocks software and must be kept private, while a serial number identifies a specific unit for warranty and support. A key that did not come from the publisher, the device maker or the seller of your device is not proof of a license.
Where software comes from: OEM websites, third-party websites and application stores
You can only trust a program if you can trust where it came from. An Original equipment manufacturer (OEM) is the company that built a piece of hardware and sells it under its own name, such as the laptop maker, the printer maker or the graphics card maker. For drivers, firmware and the utilities that ship with a device, the OEM's own support website is the authoritative source. It matches downloads to your exact model, often after you enter the device's serial number. For an application, the equivalent is the publisher's official website.
A third-party website is any other site offering the same file: download portals, driver-collection sites, forum posts and file lockers. Some are long-established and careful. Many repackage installers with extra offers that are ticked by default. Microsoft calls these extras Potentially unwanted applications (PUA, also called potentially unwanted programs or PUPs). They fall short of malware, but they might display unwanted advertising, secretly use your PC for cryptomining or install other unexpected apps.[3]
An App store (the exam says application store), such as the Microsoft Store, Apple's App Store or Google Play, sits between the publisher and you. The store operator reviews apps before listing them, shows the publisher's name, handles updates automatically and can remove apps it finds harmful. Microsoft's own advice is to download apps only from trusted sources such as the Microsoft Store, and to think about which apps you install.[3] Stores are not perfect. Copycat apps with familiar icons sometimes slip through, and a legitimate app can still ask for more permissions than it needs. Installing a phone app from outside its official store is called sideloading, and doing so bypasses the store's checks.
| Source | Who stands behind the file | Main risk | Best used for |
|---|---|---|---|
| OEM or publisher website | The company that made the hardware or software | A look-alike site pretending to be the real one | Drivers, firmware, the vendor's own programs |
| Official application store | The publisher, plus the store's review and removal process | Copycat apps; apps that collect more data than they need | Phone and tablet apps; desktop apps the store carries |
| Third-party download site | Whoever runs the site; the file may have been repackaged | Bundled PUA, outdated versions, swapped files | Only when the publisher sends you there, and then with extra checks |
| Pop-up "driver updater" or search ad | Often unknown | Scareware, PUA, malware | Nothing; close it |
| Piracy or cracked-software site | Anonymous uploaders | Trojans, and no valid license | Nothing |
Researching and validating a legitimate source
Choosing a source is a short procedure, and it works the same way for a phone app, a printer driver or an open-source tool.
- Name the real publisher first. Before you search for a file, decide who makes it. For a printer driver, that is the printer's OEM. For a video player, it is the project or company that develops it.
- Reach the site by typing its address. The U.S. Cybersecurity and Infrastructure Security Agency (CISA) advises typing website addresses into the address bar yourself, rather than clicking links or copying them from an email.[6] Search ads can appear above the real result and imitate it.
- Read the domain name carefully. A malicious site may look identical to the real one while its address uses a different spelling or a different ending, such as .net in place of .com.[7] Shortened links hide where they lead, which is exactly why criminals use them.[7]
- Check the publisher shown at install time. In an app store, the developer name should match the company. On Windows, User Account Control (UAC), the prompt that asks your permission before a program makes changes to the computer, shows a verified publisher for digitally signed programs. If a program from a major company shows an unknown publisher, treat that as a red flag.
- Verify a checksum when the publisher posts one. A hash function turns a file into a fixed-length fingerprint. A common one, Secure Hash Algorithm 256-bit (SHA-256), produces 256 bits, shown as 64 hexadecimal characters. Change even one byte of the file and the fingerprint changes completely. If your copy's hash matches the one on the publisher's site, you have the publisher's file.
- Let the built-in filters help. Microsoft Edge uses Microsoft Defender SmartScreen, which helps block potentially unwanted apps. Treat its warnings as evidence about the file, not as an obstacle.[3]
- Use outside signals with care. Reviews, download counts and forum advice can help, but they can be faked. When they disagree with the publisher's own site, trust the publisher.
Here is a worked example. You need a fictional program called Kestrel PhotoLab, made by a fictional company, Kestrel Labs. A search shows three results:
| Result | Address shown | Wording |
|---|---|---|
| Sponsored ad | kestrelphotolab-download.net | "Free download, fast mirror" |
| First result | kestrel-labs.com/photolab | "Kestrel PhotoLab by Kestrel Labs" |
| Second result | softwarehub-example.com/kestrel-photolab | "Download with our installer manager" |
Work through the steps. The publisher is Kestrel Labs, so its own domain is the right place to get the file. The ad uses a different domain and a .net ending, which is the look-alike pattern. The portal wraps the program in its own "installer manager," the usual way PUA gets bundled in. So you type kestrel-labs.com yourself, download the installer and compare its hash with the one the site publishes:
Published on kestrel-labs.com (fictional):
SHA-256: 3A7F09C2B41E6D58F0A2C93B7E14D6A08C5F2E91B3D7046A9E1C8B52F07D3A64
PS> Get-FileHash KestrelPhotoLab-Setup.exe | Select-Object Algorithm, Hash
Algorithm Hash
--------- ----
SHA256 3A7F09C2B41E6D58F0A2C93B7E14D6A08C5F2E91B3D7046A9E1C8B52F07D3A64
The two strings match, so this is the file Kestrel Labs published. (Get-FileHash is built into Windows PowerShell and uses SHA-256 by default. On macOS the equivalent is shasum -a 256 followed by the file name.) You don't have to compare 64 characters by eye. In PowerShell, (Get-FileHash KestrelPhotoLab-Setup.exe).Hash -eq "3A7F...3A64", typed with the full published value, prints True or False.
Know the limit of this check. A match proves only that your file is identical to the one that page published, so the page itself must be the publisher's real site. Take the hash from the publisher's own site, which you reached by typing its address, never from the download portal that handed you the file. A fake site can post a matching hash for its own fake file.
Now change one input. A colleague downloaded the same program from the portal, and their hash reads C81B44E07A9D3F2265B0E1A7D94C3F58B2E06A71D5C9F3B804A6E2D17C95B3F0. It doesn't resemble the published value at all, so this is not the publisher's file. It might have been repackaged, swapped for malware or corrupted. You can't tell which from the hash, and you don't need to. Delete it without running it, download from kestrel-labs.com and check again.
Bottom line: decide who the real publisher is, reach its site by typing the address, read the domain letter by letter, and when the publisher's own site posts a hash, compare it before you run anything.
Removing software: unwanted, unnecessary and malicious
The objective sorts software removal into three cases. They need different handling, because each one is a different problem.
| Category | What it is | Example | Why remove it | How |
|---|---|---|---|---|
| Unwanted | Software you did not choose or no longer want, including PUA and preinstalled trial software, often called bloatware | A browser toolbar that arrived bundled with a free PDF (Portable Document Format) tool | Ads, tracking, changed browser settings, slowdowns | Uninstall normally, reset any browser settings it changed, then scan |
| Unnecessary | Legitimate software you no longer use | A utility for a printer you gave away | Every installed program needs patches. Forgotten ones go unpatched and become ways in, and they use disk space and slow startup | Uninstall normally after checking nothing depends on it |
| Malicious | Malware: viruses, trojans, spyware, ransomware | A "free game" installer that also installed a password stealer | It is working against you | Do not rely on uninstalling; update and run anti-malware scans, then change passwords |
On Windows, ordinary removal has three routes. You can open Start, then All apps, then press and hold or right-click the app and choose Uninstall.[8] You can go to Settings > Apps > Installed apps. Or, for older programs that Settings cannot remove, you can use Control Panel > Programs > Programs and Features. Expect two exceptions. Some apps and programs are built into Windows and cannot be uninstalled.[8] And if a program you need is simply misbehaving, Microsoft suggests trying to repair it first.[8] On a phone, you long-press the app and choose to uninstall or remove it. On a Mac, most apps are removed by dragging them from Applications to the Trash, and some ship with their own uninstaller.
Malicious software is different, because malware is built to survive. It may install extra copies, scheduled tasks or browser extensions that an uninstall never touches. Microsoft's guidance is to get the latest security intelligence and then run a full scan with Microsoft Defender Antivirus.[3] If the threat keeps coming back, run an offline scan with Microsoft Defender Offline, which scans before Windows fully loads, when the malware is not running and cannot defend itself.[3] Then assume anything typed on that machine may have been captured, and change any passwords you might have revealed.[7] Make those changes from a clean device.
Here is a worked example from a fictional Installed apps list:
| Name | Publisher | Installed | Decision and reason |
|---|---|---|---|
| Kestrel PhotoLab 4.2 | Kestrel Labs | 2026-03-02 | Keep: licensed, used every week, publisher verified |
| SearchPal Toolbar | SearchPal Media | 2026-09-14 | Unwanted: never chosen; arrived the same day as the PDF tool, a sign of bundling |
| FreePDF Converter | Unknown | 2026-09-14 | Unwanted: unknown publisher and it carried the toolbar; uninstall and reset the browser |
| Norvale LP-100 Utility | Norvale | 2023-05-20 | Unnecessary: the printer is gone, and nobody will patch this |
| SysTurbo Optimizer | (none) | 2026-10-30 | Malicious: Windows Security flags it; uninstall, then full scan, offline scan if it returns, and change passwords |
Bottom line: uninstall unwanted and unnecessary software through the normal tools. For malicious software, uninstalling is only the start: update protection, run a full scan, run an offline scan if the threat persists, and change passwords.
Safe browsing: valid and invalid certificates
Web pages travel over Hypertext Transfer Protocol (HTTP). Its secure form is HTTPS, which CompTIA's acronym list expands as Hypertext Transfer Protocol over Secure Sockets Layer; most documentation simply calls it HTTP Secure. When your browser connects to a site over HTTPS, the site presents a Public key certificate, usually just called a digital certificate. Think of it as an electronic ID card. It lists the domain names it covers, such as www.example.com, and carries the key used to set up encryption. It has an expiry date, and it is signed by a Certificate authority (CA), an organization your browser or operating system is set up to trust. The SSL in the acronym is historical. Transport Layer Security (TLS) replaced Secure Sockets Layer long ago, but people still say "SSL certificate," and so does the exam.
The browser checks the certificate on every connection, in a fraction of a second. A certificate is valid only if all four of these hold:
- It was issued, directly or through a chain of issuers, by a CA the browser trusts.
- Today's date falls between its start date and its expiry date.
- The name on it exactly matches the address you are visiting.
- The CA has not revoked it. A CA revokes a certificate when its key is stolen or it was issued by mistake.
If the check passes, the browser shows the connection as secure, traditionally with a closed padlock. CISA calls the padlock a sign that your information will be encrypted, and its tip sheet tells you to look for it before entering personal details.[7][6] Recent versions of some browsers show a neutral site-information icon instead of a padlock. Clicking that icon still shows the certificate details.
Be clear about what a valid certificate proves. It proves the connection is encrypted and that it goes to whoever controls that domain name. It does not prove the owner is honest. Suppose your bank is mybank.example (a fictional address). A criminal can register rnybank.example, where "rn" imitates "m", and get a perfectly valid certificate for that name. The padlock will then protect your password on its way to the thief. That is why reading the address matters more than seeing the padlock.
An invalid certificate fails one of the four checks. The browser then shows a full-page warning instead of the site. Chrome, for example, heads it "Your connection is not private," and Firefox shows "Warning: Potential Security Risk Ahead." Each warning carries a code that names the failed check. The codes in the table are Chrome's own labels, shown so you recognize them on screen. Other browsers word them differently, they can change between versions, and the exam does not ask you to memorize them. What matters is the cause and the action.
| Problem | What it means | Common causes | Browser-specific example (Chrome code) | What you do |
|---|---|---|---|---|
| Expired or not yet valid | Today is outside the certificate's dates | The site owner forgot to renew, or your own computer's clock is wrong | NET::ERR_CERT_DATE_INVALID | Check your clock first; if it is right, enter nothing and contact the site another way |
| Name mismatch | The certificate belongs to a different name | A setup mistake, or an impostor site | NET::ERR_CERT_COMMON_NAME_INVALID | Leave, and type the address you know |
| Untrusted issuer or self-signed | Signed by an issuer the browser does not trust, or by the site itself | A home or office device's admin page, a test server, or someone intercepting traffic | NET::ERR_CERT_AUTHORITY_INVALID | On a public site, leave. On your own device's page, continue only if you typed its address on your own network |
| Revoked | The CA has cancelled it | Stolen key or a certificate issued by mistake | NET::ERR_CERT_REVOKED | Do not continue |
Here are two worked cases where the same kind of warning leads to opposite decisions. In the first, a text message says a parcel is waiting and links to a delivery page. The browser warns that the certificate was issued for a different name. You did not choose that address; a stranger's message did. The warning is telling you the page is not who it claims to be. Close it, and if you really expect a parcel, type the courier's address yourself.
In the second, you type 192.168.1.1, the address of your own home router, while connected to your own Wi-Fi. The browser warns that the issuer is not trusted, because many routers sign their own admin-page certificate. This time you chose the destination, it is your own hardware and the traffic never leaves your network, so continuing is a reasonable judgment. The same untrusted-issuer warning on your bank's site over café Wi-Fi would mean the opposite: someone may be sitting in the middle of the connection.
A site with no certificate at all, plain HTTP, is labeled "Not secure" by modern browsers. Nothing you type there is encrypted, so never enter a password or payment details on such a page.
Bottom line: a valid certificate is from a trusted CA, unexpired, unrevoked and issued for the exact name in the address bar. It means the connection is encrypted, not that the site is honest. Do not click past an invalid-certificate warning on a public site.
Privacy considerations: social networking, email, file sharing, instant messaging and AI
The last group of bullets is about information you send out on purpose. Two terms come first. Personally identifiable information (PII) is any data that identifies a specific person, either alone or combined with other data: name, home address, date of birth, government ID numbers, account numbers. Personal health information (PHI, as CompTIA's acronym list expands it; U.S. health law says protected health information) is health data tied to a person. CISA warns against revealing details such as your bank account number, Social Security number or date of birth to unknown sources.[6]
In 2010 testimony to Congress, the Federal Trade Commission described teens as heavy users of social networking, mobile devices, instant messaging and file sharing.[9] It examined privacy risks in social networking, mobile computing and peer-to-peer file sharing.[9] Those channels still matter, and the exam adds one more: AI.
| Channel | What can leak | Common mistake | Safer habit |
|---|---|---|---|
| Social networking sites | Birthdays, pet names, schools, travel dates, location, photos | A public profile that gives away answers to security questions; checking in while the house is empty | Limit who sees posts, review privacy settings and connected apps, turn off location tagging |
| Message text, attachments, your address and contacts | Emailing ID numbers or passwords; replying to requests for them | Keep sensitive data out of email; check requests through a channel you already trust | |
| File sharing | Whole folders, documents with hidden details | "Anyone with the link" sharing; sharing a parent folder; peer-to-peer programs sharing more than intended | Share specific files with named people, set expiry dates, review old shares |
| Instant messaging | Chats, screenshots, forwarded messages, your phone number | Assuming disappearing messages cannot be saved; tapping links in direct messages | Treat every message as forwardable; check encryption settings; confirm odd requests another way |
| AI tools | Everything typed or uploaded into a prompt | Pasting customer records, PHI or confidential documents into a public chatbot | Follow your organization's AI policy, remove PII, check the service's data settings |
Social networking sites. Oversharing is the raw material for targeted attacks. CISA warns that revealing too much online gives criminals information they can use to phish you specifically.[4] A post about your dog, your hometown and your new job answers three common security questions and supplies the details for a convincing fake message from your new employer. The FTC also flagged two quieter leaks: third-party applications that use data from social networking sites, and mobile apps that raise privacy concerns through location-based tracking.[9] Review which quiz games and connected apps can read your profile, and remove the ones you no longer use.
Email. Ordinary email is not a private channel. Unless it is end-to-end encrypted, it passes through servers you do not control, sits in mailboxes that can be broken into, and can be forwarded in one click. CISA's rule is plain: do not reveal personal or financial information in email, and do not respond to emails asking for it.[7]
File sharing. Cloud storage makes sharing easy, and that is exactly the risk. A link set to "anyone with the link" works for whoever ends up holding it, including people the original recipient forwarded it to. Sharing a parent folder shares everything later added to it. Peer-to-peer file-sharing programs, the ones the FTC examined, can expose more of your disk than you meant to share. Share the specific file with named accounts, and audit old links now and then.
Instant messaging. A message can be screenshotted, forwarded or backed up to the recipient's cloud storage, even in apps that offer disappearing messages. Messaging is also a phishing channel. CISA notes that phishing bait usually arrives as an email, a text, a direct message on social media or a phone call.[4]
AI. AI tools raise privacy issues in both directions. Going out: anything you type into a prompt is sent to the service, and depending on its terms, account type and settings, it may be stored, reviewed by staff or used to improve the model. So never paste PII, PHI or confidential work data into a public tool your organization has not approved, and check the data and training settings of any tool you do use. Coming in: AI helps attackers write convincing messages. CISA notes that poor spelling used to give phishing away, but in the era of artificial intelligence some emails now have perfect grammar and spelling.[4] Judge a message by its sender, its links and what it asks for, not by its polish.
Exam cues: matching the question to the answer
| If the question says | Think | Not to be confused with |
|---|---|---|
| Pay once, use the version indefinitely | Perpetual license | Subscription, which ends when payments stop |
| Monthly or yearly fee, always the newest version | Subscription | Perpetual license with a maintenance plan |
| Source code can be viewed, changed and shared | Open source | Freeware, which is free but still closed |
| Cracked copy, keygen, one license on many PCs | Software piracy | Volume licensing, which is legal for its own organization |
| Code typed in to activate or unlock | Product key | Serial number, which identifies the unit |
| Driver for an exact laptop model | OEM website, typed directly | Third-party driver sites and pop-up updaters |
| Toolbar or adware arrived with a free download | Unwanted software (PUA): uninstall, then scan | Malicious software, which needs full and offline scans |
| Program no longer used | Unnecessary software: uninstall it so nothing is left unpatched | Unwanted software the user never chose |
| Detection keeps coming back after uninstall | Malicious: update, full scan, offline scan, change passwords | Repairing or reinstalling the program |
| Certificate expired, wrong name, untrusted or revoked | Invalid certificate: do not continue on a public site | A valid certificate on a look-alike domain, which still needs the address check |
| Padlock shown | Encrypted connection to that domain | Proof that the site is honest or malware-free |
| Pasting customer data into a chatbot | Privacy: AI; remove PII and follow policy | Assuming prompts are private by default |
Common misconceptions
- "Open source means free and unlicensed." Open-source software comes with a real license, and some of those licenses impose conditions when you share changes. And free proprietary software, freeware, is not open source, because its code stays hidden.
- "A padlock means the site is safe." A padlock means the connection to that domain is encrypted. A criminal can get a valid certificate for a look-alike domain, so you still have to read the address.
- "Perpetual means supported forever." A perpetual license lets you keep using the version you bought. It does not oblige the vendor to keep releasing security fixes for it.
- "Uninstalling a malicious program removes the infection." Malware often leaves other copies or tasks behind. Update your anti-malware protection, run a full scan, run an offline scan if the threat returns, and change any passwords that may have been exposed.
- "If a cheap key activates Windows, it must be legitimate." A key that works today may be a resold volume key or another misused key. If it did not come from the publisher or the seller of your device, it is not your license, using it is piracy, and it can be blocked later.
- "Everything in an app store is safe." Stores add review and removal, but copycat apps and apps that over-collect data still get through. Check the publisher's name and the permissions the app asks for.
Pulling it together
- Any use of software outside its EULA's conditions, such as one license on more devices than it allows, is software piracy. It is a security risk because cracked installers make ideal disguises for trojans and pirated copies often go without updates.
- Open-source code is published and may be changed and shared under its license. Proprietary code is kept private, and freeware is proprietary software offered at no cost.
- A subscription charges a recurring fee, includes the latest version and ends when payment stops. A perpetual license, usually bought with a one-time payment, lets you keep the licensed version indefinitely, without guaranteed upgrades or long-term security fixes.
- A Windows product key is 25 characters in five groups of five. Microsoft keeps a record only for keys bought from its online store, and for a refurbished PC, the refurbisher must supply the key. A serial number identifies the physical unit.
- Get drivers from the OEM's website and applications from the publisher or an official app store, reaching the site by typing its address. Third-party download sites often bundle potentially unwanted apps.
- If the SHA-256 hash of a downloaded file does not match the hash posted on the publisher's own site, delete the file without running it. A match is only meaningful if the hash came from the genuine publisher.
- Unwanted and unnecessary software is removed with the normal uninstall tools. Malicious software needs updated scans, an offline scan if it persists, and password changes made from a clean device.
- A certificate is valid only if it comes from a trusted CA, has not expired, has not been revoked and matches the exact name in the address. A valid certificate proves encryption to that domain, not that the site is honest.
- Assume anything you post on social networking sites, email, share, send by instant message or type into an AI tool can be copied or seen by others, and keep PII and PHI out of all five.
Sources
- Microsoft Support. (n.d.). Activate Windows. support.microsoft.com
- CompTIA. (2023). CompTIA Tech+ FC0-U71 V6 certification exam: Exam objectives (Document version 4.0). lecbyo.files.cmp.optimizely.com
- Microsoft Support. (n.d.). Protect your PC from unwanted software. support.microsoft.com
- CISA. (n.d.). Recognize and Report Phishing. cisa.gov
- Microsoft Learn. (n.d.). Product keys FAQ. learn.microsoft.com
- CISA. (2022). Cybersecurity Basics: Identity Theft and Internet Scams Tip Sheet. cisa.gov
- CISA. (n.d.). Avoiding Social Engineering and Phishing Attacks (ST04-014). cisa.gov
- Microsoft Support. (n.d.). Uninstall or remove apps and programs in Windows. support.microsoft.com
- Federal Trade Commission. (2010). Prepared Statement of the Federal Trade Commission: Protecting Youths in an Online World. ftc.gov
- Key terms
- Software license
- Permission from a copyright holder to install and use software under stated conditions, usually set out in an End User License Agreement (EULA). The publisher keeps ownership of the code.
- Software piracy
- Using, copying or distributing software without a valid license for that use. Examples include cracked copies, key generators, counterfeit media and installing one license on more devices than it allows.
- Open-source software
- Software whose source code is published under a license that lets anyone read, change and share it, subject to the license's conditions.
- Proprietary software
- Software whose publisher keeps the source code private and whose license limits copying, changing and sharing it. It may be paid or free (freeware).
- Perpetual license
- A license, usually bought with a single payment, that lets you use the licensed version indefinitely. It does not guarantee upgrades or long-term security fixes.
- Product key
- A code, such as Windows' 25-character key, that proves a license and activates software. Keep it private, because anyone who copies it can use it.
- Original equipment manufacturer (OEM)
- The company that built a piece of hardware and sells it under its own name. Its support website is the authoritative source of drivers and firmware for that device.
- Potentially unwanted application (PUA)
- Software that is not quite malware but behaves in ways users usually do not want, such as showing ads, cryptomining or installing extra apps. It often arrives bundled with free downloads.
- Digital certificate
- An electronic credential that a website presents over HTTPS. It names the domains it covers, carries the key used to set up encryption, has validity dates and is signed by a certificate authority.
- Personally identifiable information (PII)
- Any data that identifies a specific person, alone or combined with other data, such as a name, date of birth, address, ID number or account number.
Passwords and Password Managers
- Explain what password length, complexity, history and expiration settings do, and why current guidance puts length, uniqueness and bans on common passwords ahead of character-type rules and scheduled changes.
- Calculate and compare how many passwords a given length and character set allow, and explain why passwords that people choose fall short of that arithmetic.
- Choose safe practices for password reuse, password managers, password privacy and the reset process in everyday and help desk scenarios.
- Secure devices and accounts by changing default usernames and passwords and by enabling passwords where none are set.
Two Microsoft pages, nine years apart
Microsoft's Windows documentation page titled Password Policy was last updated on 19 April 2017. It says a secure network needs strong passwords of at least eight characters that combine letters, numbers and symbols.[1] It adds that strong passwords that are changed regularly make a successful password attack less likely.[1]
Microsoft's password recommendations for Microsoft 365, last updated on 8 April 2026, say something different. They tell administrators to require at least 14 characters, even though Microsoft 365 itself accepts eight.[2] On regular changes they take the opposite line: Microsoft's latest guidance discourages password expiration for cloud-only accounts and recommends that passwords never expire.[2]
Both pages are still online. The first describes what this lesson will call the rulebook: require a mix of character types, remember old passwords, and force a change every few months. The second describes a newer view: make each password long, use it on one account only, ban the obvious choices, and stop forcing changes nobody has a reason to make. Most items on the exam's password list fall somewhere in that argument, so you will learn each one twice: first what the rule does, then what happened once people had to live with it.
First, three terms. A password is a secret string of characters that proves you own an account. Authentication is the act of proving to a system that you are who you claim to be. The system that checks your password is called the verifier. It might be a website, a company's network of Windows accounts or a router's login page.
Exam objectives: CompTIA Tech+ FC0-U71 objective 6.3, Explain password best practices. It names password length, complexity, history, expiration, reuse across sites, password managers, password privacy, the password reset process, changing default usernames and passwords, and enabling passwords.[3]
The rulebook position: complexity, history and expiration
A business that runs Windows usually groups its machines into a Windows domain: a set of computers and user accounts that are managed together by one central server. The business does not set password rules one computer at a time. A Windows feature called Group Policy sends settings from that central server to every computer and user account in the domain. Microsoft documents the password rules in a Group Policy folder named Password Policy, under Account Policies. The folder holds settings that control the complexity and lifetime of passwords, including one named Passwords must meet complexity requirements.[1] The table lists the settings in that folder, with example values that a fictional office might choose. The values are illustrations, not Windows defaults.
| Setting name | What it controls | Example value | Reasoning behind it |
|---|---|---|---|
| Minimum password length | The fewest characters the system will accept | 8 characters | Short passwords have few possible combinations |
| Password must meet complexity requirements | Whether a password must mix kinds of character, such as uppercase letters, lowercase letters, digits and symbols | Enabled | More kinds of character means more possibilities at each position |
| Enforce password history | How many previous passwords the system remembers and refuses to accept again | 10 remembered | Stops a user from going back to an old password |
| Maximum password age | How many days a password lasts before it expires and must be changed | 90 days | Limits how long a stolen password stays useful |
| Minimum password age | How many days a user must wait before changing the password again | 1 day | Stops a user from cycling through the history list in minutes |
| Store passwords using reversible encryption | Whether passwords are kept in a form that can be turned back into the original text | Disabled | Turning it on undoes the one-way protection described in the hashing section below |
Three of these rows carry exam terms. Here they are in plain words.
- Password complexity is a rule about which kinds of characters a password must contain. A complexity rule might reject
sunflowerbut acceptSunfl0wer!, because the second has an uppercase letter, a digit and a symbol. - Password history is the system's memory of your earlier passwords. If history is set to 10, the system keeps a record of your last 10 passwords, stored in the same scrambled form as your current one, and refuses any new password that matches one of them.
- Password expiration gives each password a maximum age. Once that age is reached, the system makes you choose a new password the next time you sign in.
History and minimum age work as a pair, and the pair shows how rules invite workarounds. Picture a user named Dev whose password has expired and who liked his old one. With history set to 10 and no minimum age, Dev can change his password 10 times in two minutes, push the favorite off the end of the remembered list, and then set it again. A minimum age of 1 day turns that trick into 10 days of effort. Each rule closes a gap the previous rule opened.
Here is the rulebook's case at full strength. It rests on four arguments.
- A floor stops the worst choices. Left alone, some people will choose 123456 or a pet's name. A length minimum and a complexity rule make those impossible to set.
- Each character is worth more. A position that can hold any of 94 keyboard characters has more possibilities than one that can hold only the 26 lowercase letters.
- Expiration limits the damage of a silent leak. Passwords can leak without anyone noticing. A colleague watches you type, a key-logging program records your keystrokes, or someone photographs a sticky note. If every password must change within 90 days, a thief who quietly learned one loses access within 90 days at most.
- History makes expiration real. A forced change means nothing if the user can change straight back. History blocks that.
There is a practical argument too: rules are easy to audit. An auditor can open the policy, see complexity enabled and a 90-day maximum age, and confirm that a policy exists. Some organizations may keep these settings because a contract, an insurer or an older internal standard still asks for them. That is one reason you will still meet them at work.
The length-and-uniqueness position
The newer position starts from what people actually do when they are handed a rule. Microsoft's Microsoft 365 guidance says that length rules, special-character rules and password-change rules all cause normalization of passwords, which makes them easier for attackers to guess or crack.[2] Normalization means that many people respond to the same rule in the same way. Told to include a capital, a digit and a symbol, many people put the capital first, a digit or a year near the end, and an exclamation mark last. Attackers know this and build their guess lists in exactly that shape.
The US National Institute of Standards and Technology (NIST) makes a related point in Special Publication 800-63B-4, its 2025 federal guideline on authentication. It warns that poor usability often leads to coping mechanisms and workarounds that end up weakening the security controls themselves.[4] A sticky note on the monitor is a coping mechanism. So is one password reused everywhere, because nobody can remember thirty passwords that each satisfy four rules and change every quarter.
What does the newer position ask for instead?
- Length. Microsoft recommends a 14-character minimum. CISA, the US Cybersecurity and Infrastructure Security Agency, goes further on its public Secure Our World password page: at least 16 characters, with longer being stronger.[5]
- Randomness and uniqueness. CISA sums up its advice in one line: create long, random, unique passwords with a password manager.[5] Unique means a password is used on one account only.
- A ban on obvious choices. Microsoft calls banning easy-to-guess passwords the most important requirement an organization can set for users.[2] Its examples include abcdefg, password, monkey and 123456. A ban list, sometimes called a blocklist, is a list of known common or leaked passwords that the system refuses to accept.
- Passphrases where you must remember. A passphrase is a password made of several words. For a home Wi-Fi network, CISA suggests a memorable passphrase of 5 to 7 unrelated words totalling at least 16 characters.[6]
One detail looks odd at first. Microsoft lists length requirements among the rules that cause normalization, yet it still recommends 14 characters. The two fit together once you see which rules the newer position keeps: the ones that add the most work for an attacker and cost users the least. A length floor plus a ban list does that. Mandatory symbols and quarterly changes, in this view, cost users a great deal and buy little security.
Key idea: Both positions want passwords that an attacker cannot guess. They disagree about whether character-type rules and scheduled changes produce such passwords, or whether they train people into patterns that an attacker can predict.
Working the numbers: why length beats complexity
Lesson 2 showed that a number system's base sets how many values each digit position can hold. Passwords work the same way. Suppose every character is chosen at random from a set of C possible characters and the password is L characters long. The number of possible passwords is C multiplied by itself L times, written CL. Each position is an independent choice, so the counts multiply.
Start with something familiar. A four-digit PIN (Personal Identification Number) has 10 possible digits in each of 4 positions: 10 × 10 × 10 × 10 = 104 = 10,000 possible PINs. Add a fifth digit and you get 100,000. One extra position multiplied the total by 10, the size of the character set.
Where does 94 come from in a complexity rule? A standard keyboard offers 26 lowercase letters, 26 uppercase letters, 10 digits and 32 symbols: 26 + 26 + 10 + 32 = 94 printable characters.
To turn counts into time, assume an attacker who has stolen a password file can test 10 billion guesses per second. That rate is an assumption chosen to make the rows comparable, not a measured speed. Real speed depends on the attacker's hardware and above all on how slow the site's hashing scheme is, which a later section explains. The word list size of 7,776 is also an assumption, chosen because 7,776 is 65, the number of outcomes from rolling five six-sided dice.
| Recipe | Choices per position | Positions | Possible passwords | Worst case at an assumed 10 billion guesses per second |
|---|---|---|---|---|
| Lowercase letters only | 26 | 8 | 268, about 2.1 × 1011 | About 21 seconds |
| Any printable keyboard character | 94 | 8 | 948, about 6.1 × 1015 | About 7 days |
| Lowercase letters only | 26 | 12 | 2612, about 9.5 × 1016 | About 110 days |
| Lowercase letters only | 26 | 16 | 2616, about 4.4 × 1022 | About 138,000 years |
| Random words from a 7,776-word list | 7,776 | 5 words | 7,7765, about 2.8 × 1019 | About 90 years |
| Random words from a 7,776-word list | 7,776 | 6 words | 7,7766, about 2.2 × 1023 | About 700,000 years |
Here is the working for one row, so you can check the others yourself. For 8 characters from 94: 948 is about 6.1 × 1015. Divide by 1010 guesses per second to get about 6.1 × 105 seconds. Divide by 86,400 seconds in a day to get about 7 days.
Now read the table from the top. Raising the character set from 26 to 94 at length 8, which is exactly what a complexity rule does, multiplies the possibilities by about 29,000. The worst case moves from 21 seconds to about a week. Keeping lowercase letters only but adding four characters, from 8 to 12, does better: about 110 days, roughly 16 times as many possibilities as the 8-character complex password. At 16 lowercase characters the worst case passes a hundred thousand years. Length raises the exponent and complexity raises the base, and raising the exponent wins quickly.
Two more details. The times are worst cases: on average, an attacker finds a random password after searching about half the possibilities. And the word rows show why passphrases are recommended. Six words picked at random from a list of 7,776 give more possibilities than 16 random lowercase letters, and words are far easier to type and remember.
The same arithmetic when a person picks the password
Now change one input. The table assumed that each character was chosen at random, the way a password manager's generator chooses. Suppose instead that a person has to meet the fictional office's rules (at least 8 characters, complexity on) and picks Summer2026!. It has 11 characters and includes an uppercase letter, lowercase letters, digits and a symbol, so it passes every rule. If its characters were random, an attacker would face 9411, about 5 × 1021 possibilities.
Attackers do not search the whole keyboard, though. They search the patterns people use. Count just one pattern: a season word, then a year, then a symbol. Allow 5 season words (Spring, Summer, Autumn, Fall, Winter), 41 years (1990 to 2030), 10 common symbols at the end and two capitalization choices for the first letter. That makes 5 × 41 × 10 × 2 = 4,100 guesses. At the assumed offline rate, the whole pattern takes less than a millionth of a second. Even a login page that allowed only 10 attempts an hour would get through it in about 17 days.
Now add expiration. After 90 days the user must change the password, and the easiest change that passes the rules is Autumn2026!. Anyone who learned the old password can guess the new one. This is Microsoft's normalization, played out on a single account.
Key idea: The arithmetic of length protects you only when the characters are random. People choosing under rules produce patterns, and attackers guess patterns. That is why the advice pairs length with a generator or with randomly chosen words.
What happens to a password after you type it: hashing and salt
How could an attacker make billions of guesses at all? A login page can slow guessing by locking an account after a few failures. The real danger comes when an attacker steals the verifier's stored password data and guesses offline, on their own machines, where nothing ever locks.
A well-run verifier never stores your actual password. NIST's SP 800-63B-4 requires passwords to be salted and hashed using a suitable password hashing scheme.[4] A Cryptographic hash function is a one-way calculation. It turns the password into a fixed-length value, and the same input always gives the same output, but the calculation cannot be run backwards. A salt is a random value stored next to each user's hash and mixed into the calculation. Because of the salt, two users with the same password end up with different stored hashes.
Illustration only: one made-up row from a website's user table
username : maria.lopez
salt : 7c1e94b02f6a3d58
hash : 3f9d0a4c77e2b1958c0e6d3a2f41b7e9
(The password itself appears nowhere in the row.)
To crack a stolen file, the attacker guesses a password, runs it through the same scheme with that user's salt, and compares the result with the stored hash. NIST explains that password hashing schemes exist to make each of those guesses more expensive for an attacker who has obtained a hashed password file.[4] The schemes take a cost factor, a setting that makes each calculation deliberately slow, and NIST says the cost factor should be as high as practical without slowing the verifier too much.[4] That is why the guess rate in the earlier table was only an assumption. A fast, outdated scheme might allow billions of guesses a second, while a slow modern one might allow far fewer.
The same reasoning explains the last row of the Windows table. Storing passwords with reversible encryption means anyone who steals the store and the key gets the passwords back in readable form, with no guessing needed.
History and expiration as they are configured today
Microsoft 365 for business shows where the expiration debate has landed in one widely used product. By default, passwords never expire for an organization.[7] An administrator who wants expiration has to turn off the never-expire setting and then enter a number of days from 14 to 730.[7]
Password history is still in use. In Microsoft Entra ID, Microsoft's cloud directory of user accounts, users cannot reuse their last password when they change it, and administrators cannot turn this rule off.[7]
History still matters even when expiration is off, because passwords still get changed: after a breach notice, after a lost laptop, after someone saw you type. If the user could simply set the leaked password again, the change would achieve nothing. History is the rule that makes a necessary change stick.
So when should a password change? The newer view's answer is: when there is a reason. Reasons include a service telling you it was breached, a password manager warning that a password appears in a known breach, a sign-in alert you do not recognize, or knowing that someone watched you type. Changing on evidence keeps the benefit the rulebook wanted, which is cutting a thief off, without the predictable quarterly edit.
| Practice | Rulebook (Windows page, 2017) | Newer view (Microsoft 365 page, CISA) |
|---|---|---|
| Length | At least 8 characters | At least 14 (Microsoft) or 16 (CISA) |
| Complexity | Mix letters, numbers and symbols | Not the focus: ban easy-to-guess passwords instead |
| History | Remember previous passwords | Still used: blocks a return to a leaked password |
| Expiration | Change regularly | No scheduled change: change when there is a reason |
| Uniqueness | A Windows domain cannot see the passwords you use on other sites, so no setting enforces it | Central to the advice: one password per account, kept in a password manager |
Password reuse across sites: one breach, many doors
CISA's Secure Our World site tells an illustrative story about a woman named Emma. A text alert from her bank confirmed a $700 transfer that she had not requested.[5] When she tried to sign in to cancel it, her password was rejected. She tried to reset it, but she could no longer get into her email, where the reset link would be sent. She had used the same password on both accounts, and she later learned that it had been part of a company breach posted online.[5]
That is password reuse across sites: using the same password, or a close variant, on more than one account. Reuse turns one breach into many. Attackers collect username and password pairs from breached sites and feed them automatically into the login pages of banks, email providers and shops. This is called Credential stuffing. It needs no cracking at all, because the attacker already has the working password. The only question is where else it works.
Microsoft describes the goal as containment: a breach of your social networking credentials should not leave your bank account vulnerable.[2] Its advice to users also covers near-copies: do not use a password that is the same as, or similar to, one you use on any other website.[2]
The word similar matters. Adding a site's name to a base password, as in Rover77!shop and Rover77!bank, feels unique. But an attacker who sees one in a breach will try the obvious variations on other sites. Reuse also caps your strength at the weakest site. A 20-character password reused on a small forum that stores passwords badly is only as safe as that forum.
Key idea: Your password is only as safe as the worst-run site that holds it. Uniqueness is what stops one breach from spreading, and it is a practice you have to keep yourself, because no single site can check it for you.
Password managers: one strong secret guarding the rest
Uniqueness sounds impossible until you stop trying to remember everything. CISA describes a Password manager as an easy-to-use program that generates, stores and even fills in your passwords.[5] With a manager, you only need to remember one strong password: the one for the manager itself.[5]
The mechanism is worth knowing. The manager keeps your passwords in an encrypted file called a vault. The vault is unlocked with a master password, which should be a long passphrase. When you create an account, the generator produces a random password, such as 20 characters or 6 random words, and saves it with the site's address. When you return, the manager fills the password in for you. Most managers fill only on the address saved with the entry, so a lookalike phishing site gets nothing, and that missing autofill is itself a warning sign. Many managers also check your vault and warn you about weak or reused passwords.
| Kind | Where it lives | Strengths | Watch for |
|---|---|---|---|
| Built into the web browser | Inside the browser, often synced through the browser account | Free and already installed | Protection depends on the browser account and the device lock |
| Standalone app | A separate application with browser add-ons and phone apps | Works across browsers and devices, often with breach and reuse reports | Choose a reputable product; some cost money |
| Business manager | Run by the employer for staff | Shared team vaults and central control when someone leaves | Follows company policy, not personal choice |
Here is what a health report from a standalone manager might look like. The report is invented for this lesson.
Illustration only: a made-up vault health report
Vault health: 61 entries
Exposed in a known breach ...... 2 mail.example.com, shop.example.net
Reused passwords ............... 9 one password used on 7 sites
Weak passwords ................. 5
No two-step sign-in ............ 4
Read it the way a technician would. Fix the breached entries first, starting with the email account, because email receives the reset links for everything else. Next, replace the reused password, since a single leak would open seven sites. Then move on to the weak ones. For each, let the generator create a new password and save it to the entry.
The honest objection is that a manager puts everything in one place. That is true, so protect that one place. Make the master password the longest passphrase you use, use it nowhere else, and turn on multifactor authentication (MFA) for the manager account if it offers it. MFA means a second proof, such as a code from an app, is required as well as the password. Keep the device itself locked and up to date, because malware on the device can capture whatever you type. Many managers cannot recover a vault if you forget the master password, which is part of how they keep the vault private, so write the recovery steps down somewhere safe at home. Compare that risk with the alternative: three passwords reused across sixty sites, where any one breach exposes many accounts.
Password privacy: keeping the secret yours
Password privacy means that only you know your password. Nobody else is told it, nobody watches you type it, and no copy sits where others can see it. In practice that comes down to five habits.
- Do not share it, even with coworkers. Lesson 27 tied access control to individual accounts. A shared login wipes out the record of who did what. If a colleague needs access to a mailbox or folder, the information technology (IT) team grants it to the colleague's own account.
- Watch where you type it. Enter passwords on devices you know and trust, on sites you have checked. A hotel lobby computer could be running a key-logging program, which records every key pressed.
- Block the view. Shoulder surfing means watching someone enter a password or PIN, directly or through a camera. Shield the keypad and be aware of who can see your screen.
- No sticky notes. A note under the keyboard is the first place a visitor will look. A password manager removes the need to write passwords down.
- Never hand it to a caller or a message. Do not give a password or a verification code to anyone who contacts you. Google, for example, says you cannot call Google for help signing in to your account.[8] So anyone who phones claiming to be Google support and asks for a code is not Google. Lesson 28 covered that kind of pretext call as social engineering.
The password reset process: a side door into every account
Every account needs a way back in for people who forget their password. That way back in is the password reset process, and attackers know it is often easier to get through than the password itself.
For a personal account, the provider runs the process. Google's recovery asks questions to confirm the account is yours. When you are prompted to reset, it tells you to choose a strong password that you have not used with that account before.[8] That is password history at consumer scale. Set up a recovery phone number and recovery email address before you need them: Google warns that changes to recovery information can take up to 7 days to take effect.[8]
Think about where reset links go. They go to your email, which makes your email account the master key to every other account, exactly as in Emma's story. Microsoft's guidance warns against letting a poorly guarded account receive reset links for an important account.[2] Give your email account your strongest unique password and turn on MFA for it.
Inside an organization, a help desk runs resets, and it needs a procedure that a confident stranger cannot talk their way past. A sound procedure looks like this:
- Verify identity through something already on file. Call back the phone number in the staff directory, check a badge in person, or confirm with the person's manager. Never rely only on details the caller provides, such as a name, a job title or a new email address.
- Issue a temporary password through a separate channel, such as reading it out on the verified call-back.
- Require a new password at the next sign-in, so that the help desk never knows the user's working password.
- Record the reset. If someone takes over an account, a reset record shows when, and by whom.
- If compromise is suspected, also sign the account out of open sessions and check that the recovery phone and email have not been changed.
Here are two calls that differ in one input. In the first, a caller says she is Priya from accounts, that she is locked out before a deadline, and asks for a new password to be sent to an outside address she reads out. The technician calls Priya's desk extension from the directory instead. The real Priya answers and says she never called, so the technician refuses the reset and reports the attempt. In the second call the words are identical, but the call-back reaches Priya, who confirms the request. The technician reads her a temporary password on that call and sets it to change at her next sign-in. The script was the same both times. What decided the outcome was whether identity was checked through a channel already on file.
Many organizations also offer self-service reset, so that users can reset a password without calling anyone. Microsoft recommends pairing password resets with an authentication app.[2] An app check shows that the person resetting has the device that was registered to the account, which a stranger who knows only a name cannot easily fake. Old-style security questions can be a weaker check, because answers such as a first school or a mother's maiden name may be found or guessed by someone who knows a little about you.
Key idea: A reset process is part of the password. If anyone who knows your name can get a new password, the length of the old one did not matter. Verify identity through an existing channel, and guard the email account that receives reset links.
Changing default usernames and passwords
In 2013 the United States Computer Emergency Readiness Team (US-CERT) issued alert TA13-175A, Risks of Default Passwords on the Internet, which is now archived on CISA's website. It explained that factory configurations for embedded systems, devices and appliances often include simple, publicly documented passwords.[9] Those default passwords are usually identical across all systems from a vendor or across a product line.[9] Attackers find them in product manuals and in lists compiled online. The alert's instruction was to change default passwords as soon as possible, and always before a system is placed on an untrusted network such as the internet.[9]
The alert also described a fix that vendors could make: a default password unique to each unit, perhaps based on a characteristic such as its MAC (Media Access Control) address, and printed on the device.[9] Some routers now ship this way, with a unit-specific password on the label. That is an improvement over a shared default, but it is still not a reason to keep it, as the fictional label below shows.
| Field on the sticker | Example value |
|---|---|
| Admin page address | 192.168.0.1 |
| Admin username | admin |
| Admin password | Kx7m-Q2pz-8wLr |
| Wi-Fi network name (SSID, Service Set Identifier) | HomeNet-4F2A |
| Wi-Fi key | river-candle-91 |
| MAC address | 3C:84:6A:1F:4F:2A |
There are two different risks in that label, and they need two different fixes.
- Someone who has seen the label or the manual. CISA's home Wi-Fi guidance says to change the router's login username and password, because default router information may be publicly available.[6] Guests, tenants, repair visitors, or a stranger who looked up the model online may know the defaults. Once you change them, that knowledge is useless.
- Someone who can touch the router. CISA points out that anyone with physical access to a router can perform a factory reset and then use the default information printed on it to get into the network.[6] A factory reset erases your new password and brings the printed one back, so changing the password does not protect against this. The fix is physical: CISA advises storing the router in a secure physical location.[6]
Why change the username as well as the password? An attacker who knows the username is admin already has half of the login. A changed username adds a second unknown. Not every device lets you change it, and on those devices the password has to carry the whole load. Also keep two passwords separate in your mind. The router's admin password controls its settings, while the Wi-Fi key lets devices join the network. Lesson 13 set up the Wi-Fi side. The same rule applies to Internet Protocol (IP) cameras, network printers, smart TVs and every other device with a login page: change the defaults before the device goes on the network. If you want to continue into security after this course, Atlas's Security+ course is one place for further study.
Enabling passwords where none is set
Some devices and accounts ship with no password at all, or let you remove it. Enabling passwords means switching password protection on wherever it is optional. This matters because attackers commonly try blank passwords: the 2013 alert noted that trying blank, default and common passwords is a widely used attack technique.[9] Places to check include:
- Phones and tablets. Turn on a screen lock with a PIN, passphrase or biometric, and set it to lock automatically after a short idle time. A tablet in a waiting room that stays signed in to a booking system is an open door.
- Computers. Give every user account a password, including local accounts on a home personal computer (PC). Turn on the screen lock after a period of inactivity, and lock the screen yourself when you step away.
- Firmware setup. A BIOS (Basic Input/Output System) or UEFI (Unified Extensible Firmware Interface, the newer replacement for BIOS) setup password stops someone at the keyboard from changing how the computer starts up, such as booting from their own USB (Universal Serial Bus) drive.
- Network devices. Printers and cameras with an admin page but no admin password need one. A guest Wi-Fi network needs its own long, random password, separate from the main one.
- Extra sign-in factors. Where an account offers MFA, turn it on. It is not a password setting, but it works alongside one: a stolen password alone is no longer enough to sign in.
The menus differ on every device, and a text lesson cannot show yours. The exam asks for the principle: if something can hold a password and does not have one, enabling it is the first fix. Changing defaults is the second.
What would settle the argument, and how exam questions frame it
The dispute is narrower than it first looks. Nobody in it argues against length, against bans on common passwords, against uniqueness, against password managers, against changing defaults or against password history. The real disagreement is over two rules: required character types and scheduled expiration.
What evidence decides it? Not the arithmetic in the first table, which assumes random characters that real users do not produce. The deciding evidence is how real people choose passwords under each policy, and how often those accounts are actually broken into. Microsoft says its current guidance rests on research showing that almost every rule imposed on users weakens password quality.[2] NIST's concern about coping mechanisms points the same way. The rulebook's best remaining argument is the silent leak, where a stolen password goes unnoticed. The newer view answers that MFA, breach alerts and changing passwords on evidence deal with that threat without training everyone into Summer-to-Autumn edits.
The exam lists complexity, history and expiration as practices you must be able to explain, so learn what each one does and which problem it solves. Then read each question stem for the problem being described. This table matches common stem wording to the practice it points to, along with the practice most often confused with it.
| The stem says | It points to | Often confused with |
|---|---|---|
| Stop users switching back to a password they used before | Password history | Expiration, which forces a change but does not stop a return |
| Make users choose a new password every 60 days | Password expiration (maximum password age) | Password history |
| Must contain an uppercase letter, a number and a symbol | Password complexity | Password length |
| Must be at least 14 characters | Password length | Password complexity |
| Breach at one site, attacker signed in elsewhere with the same login | Password reuse across sites | A weak password |
| Generate, store and fill in a unique password for every account | Password manager | Password history |
| Coworker asks for your login; note under the keyboard; someone watching | Password privacy | Password reuse |
| User locked out; confirm who they are before issuing a new password | Password reset process | Password expiration |
| New router or camera still accepts admin and the password from the manual | Changing default usernames and passwords | Enabling passwords |
| Device or account has no password at all, or no screen lock | Enabling passwords | Changing defaults |
Common misconceptions
- "A symbol makes a password strong."
Summer2026!passes a complexity rule and falls to a pattern of about 4,100 guesses. Strength comes from length plus randomness, not from the presence of a symbol. - "Changing passwords every 90 days keeps them safe." Scheduled changes push people into predictable edits, and Microsoft now recommends that cloud-only passwords never expire. Change a password when there is a reason to think it is known.
- "A strong password is safe to reuse." Reuse makes it only as safe as the worst-run site that stores it. Credential stuffing needs no cracking, only a password that worked somewhere else.
- "A password manager is riskier because everything is in one place." The vault is encrypted and guarded by one long master passphrase plus MFA. The usual alternative is a handful of passwords reused everywhere, where one breach exposes many accounts.
- "The password on my router's sticker is random, so I can keep it." Anyone who has read the label can use it, so change the admin credentials. That change does not stop a factory reset, which brings the printed default back; only keeping the router in a secure physical location protects against that.
- "Password history and password expiration are the same thing." Expiration forces a change after a set number of days. History remembers earlier passwords and refuses them. You can have either one without the other.
What you now know
- For random characters, possible passwords = choices per position raised to the length. Twelve random lowercase letters (about 9.5 × 1016) beat eight random characters from all 94 keyboard characters (about 6.1 × 1015).
- Password complexity requires a mix of character types. Password history remembers earlier passwords and refuses them. Minimum password age stops users cycling through the history list. Password expiration (maximum password age) forces a change after a set number of days.
- Microsoft's 2017 Windows page calls for at least 8 characters mixing letters, numbers and symbols, changed regularly. Its Microsoft 365 guidance recommends a 14-character minimum and passwords that never expire.
- In Microsoft 365, passwords never expire by default, and an administrator who turns expiration on chooses from 14 to 730 days. Entra ID blocks reuse of the last password.
- Microsoft says length, special-character and change requirements cause normalization, and it names banning easy-to-guess passwords as the most important requirement. CISA sets 16 characters as its minimum.
- NIST SP 800-63B-4 requires passwords to be stored salted and hashed, so that each offline guess against a stolen file costs the attacker more.
- Reusing a password, or a close variant, lets one breach unlock other accounts through credential stuffing. A password manager generates, stores and fills a unique password for each account, so you remember only the master passphrase, which should be protected with MFA.
- A safe reset process verifies identity through a channel already on file, issues a temporary password that must be changed at the next sign-in, and treats the email account as the master key that receives reset links.
- Default credentials are often publicly documented and shared across a product line: change them before a device reaches an untrusted network, keep devices that can be factory-reset physically secure, and enable passwords anywhere a device or account has none.
Sources
- Microsoft Learn. (n.d.). Password Policy. learn.microsoft.com
- Microsoft Learn. (n.d.). Password policy recommendations for Microsoft 365 passwords. learn.microsoft.com
- CompTIA. (2023). CompTIA Tech+ FC0-U71 V6 certification exam: Exam objectives (Document version 4.0). lecbyo.files.cmp.optimizely.com
- NIST. (2025). NIST SP 800-63B-4 Digital Identity Guidelines: Authentication and Authenticator Management. pages.nist.gov
- CISA. (n.d.). Use Strong Passwords. cisa.gov
- CISA. (n.d.). Project Upskill Module 5. cisa.gov
- Microsoft Learn. (n.d.). Set password expiration policy for Microsoft 365. learn.microsoft.com
- Google Account Help. (n.d.). How to recover your Google Account or Gmail. support.google.com
- CISA. (2013). TA13-175A: Risks of Default Passwords on the Internet. cisa.gov
- Key terms
- Password complexity
- A password rule that requires a mix of character types, such as uppercase letters, lowercase letters, digits and symbols.
- Password history
- A setting that makes a system remember a set number of a user's previous passwords and refuse any of them as a new password.
- Password expiration
- A setting that gives each password a maximum age, after which the user must choose a new password at the next sign-in.
- Password manager
- An application that keeps passwords in an encrypted vault unlocked by one master password, and that can generate, store and fill in a unique password for each account.
- Passphrase
- A password made of several words, long enough to be strong yet easier to remember and type than a string of random characters.
- Credential stuffing
- An attack that takes username and password pairs leaked from one service and tries them automatically on the login pages of many other services.
- Salted hash
- The stored form of a password after a random value (the salt) is mixed in and a one-way hashing scheme is applied, so that the password itself is never stored.
- Default credentials
- The factory-set username and password that a device ships with, often publicly documented and sometimes identical across a whole product line.
- Password reset process
- The procedure for replacing a forgotten or compromised password, which should verify the person's identity through an existing channel before a new password is issued.
Encryption in Everyday Use
- Tell plain text from ciphertext, and explain why protecting encrypted data comes down to protecting the key.
- Sort any piece of data into at rest or in transit, and choose file-level, disk-level or mobile device encryption for stored data.
- Match email, HTTPS, VPN and mobile application scenarios to the encryption that protects data in transit, and say what each one leaves unprotected.
- Predict when encryption stops protecting data, for example on a running, unlocked laptop or on a mail server between hops.
A laptop left on a train seat
This is a worked example, not a news report. At 18:40 on a Thursday, a bookkeeper named Dana Okafor gets off a commuter train and leaves her laptop on the seat. Its drive holds a spreadsheet, clients-2026.xlsx, with 212 rows of names, home addresses, tax identification numbers and bank account numbers. By 18:55 she has noticed, and the laptop is gone.
Whether her clients now have a problem does not depend on her sign-in password. It depends on two things. Was the spreadsheet stored on the drive as readable data or as scrambled data? And if it was scrambled, can the thief get the secret that unscrambles it? Encryption turns readable data into unreadable data using a secret value called a key. Only someone with the right key can turn it back. You rely on encryption many times a day without seeing it: when a web page loads over HTTPS (Hypertext Transfer Protocol Secure, the protocol behind the padlock in your browser's address bar), when your phone locks, and when your mail app checks for new messages.
Exam objectives: CompTIA Tech+ FC0-U71 objective 6.4, Identify common use cases for encryption. The objective lists four groups: plain text vs. ciphertext; data at rest at the file level, the disk level and on a mobile device; and data in transit for email, HTTPS, virtual private networks (VPNs) and mobile applications.[1]
This lesson works as a procedure. You will learn four questions that pick the right encryption for any situation. Then you will run Dana's case through them, change one fact at a time, and watch the answer change.
| Step | Question | Why it matters |
|---|---|---|
| 1 | Is the data at rest or in transit right now? | Stored data and moving data are protected by different tools. |
| 2 | Who could get at it there? | A thief holding the device, a stranger on the same Wi-Fi and a mail server along the route each call for a different defense. |
| 3 | Which layer of encryption covers that place? | For stored data: file level, disk level or mobile device. For moving data: email, HTTPS, VPN or a mobile app's own connection. |
| 4 | Where is the key, and is the data locked or unlocked when the risk arrives? | Encryption helps only while the key is out of the attacker's reach. |
Plain text, ciphertext and the Caesar cipher
Every encryption system has the same parts. Plain text is data in its readable form: the words of an email, the numbers in a spreadsheet, a photo as your phone stores it. Cryptographers usually write it as one word, plaintext. CompTIA writes it as two words, and both mean the same thing. Do not confuse it with a plain-text file such as a .txt file. That is a file format. In security, plain text means "not encrypted", whatever the format. A photo, a database or a recorded voice call can all be plain text.
Ciphertext is the same data after encryption has scrambled it. Nothing has been deleted or hidden. Every byte is still there and anyone can copy it, but without the key it reads as noise. Microsoft describes a BitLocker-protected drive in exactly these terms: without the decryption key, the data on the drive looks like gibberish and cannot be read.[2]
Two more pieces do the work. The algorithm, also called a cipher, is the recipe for scrambling. The encryption key is the secret value that the recipe uses. Good algorithms are published, and experts study them openly. All of the security comes from keeping the key secret. A toy cipher shows these roles clearly, although no real system uses anything this weak.
Worked example: the Caesar cipher. The algorithm is "replace each letter with the letter k places later in the alphabet, and wrap around from Z back to A". The key is the number k. Encrypt the plain text PAYROLL with the key 3.
| Plain-text letter | Count three letters on | Ciphertext letter |
|---|---|---|
| P | Q, R, S | S |
| A | B, C, D | D |
| Y | Z, then wrap to A, B | B |
| R | S, T, U | U |
| O | P, Q, R | R |
| L | M, N, O | O |
| L | M, N, O | O |
The ciphertext is SDBURRO. To decrypt it, count back three letters from each one. Now change one input and keep everything else the same: use the key 4. PAYROLL becomes TECVSPP. The same plain text and the same algorithm give a completely different ciphertext, because the key changed. That is the whole job of a key.
Why is the Caesar cipher useless in practice? It has only 25 useful keys, so an attacker can simply try them all. That is called a brute-force attack, and here it takes a few minutes with a pencil. A modern cipher works the same way in principle but makes the number of possible keys enormous. The Advanced Encryption Standard (AES), the cipher behind most of the tools in this lesson, uses keys of 128 or 256 bits. A 128-bit key has 2128 possible values, a number 39 digits long, so trying every key is not a realistic attack. Windows device encryption, for example, uses a method Microsoft calls XTS-AES 128-bit by default.[3] XTS is simply a way of applying AES that is designed for disks.
Encoding is not encryption. Base64 text, a compressed zip file with no password, or a file renamed with a strange extension can all look unreadable, but none of them uses a key. Anyone with the right free tool can reverse them. If no secret is needed to undo it, it is not encryption.
Most everyday encryption is symmetric: the same key locks and unlocks the data. The US National Institute of Standards and Technology (NIST) describes it this way in its guidance on Transport Layer Security (TLS), the protocol that encrypts most web, email and app connections. The sender encrypts each message with a derived key,[4] and the receiver decrypts it with the same key, which it has worked out independently on its own side.[4] So the hard part is not the scrambling. The hard part is the key: who holds it, where it is kept, and how two parties agree on it without an eavesdropper learning it. That is why step 4 of the procedure exists.
How do two strangers, such as your browser and a shop's server, end up holding the same key? With a second kind of encryption. In public-key cryptography, also called asymmetric encryption, each party has a matched pair of keys. The public key can be handed to anyone, and data locked with it can be unlocked only by the matching private key, which never leaves its owner. A digital certificate is a signed statement, issued by a trusted organization called a certificate authority (CA), that a particular public key belongs to a named website or person. A digital signature runs the keys the other way: the owner signs with the private key, and anyone can check the signature with the public key, which proves who sent the data and that nobody changed it. Public-key methods are slow, so TLS uses them only at the start of a connection, to check the server's certificate and agree on fresh shared keys. After that, fast symmetric encryption carries the data.
The point: encryption does not hide or delete data. It turns plain text into ciphertext that anyone can copy but nobody can read without the key, so protecting the data becomes a matter of protecting the key.
Step 1 in detail: data at rest, data in transit
Data at rest is data sitting in storage: on a solid-state drive, a Universal Serial Bus (USB) flash drive, a phone's flash memory, a backup disk, or a server's drives in a cloud data center. Data in transit, also called data in motion, is data moving across a network: from your browser to a website, from your mail app to a mail server, or from a phone app to its company's servers.
The same file changes state many times in a day. Follow Dana's spreadsheet through one working day:
| Moment | State | Main risk | Encryption that fits |
|---|---|---|---|
| Saved on the laptop's internal drive | At rest | The laptop is lost or stolen | Disk level (BitLocker, FileVault) |
| Copied to a USB flash drive for an auditor | At rest | The flash drive is lost | File level, or encrypting the whole flash drive |
| Attached to an email | In transit, then at rest on mail servers | It is read on the network or on a server along the way | TLS for each hop; Secure/Multipurpose Internet Mail Extensions (S/MIME) for the message itself |
| Uploaded through a client web portal | In transit | An eavesdropper on the same network | HTTPS |
| Opened on the office file server from a hotel | In transit | Other guests on the hotel Wi-Fi | VPN |
| Synced by the accounting app on her phone | In transit, then at rest on the phone | Interception; the phone is lost | The app's encrypted connection; mobile device encryption |
There is a third state, data in use. When Dana opens the spreadsheet, it is decrypted into random-access memory (RAM) so that the central processing unit (CPU) can work on it. From Lesson 7, RAM is volatile working memory. Neither at-rest nor in-transit encryption protects data while a signed-in user, or malware running as that user, has it open. Keep this in mind. It explains why the second run below flips.
Run 1: the powered-off laptop and BitLocker
Suppose Dana shut her laptop down before boarding. Her company set up BitLocker to use the laptop's security chip plus a startup personal identification number (PIN): a short code she must type before Windows even begins to load. Work through the four steps.
- At rest or in transit? At rest. The spreadsheet is stored on the laptop's internal drive and nothing is moving.
- Who could get at it? The thief, who now holds the hardware. A sign-in password stops someone at the login screen. It does not stop someone who removes the drive and connects it to another computer. Microsoft warns that a person who does this could read your data without needing your credentials.[2]
- Which layer? Disk level. Disk encryption, often called full-disk encryption (FDE), encrypts the whole volume. That includes the operating system, temporary files, the page file and leftovers of deleted files, so there is nothing for the user to forget. BitLocker is the Windows version. Microsoft describes it as encryption for entire volumes, aimed at data theft or exposure from devices that are lost, stolen or disposed of carelessly.[3]
- Where is the key? BitLocker gives the best protection when it works with a Trusted Platform Module (TPM), a security chip found on most Windows computers.[3] The TPM releases the key only to an unchanged boot process, and Dana's startup PIN adds a second lock: no PIN, no key. That meets the condition in NIST's storage encryption guide, Special Publication 800-111: on a computer that is not booted, everything encrypted by FDE is protected, provided authentication is required before the operating system starts.[5]
Result: the thief has a laptop full of ciphertext. Pulling the drive gives them gibberish, and powering the laptop on stops at a PIN prompt they cannot answer. Dana should still report the loss, because her employer or regulator may require it. But her clients' data has not been exposed.
Many home computers run BitLocker with the TPM alone and no startup PIN. Pulling the drive still yields only ciphertext. But anyone who powers the laptop on reaches the Windows sign-in screen with the chip having already released the key, so the sign-in password becomes the main gate. The PIN is what made Dana's laptop match NIST's condition.
Here is what this looks like on a real Windows computer. Windows offers two versions of the same technology. Device encryption is a simplified form that turns itself on automatically on hardware that qualifies. BitLocker Drive Encryption is the full version, which you manage yourself, and it comes with the Pro, Enterprise and Education editions. To check whether a computer qualifies for device encryption, open System Information (msinfo32.exe) and find this line:
System Information, System Summary (excerpt)
Item Value
Device Encryption Support Meets prerequisites
On a Windows 11 machine that supports it, you can also see the state under Settings, Privacy & security, Device encryption. Notice what device encryption covers: the operating system drive and other fixed internal drives.[3] It does not cover external USB drives. That limit matters in Run 3. When Windows turns device encryption on automatically, it saves the recovery key to your Microsoft account, or your work or school account, before protection starts.[2]
The BitLocker recovery key is a unique 48-digit number that unlocks the drive when the normal key is not available.[2] Windows asks for it when it detects an unauthorized attempt to reach the drive, or a hardware change that it cannot tell apart from an attack.[2] A firmware update or a moved drive can trigger it. The screen looks something like this (the values are fictional):
BitLocker recovery
Enter the recovery key for this drive
Recovery key ID: 7A3C9E21
403524-118932-671205-290158-554631-038467-712899-245130
The key appears as eight groups of six digits. If nobody saved it somewhere off the laptop, the data is gone for good, because strong encryption has no back door. That is the price of the protection. It is also why Lesson 26's rule applies here: a backup you cannot unlock is not a backup.
Macs work the same way. On an Intel-based Mac, user data is protected by a volume encryption technology called FileVault.[6] On a Mac running macOS 26.4 or later, FileVault is on by default, although users can turn it off.[7] You can check it under System Settings, Privacy & Security, FileVault.
The point: disk-level encryption protects everything on a drive while the device is off, with no files for the user to forget. The recovery key is the one thing that must be stored somewhere other than the device.
Run 2: change one fact, the laptop was awake
Same laptop, same BitLocker, same TPM and startup PIN. Change one input. Dana was answering email on the station platform with the laptop open and unlocked, and a thief snatched it out of her hands. Run the steps again.
- At rest or in transit? Still at rest on the drive.
- Who? A thief holding a running, signed-in computer.
- Which layer? Disk encryption, as before.
- Where is the key? This is where the answer flips. The PIN was entered hours ago. The key is now in memory, and the operating system is decrypting data for whoever is at the keyboard.
NIST puts it bluntly: once the device has booted, FDE gives no protection, and the operating system alone is responsible for protecting the decrypted information.[5] The thief can open clients-2026.xlsx with a double-click. The encryption was working perfectly. It was simply the wrong tool for this moment.
| Power state when stolen | Key in memory? | Protection from disk encryption |
|---|---|---|
| Shut down | No | Full, if authentication is required at startup |
| Hibernating | No; memory has been written to disk | Full, provided the product encrypts the hibernation file, as most do |
| Asleep, screen locked | Yes | Weak; the lock screen is the main barrier, not the encryption |
| On and unlocked | Yes | None |
The hibernation row depends on NIST's observation that most FDE products encrypt the hibernation file.[5] The practical lessons follow from the table. Set a short screen-lock timeout. Shut down or hibernate a laptop before carrying it through an airport or onto a train. Make sure a managed device can be wiped remotely. These measures cover the running-machine gap that encryption leaves.
Run 3: change another fact, the spreadsheet leaves the laptop
Go back to a safe laptop that is shut down and encrypted. This time Dana copies clients-2026.xlsx onto a USB flash drive to hand to her auditor, and the flash drive falls out of her bag.
Step 1: the data is at rest, but on a different device. Step 3 now gives a different answer. Disk encryption decrypts data as it is read off the disk, so the copy is written to the flash drive as plain text. Recall from Run 1 that Windows device encryption does not cover external USB drives. Whoever finds the flash drive can open the file.
The fix is file-level encryption: encrypting one file or folder rather than a whole disk. The protection travels with the file to a flash drive, an email attachment or a cloud folder. Common everyday forms:
- Microsoft Office's Encrypt with Password option (File, Info, Protect Document), which turns the document itself into ciphertext.
- An encrypted archive made with a tool such as 7-Zip, set to use AES and a password.
- The Encrypting File System (EFS) in Windows Pro editions, turned on through a file's Properties, Advanced, "Encrypt contents to secure data".
Encrypting the whole flash drive also works. BitLocker To Go does this for removable drives. That is disk-level protection applied to the flash drive, and it covers everything on it. It is the better choice when the drive regularly carries sensitive files.
File-level encryption has its own weaknesses. You must choose which files to protect, and one forgotten file stays as plain text. Applications also leave unencrypted temporary copies in other folders. Some products unlock files automatically when you sign in, so that, in NIST's description, once you have logged in you can open the encrypted files without signing in again.[5] That makes the files only as safe as the sign-in password. NIST also advises organizations to teach users their part: encrypting sensitive files and physically protecting mobile devices and removable media.[5] And send the password separately. If the password travels in the same email as the encrypted attachment, anyone who reads the email can open the file. A phone call or a text message keeps the key on a different path.
| Question | File-level encryption | Disk-level encryption |
|---|---|---|
| What is encrypted? | Chosen files or folders | The whole volume, including the operating system and temporary files |
| Does it follow a copied file? | Yes, the file stays ciphertext | No, copies leave as plain text |
| Protects a running, unlocked machine? | Partly, if the file needs its own password | No |
| Main weakness | Easy to forget a file; temporary copies | Useless once the device is unlocked |
| Everyday examples | Office password encryption, encrypted 7-Zip archive, EFS | BitLocker, FileVault, BitLocker To Go on a flash drive |
The point: disk encryption protects a place, and file encryption protects a thing. When data is about to leave the protected place, the protection has to move with it.
Mobile device encryption on iPhone, iPad and Android
Phones get lost far more often than laptops, and they hold mail, photos, banking apps and saved passwords. They are the strongest case for encryption that is on by default. Apple's platform security guide explains that iPad, iPhone and Apple Vision Pro use a file encryption method called Data Protection.[6] Each time a file is created on the data volume, Data Protection creates a new 256-bit key for that file alone.[7] So under the surface, an iPhone uses file-level encryption on every file, but you experience it as a single device setting.
What ties it together is your passcode. The keys are tied to it, so a 6-digit code or a long alphanumeric passcode really is the lock on the data, not just a screen to swipe past. On an iPhone, the bottom of the Face ID & Passcode settings screen says "Data protection is enabled" once a passcode is set. Apps from other developers get this protection automatically.[7] A banking app's stored files therefore benefit without the developer doing anything special. Apple also points out that because the data is encrypted, a lost or stolen device can be wiped instantly and completely from a distance.[6] Erasing the keys is enough to turn everything left on the device into permanent gibberish.
Android phones also have built-in storage encryption tied to the screen lock, and current versions turn it on by default. The menus differ by manufacturer and version, so look in the phone's Security settings. The same rule applies to both platforms: a phone with no screen lock has nothing protecting its keys.
Run the procedure once more. A phone with a passcode is left in a taxi while locked: at rest, the thief holds the device, mobile device encryption applies, and the keys are locked. The data is protected. Change one fact: the phone had no passcode. Now step 4 fails, because no secret stands between the thief and the keys.
HTTPS and Transport Layer Security in the browser
Now move to data in transit. Plain HTTP, the Hypertext Transfer Protocol, sends web pages, form fields and cookies as plain text, so anyone on the same coffee-shop Wi-Fi with a packet-capture tool could read them. HTTPS, Hypertext Transfer Protocol Secure, is HTTP carried inside an encrypted channel. That channel was first built with Secure Sockets Layer (SSL). Its replacement, TLS, is what browsers use today. Every SSL version has been retired, but the old name survives in phrases like "SSL certificate", and CompTIA's acronym list for this exam still spells HTTPS out the older way, as Hypertext Transfer Protocol over Secure Sockets Layer. Treat SSL and TLS as the same idea, with TLS as the current one.
NIST describes TLS as a protected channel for sending data between a server and a client.[4] Inside that channel, the data is scrambled with shared symmetric keys. Before any data moves, the server presents its certificate, so your browser can confirm that the encrypted connection leads to the real bank and not to an impostor in the middle. NIST's guide notes that in the common case, where clients and servers from many different makers must work together, this authentication is done with public-key certificates.[4] Click the padlock in the address bar to see the details. The values here are fictional:
| Field | Example value |
|---|---|
| Issued to | shop.example.com |
| Issued by | Example Trust CA (a fictional certificate authority) |
| Valid from / to | 2026-09-01 / 2027-03-01 |
| Connection | Encrypted, TLS 1.3 |
Worked example: you type a card number into shop.example.com's checkout page on airport Wi-Fi. Step 1: in transit. Step 2: anyone else on that Wi-Fi, and every network between you and the shop. Step 3: HTTPS. Step 4: the session keys exist only in your browser and on the shop's server. The eavesdropper sees ciphertext.
Now change one fact. A month later the shop's database is breached. HTTPS gave no protection against that, and it was never meant to. NIST is explicit that TLS protects only data in transit; stored data needs other controls.[4] Once the card number arrived, it was in the shop's hands. A second limit catches people out: a padlock does not mean a site is honest. A phishing site at shop-example-payments.com can have a perfectly valid certificate for its own name. The padlock tells you the connection is private. It does not tell you who is at the other end. Check the name, as Lesson 17 taught.
Email: protecting the trip and protecting the message
An email does not travel straight from you to the recipient. It goes from your mail app to your provider's server, from there to the recipient's provider, and later to the recipient's app. It is stored for a while at each server. That gives two different jobs for encryption, and NIST's 2016 email guide, Trustworthy Email (Special Publication 800-177), treats them separately.[8] NIST withdrew that edition in February 2019 when it published a revision.[8] The split it draws is the useful part here. For transmission security it recommends TLS.[8] For content security it recommends encrypting and authenticating the message itself with S/MIME, Secure/Multipurpose Internet Mail Extensions.[8]
S/MIME is public-key cryptography applied to one message. To encrypt, the sender's mail app locks the message with the public key in the recipient's certificate, and only the recipient's private key can unlock it. To sign, the sender's app adds a digital signature made with the sender's private key, so the recipient can check who sent the message and that nobody altered it on the way. A rival standard, OpenPGP, based on the Pretty Good Privacy program, does the same two jobs with keys that users usually exchange and vouch for themselves rather than certificates from a certificate authority.
| Question | TLS on each hop | S/MIME (or OpenPGP) on the message |
|---|---|---|
| What is encrypted? | The connection between two machines | The message body and attachments |
| Readable on mail servers? | Yes, each server decrypts and stores it | No, only the recipient's private key opens it |
| Setup needed | Usually none; providers turn it on | Certificates or keys for sender and recipient |
| Protects against | Eavesdroppers on networks | Eavesdroppers and anyone with access to the servers |
The secure mail protocols are the familiar ones wrapped in TLS. Simple Mail Transfer Protocol (SMTP) sends mail, and SMTPS is SMTP over TLS. Internet Message Access Protocol (IMAP) and Post Office Protocol version 3 (POP3) collect mail from the server, and IMAPS and POP3S are their encrypted forms. CompTIA's acronym list writes IMAP as Internet Mail Access Protocol; the standard's own name uses Message. A typical account settings screen looks like this example:
Account settings (example)
Incoming mail IMAP imap.example.com Port 993 Security: SSL/TLS
Outgoing mail SMTP smtp.example.com Port 465 Security: SSL/TLS
Ports 993 and 465 are the standard ports for IMAPS and SMTPS, and POP3S uses 995. A setting of "None" next to security means your password and mail cross the network as plain text.
Worked example: Dana emails the spreadsheet to a client. Both providers use TLS, so nobody on the networks can read it. But copies sit readable on two providers' servers. Change one fact: she needs it unreadable to everyone except the client. That calls for S/MIME, which needs the client's certificate, because the certificate carries the public key her mail app locks the message with. Change another fact: the client has no certificate. Then S/MIME is impossible, and Dana falls back on the Run 3 method. She sends a password-encrypted attachment by email and gives the password by phone. Or she uploads the file to an HTTPS client portal instead.
Virtual private network: a tunnel across someone else's network
A virtual private network (VPN) encrypts all the traffic between your device and a VPN server, whatever application produced it. The draft of NIST's guide to IPsec VPNs (Special Publication 800-77 Revision 1) notes that providing VPN services is the most common use of IPsec.[9] Internet Protocol Security (IPsec) is a family of protocols that encrypts traffic at the network layer, the level where IP addresses carry packets between networks. Some VPN products use TLS instead; the idea is the same. NIST describes a VPN as a virtual network built on top of existing physical networks that gives a secure way to communicate.[9] Because it runs over networks you already have, including the internet, it can move sensitive data safely across public networks.[9] Remote access VPNs, which connect one traveling user to the organization, are the version most people meet.[9]
Worked example: Dana is in a hotel and needs the office file server, which is not reachable from the internet. The file-sharing traffic was designed for a trusted office network, and on shared hotel Wi-Fi it is exposed. With the company VPN on, her laptop builds an encrypted tunnel to the office VPN gateway. Everything she sends travels inside the tunnel, and it comes out on the office network as if she were sitting at her desk.
| Observer | Without a VPN | With the company VPN |
|---|---|---|
| Another guest on the Wi-Fi | Destinations, and any traffic not already protected by HTTPS | Only that she is connected to one VPN server, and how much data moves |
| The hotel's network operator | The same as another guest | The same as another guest: ciphertext to one address |
| The office VPN gateway | Nothing; she cannot reach the office at all | Her traffic, decrypted, entering the company network |
Read the last row carefully, because it is where people go wrong. A VPN moves trust. It does not remove the need for it. The encryption ends at the VPN server. A consumer VPN service hides your traffic from the cafe's Wi-Fi, but the VPN company can now see what the cafe could have seen. After the VPN server, your traffic to a website is only as protected as it would otherwise be, which in practice means HTTPS. A VPN and HTTPS answer different questions. HTTPS protects one conversation with one website all the way to that website. A VPN protects everything your device sends, but only as far as the VPN server.
Mobile applications: encryption with no padlock
Your banking app, your fitness tracker and your food-delivery app all send data to their companies' servers, and none of them shows an address bar or a padlock. They usually use the same TLS that browsers use. NIST's TLS guide notes that the client in a TLS connection is often a web browser, but not always.[4] In a mobile app, the app itself is the client. It opens the encrypted connection and checks the server's certificate.
That shifts responsibility. In a browser, you can inspect the padlock. In an app, you are trusting the developer to have turned encryption on and to check certificates properly. You cannot easily verify it yourself, which is one more reason to install apps only from reputable sources (Lesson 29). Some messaging apps go a step further and advertise end-to-end encryption. The message is encrypted on the sender's phone and decrypted only on the recipient's phone. The company's servers relay ciphertext they cannot read. That is the same idea as S/MIME for email, built into the app.
Run the procedure on a fitness app uploading heart-rate readings. Step 1: in transit to the cloud, and later at rest on the phone. Step 2: anyone on the network, or a finder of the phone. Step 3: the app's TLS connection for the upload, and mobile device encryption for the copy on the phone. Step 4: TLS session keys for the upload, and the passcode-protected keys for storage. A single app needs two different kinds of encryption, one for each state of its data.
The point: for data in transit, ask where the encryption ends. HTTPS ends at the website, TLS email ends at each server, a VPN ends at the VPN server, and end-to-end encryption ends only at the recipient.
Exam cues: matching the stem to the answer
| The question says | Point to | Commonly confused with |
|---|---|---|
| Readable, original, unencrypted data | Plain text | A .txt file format |
| Scrambled output, unreadable without a key | Ciphertext | Encoded or compressed data, which needs no key |
| Stored, saved, on the drive, lost laptop | Data at rest | Data in transit |
| Whole drive, stolen while powered off, BitLocker, FileVault | Disk-level encryption | File-level encryption |
| One document, protection that travels with the file, password on an attachment | File-level encryption | Disk-level encryption, which does not follow copies |
| Lost phone, passcode, remote wipe | Mobile device encryption | Mobile application encryption, which is about data in transit |
| Padlock, website, checkout page, browser | HTTPS (TLS) | VPN |
| Remote worker, public Wi-Fi, reach the internal network, tunnel | VPN | HTTPS |
| Message unreadable even on mail servers, digitally signed mail | S/MIME email encryption | TLS between mail servers |
| App on a phone sending data to its servers | Mobile application (TLS inside the app) | Mobile device storage encryption |
For more depth on the protocols behind these cues, the Atlas Security+ course picks up where this lesson stops.
Common misconceptions
- "My laptop has a password, so my files are encrypted." A sign-in password guards the operating system, not the drive. Someone who removes an unencrypted drive and connects it to another computer can read it without the password.
- "BitLocker protects my laptop at all times." Disk encryption protects a device that is off or hibernating. On a running, unlocked machine the key is already in memory, and the encryption gives no protection.
- "The padlock means the site is safe." The padlock means the connection is encrypted and the certificate matches the site's name. A phishing site can have a valid certificate for its own lookalike name.
- "My email provider uses TLS, so nobody else can read my mail." TLS protects each hop between machines. Every mail server along the route decrypts and stores a readable copy unless the message itself is encrypted with something like S/MIME.
- "A VPN encrypts my traffic all the way to the website and makes me anonymous." VPN encryption ends at the VPN server, and the VPN operator can see what your local network operator could have seen.
- "A zipped or Base64-encoded file is encrypted." Without a secret key, anyone can reverse it. Encoding and compression change the form of data, not who can read it.
The takeaway
- Plain text is readable data. Ciphertext is the same data scrambled by an algorithm and a key, and it can be copied freely but read only by someone who has the key.
- Published algorithms such as AES are not the secret. The key is, so encryption is only as strong as the protection around the key.
- Data at rest is stored, and data in transit is moving across a network. The same file passes through both states, and each state needs its own protection.
- Disk-level encryption (BitLocker, FileVault) protects a whole volume while the device is off. It gives no protection once the device is booted and unlocked.
- File-level encryption protects one file wherever it goes. Disk encryption does not follow a file copied to a USB drive or attached to an email.
- A BitLocker recovery key is a 48-digit number. Without it, an encrypted drive that triggers recovery cannot be unlocked by anyone.
- Phones such as iPhones encrypt every file with its own 256-bit key by default. The passcode is what protects those keys, and remote wipe works by destroying them.
- HTTPS uses TLS, the successor to SSL, to encrypt traffic between a browser and a web server and to check the server's certificate. It does not protect data once the server has stored it.
- TLS protects email on each hop, while S/MIME encrypts the message itself with the recipient's public key. A VPN encrypts all of a device's traffic as far as the VPN server, and mobile apps use TLS without showing a padlock.
Sources
- CompTIA. (2023). CompTIA Tech+ FC0-U71 V6 certification exam: Exam objectives (Document version 4.0). lecbyo.files.cmp.optimizely.com
- Microsoft Support. (n.d.). BitLocker overview. support.microsoft.com
- Microsoft Learn. (n.d.). BitLocker overview. learn.microsoft.com
- NIST. (2019). Guidelines for the Selection, Configuration, and Use of TLS Implementations (SP 800-52 Rev. 2). nvlpubs.nist.gov
- Karen Scarfone, Murugiah Souppaya, Matt Sexton. (2007). Guide to Storage Encryption Technologies for End User Devices (SP 800-111). NIST. nvlpubs.nist.gov
- Apple Support. (n.d.). Encryption and Data Protection overview (Apple Platform Security). support.apple.com
- Apple Support. (n.d.). Data Protection overview (Apple Platform Security). support.apple.com
- NIST. (2016). Trustworthy Email (SP 800-177). csrc.nist.gov
- Elaine Barker, Quynh Dang, Sheila Frankel, Karen Scarfone, Paul Wouters. (2020). Guide to IPsec VPNs (SP 800-77 Rev. 1). NIST. nvlpubs.nist.gov
- Key terms
- Plain text
- Data in its readable, unencrypted form, whatever its file format; cryptographers often write it as one word, plaintext.
- Ciphertext
- Data after encryption has scrambled it; every byte is still present, but it cannot be read without the correct decryption key.
- Encryption key
- The secret value an encryption algorithm uses to turn plain text into ciphertext and back; the security of encrypted data depends on keeping it secret.
- Data at rest
- Data held in storage, such as on a laptop drive, USB flash drive, phone memory or server disk, as opposed to data moving across a network.
- Data in transit
- Data moving across a network, for example between a browser and a website or between a mail app and a mail server.
- Full-disk encryption
- Encryption of an entire storage volume, including the operating system and temporary files; it protects data while the device is off but not once it is booted and unlocked.
- File-level encryption
- Encryption applied to individual files or folders, so the protection stays with each file when it is copied, emailed or uploaded.
- TLS
- Transport Layer Security: the protocol that encrypts traffic between a client and a server and checks the server's identity with a certificate; it replaced SSL and underlies HTTPS.
- VPN
- Virtual private network: an encrypted tunnel that carries all of a device's traffic across an untrusted network to a VPN server, where the encryption ends.
- S/MIME
- Secure/Multipurpose Internet Mail Extensions: a standard that encrypts and signs the email message itself using certificates, so mail servers along the route cannot read it.
Locking Down a Small Wireless Network
- Tell a router's administrator password apart from its Wi-Fi passphrase, and explain why each must be changed from its factory default.
- Choose a safe new SSID, and predict what renaming or hiding it does to connected devices.
- Compare open, pre-shared key, WEP, WPA, WPA2 and WPA3 networks by who can join and whether traffic in the air is encrypted.
- Pick the strongest security mode that a given mix of devices can use, including WPA2/WPA3 transition mode.
Eleven devices on a network that should have seven
On a Friday afternoon, a small office router's status page lists eleven connected devices. The office owns seven: five laptops, one printer and the owner's phone. The office is Harbour Street Accounting, a fictional five-person firm that serves as the worked example in this lesson. Its owner plugged the router in on Monday and never opened its settings.
Here is that status page. The model and every value are invented for the example, but the layout is typical of home and small-office routers.
NETLINK AX1800 (fictional example) Status
---------------------------------------------------------
Admin login admin / admin factory default
Firmware 1.0.4 1.2.1 available
Wi-Fi network name NETLINK-AX1800-7F3A factory default
Security mode Open (no security)
Wi-Fi password (none)
WPS On
Remote management On
Guest network Off
Connected devices 11
Before you read on, go down the list and decide which lines you would change, and in what order. That is the job this objective tests, usually as a short scenario with four candidate settings.
Exam objectives: CompTIA Tech+ FC0-U71, objective 6.5: "Given a scenario, configure security settings for a small wireless network."[1] The objective lists changing the service set identifier (SSID), changing the default password, and encrypted versus unencrypted networks: open, pre-shared key, WPA, WPA2 and WPA3. CompTIA expands WPA as Wireless Protected Access; the official name used everywhere else is Wi-Fi Protected Access. WPA2 and WPA3 are its second and third generations.
Three lines are dangerous on their own: the factory admin login, the factory network name and the Open security mode. Three more are hardening steps that government guidance adds to the exam's list: old firmware (the router's built-in software), Wi-Fi Protected Setup (WPS, a push-button shortcut for joining devices) switched on, and remote management switched on. The guest network that is switched off is a missed opportunity. The four strangers are only the symptom. By the end you will have a finished configuration that removes them and keeps them out, plus a second version for when one old device cannot keep up.
Why radio turns this into a security problem
A wired network has a physical edge. To join it you must reach a socket, and the socket is inside the office. A Wireless LAN (Wireless Local Area Network, WLAN) has no socket. Wi-Fi is the everyday name for WLANs built on the Institute of Electrical and Electronics Engineers (IEEE) 802.11 family of standards, and the devices on one exchange data by radio. NIST, the US National Institute of Standards and Technology, points out that devices only need to be within range of the wireless equipment to use it.[2]
Range does not stop at the wall. For Harbour Street, the café next door, the flat upstairs and a car parked outside may all be inside it. Every wireless security setting therefore answers one of three questions:
- Who can join? This is authentication: proving a device is allowed on the network, usually by knowing a password.
- Who can read the traffic in the air? This is encryption: scrambling data so that only devices holding the right key can turn it back into readable form. Lesson 31 covered the idea. Here it is applied to radio.
- Who can change the rules? This is the router's own administrator login, which controls every other setting.
An open network with a factory login answers all three with "anyone in range." That is Harbour Street's situation, and it explains the four extra devices: a neighbour's phone found a strong signal with no password and joined.
What matters here: radio reaches anyone within range, so securing Wi-Fi means controlling who joins, who can read traffic over the air, and who can change the router's settings. Keep those three questions separate and every setting in this lesson has an obvious home.
Changing the default password: a router has two
"Change the default password" sounds like one task. On a wireless router it is two, and mixing them up is a frequent beginner mistake.
| Secret | What it protects | Who needs to know it | Where the factory value comes from |
|---|---|---|---|
| Administrator (admin) password | The router's settings pages, and so every setting in this lesson | Only the person who manages the router | Set at the factory, often identical on every unit of a model, and printed in the manual or on a label |
| Wi-Fi password (also called the network key, passphrase or pre-shared key) | Joining the wireless network and, on WPA2 or WPA3, the encryption of its traffic | Every person and device that uses the Wi-Fi | Often printed on the label, or absent on an open network |
Start with the admin password. CISA, the US Cybersecurity and Infrastructure Security Agency, notes that most network devices arrive with default administrator passwords so that setup is easy.[3] The same guidance warns that those defaults may be published online or even printed on the device.[3] A New South Wales government guide shows a typical router label on which, in its example, the username and password are both admin.
Now picture what that means at Harbour Street. Anyone on the open network can type the router's address into a browser, enter admin and admin, and then change anything. They could switch off the firewall, redirect the office's Domain Name System (DNS) lookups (the requests that turn website names into numeric addresses) to a server they control, or set a new admin password and lock the owner out of her own router. The admin password is the key to every other key, which is why it comes first.
CISA's router guide asks for a password that is long, random, and unique.[4] Unique means used nowhere else, so a leak from some website cannot unlock the router. You will need this password rarely and forget it easily, so store it in a password manager, as Lesson 30 described.
What goes wrong? Owners change the admin password, forget it, and press the reset button. A factory reset restores every factory setting, including the old defaults. CISA points out the attacker's version of the same trick: anyone who can touch the router can reset it and then use the default details printed on it to get in.[4] So the router belongs where visitors cannot reach it, and after any reset the whole of this lesson must be done again.
The Wi-Fi password is the second secret. A router may carry a sticker with its default settings, and CISA's list of what such a sticker typically shows includes the network name and the key, meaning the Wi-Fi password.[4] Anyone who handles the router, or photographs it, can read that label. Replace the key with a passphrase of your own. CISA suggests a memorable passphrase of 5 to 7 unrelated words totalling at least 16 characters, not reused for any other account.[4] For example (do not use this one), ladder-quilt-otter-pepper-canyon is five words and 32 characters, and it is easy to type on a phone.
What matters here: change the admin password first, because it guards every other setting. Then set a long Wi-Fi passphrase of your own, because it decides who can join and, on WPA2 and WPA3, it is the starting point for the encryption keys.
Changing the service set identifier (SSID)
The Service set identifier (SSID) is the network's name: the text a phone shows in its list of available Wi-Fi networks. CISA defines it as a unique name that identifies a particular WLAN, and every device on that WLAN must use the same SSID to communicate.[3]
Harbour Street's SSID is NETLINK-AX1800-7F3A, which announces the brand and model to everyone in range. CISA warns that a default SSID can tell an attacker about known vulnerabilities in the router you are using.[4] The attacker's process is short. Read the model from the network list, search for that model's default login and published flaws, then try them. Renaming the network removes the first step.
A good new name says nothing about the hardware and nothing about you. CISA advises making the SSID unique and not tied to your identity or location.[3] Here is how candidate names for Harbour Street fare. All are invented examples.
| Candidate SSID | Verdict | Reason |
|---|---|---|
| NETLINK-AX1800-7F3A | Change it | Names the brand and model, so it points straight at the default login and known flaws |
| HarbourSt-Accounting-Suite2 | Avoid | Names the business and its exact location, marking it as a target |
| Patel-Office | Avoid | Names a person |
| FreeWiFi | Avoid | Invites strangers to try it, and looks like a public hotspot |
| Tidewater-Ledger | Good | Unique and recognisable to staff, but reveals nothing about the hardware or the owner |
What happens when you rename it? Each device saves a Wi-Fi network as a name together with its password and security type. Change the name and, from the device's point of view, the saved network has disappeared and an unfamiliar one has appeared. Every laptop, phone and printer must join the new name, even if the passphrase did not change. That is expected behaviour, not a fault, and it is why a technician plans the change: pick a quiet time, have the new name and passphrase written down for staff, and leave time for the printer, whose tiny screen makes rejoining slowest.
Many routers also offer "hide SSID" or "disable SSID broadcast," which stops the router advertising the name. CISA's wireless tip does recommend not publicising the SSID, because a hidden name makes the network harder for attackers to find.[5] Treat it as an optional extra, never as a substitute for encryption. Devices that connect to a hidden network still send its name over the air, so ordinary scanning tools can recover it, and a hidden SSID on an open network is still an open network. Hiding also makes joining harder for your own staff, who must type the name exactly. The exam treats renaming as the expected step; hiding is at most an add-on.
What matters here: rename the SSID because the factory name advertises the router's model, choose a name that identifies neither the hardware nor the owner, and expect every device to need rejoining afterwards.
Encrypted vs. unencrypted: what an open network gives away
Harbour Street's security mode reads Open. An open network is one that asks for no password and applies no encryption to traffic over the air. Many public wireless access points (the radio part of a router, or a standalone box that does the same job) run this way. CISA warns that because such traffic travels "in the clear," attackers can use sniffing tools to capture sensitive details such as passwords or card numbers.[5] A sniffer is simply software that records the wireless frames, the chunks of data sent over the air, that it can hear. The National Security Agency (NSA) adds that on an open network, an attacker who has joined can read or even modify other users' traffic.[6]
Two things limit the damage, and two things do not.
- Limits it: websites using Hypertext Transfer Protocol over Secure Sockets Layer (HTTPS) encrypt their own traffic between your browser and the site. Today HTTPS actually runs over Transport Layer Security (TLS), the successor to SSL. NSA says HTTPS sites protect against eavesdropping on open networks, but only to an extent.[6] Anything sent without its own encryption, such as an old device or app using plain Hypertext Transfer Protocol (HTTP), is still readable.
- Limits it: turning off file sharing when you are on a network you do not control, so that a stranger on the same open network cannot reach folders you have shared.
- Does not limit it: a sign-in web page. Hotels and cafés often show a captive portal, a web page asking for a room number or a click on "I agree" before you get online. That page controls who gets internet access. It does not encrypt anything between your laptop and the access point. If the security type says Open, the air is open.
- Does not limit it: a hidden SSID, for the reasons in the previous section.
Passwordless does not have to mean unencrypted. Alongside WPA3, the Wi-Fi Alliance, the industry group that certifies Wi-Fi products, introduced Opportunistic Wireless Encryption (OWE), intended to replace unencrypted open networks.[6] Users see and join an OWE network just as they would an open one, with no password. Behind the scenes, each device and the access point agree an individual encryption key, using a key exchange that does not check who anyone is.[6] Router menus often label it Enhanced Open. OWE stops strangers from reading your traffic, but it does not stop anyone from joining, so it suits a café, not an office.
| Network type | Who can join | Traffic encrypted over the air? | Sensible use |
|---|---|---|---|
| Open | Anyone in range | No | None worth recommending today |
| Open with a captive portal | Anyone who completes the sign-in page | No | Older hotel and café hotspots |
| Enhanced Open (OWE) | Anyone in range | Yes, with a separate key per device | Public hotspots where a shared password is impractical |
| WPA2-Personal or WPA3-Personal | Anyone who knows the passphrase | Yes | Homes and small offices |
When you are the visitor rather than the owner, CISA's advice is to connect only to access points that use at least WPA2.[5]
What matters here: on the exam, open means unencrypted. A sign-in page or a hidden name does not change that. Only a security mode that encrypts (WPA2, WPA3 or OWE) protects traffic in the air, and only a passphrase-based mode also controls who joins.
Pre-shared key: one password everyone shares
A Pre-shared key (PSK) is a secret that the router and every device are given before they connect, by a person typing it in. "Pre-shared" means it is agreed in advance, outside the network, rather than handed out by the network itself. On home routers, the PSK is the Wi-Fi password. WPA2 normally encrypts with the Advanced Encryption Standard (AES), a cipher, which simply means a scrambling method. CISA's router guide notes that WPA2 with AES is also referred to as WPA2 Pre-Shared Key, or simply WPA2.[4] Router menus usually call this mode WPA2-Personal.
How does it work? The passphrase itself never travels through the air. When a laptop joins, it and the router each use the passphrase to calculate encryption keys, then exchange messages that prove both sides arrived at the same keys. A device with the wrong passphrase calculates different keys, fails that proof, and is refused. The keys then encrypt the traffic, so the PSK does two jobs: it is the entry ticket and the root of the encryption.
The alternative is the Enterprise version of WPA2 or WPA3, in which each user has an individual login checked by a separate authentication server. That suits a business with an IT department. A five-person office like Harbour Street normally uses Personal mode, and that is the mode the Tech+ objective has in mind.
Sharing one key has two consequences you must plan for.
- Everyone has the same key. There are no per-person accounts to delete. When someone who knows the passphrase leaves on bad terms, the only fix is to set a new passphrase on the router and re-enter it on every device that should stay connected. This is one reason to give visitors a separate guest network with its own passphrase.
- A recorded join can be attacked offline. With WPA2-PSK, an attacker who records a device joining can take that recording away and test passphrase guesses against it on their own computer, with no further contact with the router. NSA's 2018 report says WPA2-PSK is susceptible to these brute-force attacks.[6] It put the guessing rate at that time at 400,000 passwords per second.[6]
Work out what that rate means. Take 400,000 guesses per second as an illustration. Faster hardware guesses faster, which only strengthens the conclusion.
| Passphrase pattern | Possible values | Time to try them all at 400,000 per second |
|---|---|---|
| 8 lowercase letters | 268 = 208,827,064,576 | About 522,000 seconds, roughly 6 days |
| 5 words picked at random from a 7,776-word list | 7,7765, about 2.8 x 1019 | About 7.1 x 1013 seconds, roughly 2.25 million years |
The arithmetic for the first row: 26 choices for each of 8 positions gives 268 combinations. Dividing 208,827,064,576 by 400,000 gives about 522,068 seconds, and dividing by the 86,400 seconds in a day gives about 6 days. The second row multiplies 7,776 by itself five times, about 2.84 x 1019. Dividing by 400,000 gives about 7.1 x 1013 seconds, and dividing by roughly 31.6 million seconds in a year gives about 2.25 million years. Real attackers try likely words first, so a password such as harbour2024 falls far faster than its length suggests. Words chosen at random, not clever letter substitutions, are what make the second row safe.
What matters here: a pre-shared key is one passphrase shared by every user. It both admits devices and seeds the encryption. Changing it means updating every device, and on WPA2 its length is the main defence against offline guessing.
WEP, WPA, WPA2 and WPA3: four generations of wireless encryption
A naming note first. The official name of the family is Wi-Fi Protected Access, the name the Wi-Fi Alliance, CISA and NSA use. The Tech+ objectives and acronym list print it as "Wireless Protected Access." On the exam, treat the two as the same thing, and use the official name at work. CompTIA's acronym list also expands WEP as "Wired Equivalency Privacy"; its usual name is Wired Equivalent Privacy.
Each generation arrived as the weaknesses of the one before it became clear.
- WEP came with the original 802.11 standard in the late 1990s. Design flaws let attackers recover its key from captured traffic, and it is long obsolete.
- WPA arrived in 2003 as an emergency replacement that could run on WEP-era hardware after a firmware update. It used the Temporal Key Integrity Protocol (TKIP), which patched WEP's worst problems but kept WEP's old cipher underneath.
- WPA2 followed in 2004 and replaced TKIP with AES. WPA2 still allowed TKIP for compatibility, which is why "WPA2 (AES)" and "WPA2 (TKIP)" are different settings.
- WPA3 was announced on 8 January 2018, together with enhancements to WPA2.[6]
For a small network, WPA3's main change is how it uses the password. It replaces PSK mode with a more resilient password-based method.[6] That method, Simultaneous Authentication of Equals (SAE), is designed to resist brute-force attempts to recover the password or the keys derived from it, even when the password is weak.[6] With SAE, a recording of a device joining is no longer something an attacker can take home and guess against at leisure. Each guess needs a live exchange with the network. For users nothing visible changes: they still type a password, exactly as with WPA2-PSK. Router menus call this mode WPA3-Personal.
The 2018 changes also protect the network's housekeeping messages. Management frames start and end Wi-Fi connections, and without Protected Management Frames (PMF) they are sent unencrypted and unchecked. In some attacks, the first stage is a forged disconnect message that knocks devices off a network and forces them to join again.[6] NSA's report says the WPA2 enhancements require PMF, and WPA3 builds on those enhancements.[6] For larger organisations, WPA3-Enterprise offers stronger encryption options. Those details belong to Network+ and Security+. For Tech+, remember that WPA3 is the newest and strongest.
| Generation | Introduced | Encryption | How a Personal network joins | Status today |
|---|---|---|---|---|
| WEP | Late 1990s | RC4 cipher with a static key | Shared key | Broken; never use |
| WPA | 2003 | TKIP | Pre-shared key | Obsolete; do not use |
| WPA2 | 2004 | AES (or TKIP for compatibility) | Pre-shared key | Acceptable with AES only |
| WPA3 | 2018 | AES | SAE | Preferred |
Government guidance lines up behind that table. CISA's router guide says WPA3-Personal and WPA2 with AES are the only two forms considered safe against attackers trying to see your traffic.[4] It tells owners whose router is open, or uses WEP, WPA, or WPA2 with TKIP, to get the router upgraded or replaced.[4] The New South Wales guide gives the same verdict on WEP and WPA.[7]
Here is what the security menu on a typical router looks like, with a verdict on each choice. The menu is a composite example; your router's wording will differ.
Wireless security mode
( ) None (Open)
( ) Enhanced Open (OWE)
( ) WEP
( ) WPA-Personal (TKIP)
( ) WPA/WPA2-Personal (TKIP+AES)
( ) WPA2-Personal (AES)
( ) WPA2/WPA3-Personal (transition)
(o) WPA3-Personal
| Menu choice | Verdict for a small office |
|---|---|
| None (Open) | No: anyone joins, and nothing is encrypted |
| Enhanced Open (OWE) | Encrypted, but anyone can join; for public hotspots only |
| WEP | No: broken |
| WPA-Personal (TKIP) | No: obsolete |
| WPA/WPA2-Personal (TKIP+AES) | No: the word TKIP means old, weak connections are still welcome |
| WPA2-Personal (AES) | Acceptable when the router or some device cannot do WPA3 |
| WPA2/WPA3-Personal (transition) | Good compromise: WPA3 devices use WPA3, and WPA2-only devices still join |
| WPA3-Personal | Best, when every device supports it |
Transition mode exists because no office replaces every device at once. NSA expected WPA3 access points to stay backward compatible with WPA2 devices until WPA2 is phased out.[6] The trade-off is real. A network that still accepts WPA2 still offers WPA2's weaknesses to anyone who joins that way, so a long passphrase matters just as much in transition mode.
What matters here: choose the newest mode every device supports. WPA3-Personal is best, WPA2-Personal with AES is the floor, and any menu choice containing WEP, TKIP or plain WPA is a wrong answer.
Working the scenario: Harbour Street's finished settings
Back to the status page. In this first run, assume all seven of the office's devices support WPA3. Here is the work in the order a technician would do it, with the reason for each step.
| Step | Setting | Before | After | Why this step, and why here |
|---|---|---|---|---|
| 0 | Connection | Wireless | Laptop plugged into the router with an ordinary network (Ethernet) cable | Steps 3 to 5 disconnect every wireless device, including the one doing the work |
| 1 | Admin password | admin / admin | Long, random, unique; saved in a password manager | Until this changes, anyone on the open network can undo everything else |
| 2 | Firmware | 1.0.4 | 1.2.1 | Updates fix known flaws before the router is relied on |
| 3 | Security mode | Open | WPA3-Personal | Every device supports it; it encrypts traffic and resists offline guessing |
| 4 | Wi-Fi passphrase | None | Five random words, at least 16 characters | Decides who can join; length protects it |
| 5 | SSID | NETLINK-AX1800-7F3A | Tidewater-Ledger | Stops advertising the model; done together with steps 3 and 4 so devices rejoin only once |
| 6 | WPS | On | Off | Removes a shortcut that makes unauthorised joining more likely |
| 7 | Remote management | On | Off | Settings can then be changed only from inside the network |
| 8 | Guest network | Off | On, WPA3 or WPA2, with its own passphrase | Visitors and smart devices get internet access without reaching the office laptops |
| 9 | Connected devices | 11 | 7 | Confirms the strangers are gone; check again from time to time |
Several rows rest on guidance beyond the exam's bullet list, so here is the support. CISA notes that firmware updates fix flaws and address security vulnerabilities.[3] Turning off remote management means nobody can change the router's settings over the internet; they must first connect to the network, by cable or by Wi-Fi. WPS, which joins devices with a button press or a Personal Identification Number (PIN), is on CISA's list to disable because it raises the chance of unauthorised access.[4] The same guide asks owners to switch off Universal Plug and Play (UPnP), a feature that lets devices open paths through the router automatically, because attackers can use it to spread malware and control devices remotely.[4] Harbour Street's status page did not show UPnP, so the technician should look for it in the advanced settings.
The guest network deserves a moment. CISA suggests putting smart home and other Internet of Things (IoT) devices on the guest network when internet access is all they need.[4] The everyday benefit is that visitors can get online without being told the main Wi-Fi password. Give the guest network its own passphrase and, ideally, the same strong security mode.
Finally, check that the router's firewall is actually on. CISA warns that some firewall features, including the firewall itself, may be off by default.[3] Lesson 12 explained what that firewall does.
Why did the four strangers disappear at step 3? Their phones had joined an open network. Once the security mode changed, the network demanded a passphrase they did not know. Notice that the strangers were removed by encryption and a passphrase, not by the new name. If the owner had only renamed the network and left it open, they could simply have joined Tidewater-Ledger instead.
Some routers also offer MAC filtering: allowing only devices whose Media Access Control (MAC) address, the hardware address of each network adapter, is on a list. On its own it is a weak lock, because devices transmit their MAC addresses unencrypted and an attacker can copy an allowed one. Treat it as an extra, never as a substitute for WPA2 or WPA3.
Second run: the payment terminal that only speaks WPA2
Change one input. Harbour Street also has a card payment terminal (an invented device for this example) made in 2016. Its settings menu offers WPA2-Personal (AES) and nothing newer. It must stay wireless because it sits on the front counter, far from any network socket.
Apply the first run's settings and see what breaks. With the router set to WPA3-Personal only, the terminal cannot join. Its screen shows a connection error, and the office cannot take card payments. Security has been bought by sacrificing availability, the third part of the confidentiality, integrity and availability triad from Lesson 27, and that is not an acceptable configuration for a business.
The fix is the transition setting, WPA2/WPA3-Personal. The newer devices keep using WPA3 and its SAE protection. The terminal joins with WPA2 and AES, which is still one of the two modes CISA counts as safe. The long passphrase from step 4 now matters even more, because a WPA2 join can be recorded and guessed offline. Plan to replace the terminal when the budget allows, then switch the network to WPA3-only.
Now change the input once more. Suppose the terminal offered only WPA-Personal (TKIP). Transition mode no longer helps, because it accepts WPA2 and WPA3, not plain WPA. The tempting move is to drop the whole network to WPA/WPA2 mixed mode so the terminal can join. That would weaken every device in the office for the sake of one. The right decisions are to connect the terminal by cable, or to replace it, and to keep the main network on a strong mode.
| Oldest device that must connect supports | Best security mode for the main network |
|---|---|
| WPA3-Personal | WPA3-Personal |
| WPA2-Personal (AES) | WPA2/WPA3-Personal transition, or WPA2-Personal (AES) if the router has no WPA3 |
| WPA (TKIP) or WEP only | Keep WPA3 or transition mode; connect the old device by cable or replace it |
What matters here: the right security mode depends on the oldest device that must connect. Raise the network to the best mode all required devices share, and never lower the whole network to TKIP, WPA or WEP for one device.
Reading the exam's wireless security scenarios
Objective 6.5 begins "Given a scenario," so questions describe a situation and ask for the best setting. These cues point to the expected choice, including the pairs people mix up.
| The stem says | Points to | Commonly confused with |
|---|---|---|
| Anyone could log in to the router's settings using the manual's login | Change the default administrator password | Changing the Wi-Fi passphrase, which controls joining, not settings |
| The network name shows the router's brand and model | Change the SSID | Hiding the SSID, which does not stop discovery |
| Neighbours can join without a password, and traffic can be read | Enable encryption: WPA3-Personal, or WPA2-Personal with AES | Adding a sign-in page, which encrypts nothing |
| Strongest option for a home network where all devices are new | WPA3 (WPA3-Personal) | WPA2, which is acceptable but not strongest |
| One older device supports only WPA2 | WPA2/WPA3 transition mode | WPA/WPA2 mixed mode with TKIP |
| Everyone uses the same Wi-Fi password | Pre-shared key (Personal mode) | Enterprise mode, where each user has a login |
| Security type shows Open | Unencrypted network | Enhanced Open (OWE), which is passwordless but encrypted |
| A former employee still knows the Wi-Fi password | Set a new passphrase and update every device | Renaming the SSID, which leaves the old passphrase working |
| Visitors or smart devices need internet access only | Guest network with its own passphrase | Sharing the main passphrase |
| A settings menu offers WEP | Never the right fix | WPA, which is also obsolete |
Common misconceptions
- "Changing the default password" means changing the Wi-Fi password. A router has two secrets. The admin password controls the settings; the Wi-Fi passphrase controls joining. An attacker with the factory admin login can read or change the Wi-Fi passphrase anyway, so both must change, admin first.
- A hidden SSID is a secure SSID. Devices that connect to a hidden network still send its name over the air, so scanners recover it. Hiding is an optional extra, not a lock, and it does nothing for an open network.
- A sign-in page means the Wi-Fi is secured. A captive portal controls internet access. If the security type is Open, traffic between the device and the access point is unencrypted.
- Renaming the network kicks out intruders. A new name with no encryption, or with the old passphrase, lets the same people join again. Intruders are removed by a security mode with a passphrase they do not know.
- WPA2 is fine with any cipher. WPA2 with TKIP is on CISA's list of settings to abandon. Only WPA2 with AES, or WPA3, counts as safe.
- A short password is fine because WPA3 is strong. SAE resists offline guessing, but a guessable password can still be tried directly, passed to the wrong person, or attacked when a WPA2 device joins in transition mode. Length still matters.
Summing up
- A wireless router has two default secrets: the administrator password, which controls all settings, and the Wi-Fi passphrase, which controls joining. Change the admin password first.
- Factory admin logins are published online and printed on labels, and a factory reset restores them, so keep the router physically out of visitors' reach.
- The SSID is the network name. A factory SSID reveals the router's brand and model; a new one should name neither the hardware nor the owner.
- After an SSID change, every device must rejoin the new name. Hiding the SSID does not stop it being discovered.
- An open network has no password and no encryption over the air. A captive sign-in page does not change that, while OWE (Enhanced Open) encrypts without a password.
- A pre-shared key is one passphrase for every user (Personal mode). When someone who knows it leaves, set a new one and update every device.
- WEP and WPA with TKIP are obsolete, and WPA2 with AES is the minimum. WPA3, announced in 2018, replaces PSK with SAE, which resists offline password guessing.
- Choose the newest mode every required device supports: WPA3-Personal, or WPA2/WPA3 transition mode when one device is WPA2-only. Never drop the whole network to TKIP.
- Further hardening beyond the exam list: update firmware, disable WPS, remote management and UPnP, and put visitors and IoT devices on a guest network.
Sources
- CompTIA. (2023). CompTIA Tech+ FC0-U71 V6 certification exam: Exam objectives (Document version 4.0). lecbyo.files.cmp.optimizely.com
- Murugiah Souppaya and Karen Scarfone. (2012). Guidelines for Securing Wireless Local Area Networks (WLANs), SP 800-153. NIST. nvlpubs.nist.gov
- CISA. (n.d.). Securing Your Home Network / Home Network Security tip (ST15-002). cisa.gov
- CISA. (n.d.). Project Upskill Module 5 (home router and Wi-Fi security). cisa.gov
- CISA. (n.d.). Securing Wireless Networks (ST05-003). cisa.gov
- National Security Agency (NSA). (2019). Cybersecurity Technical Report: WPA3. media.defense.gov
- Digital NSW (NSW Government). (2023). Guide to securing your home Wi-Fi. digital.nsw.gov.au
- Key terms
- Service set identifier (SSID)
- The name of a wireless network, shown in a device's list of available Wi-Fi networks; every device on that network uses the same SSID.
- Default administrator password
- The factory-set login for a router's settings pages, often the same on every unit of a model and published online, so it must be replaced with a long, unique password.
- Open network
- A Wi-Fi network that needs no password to join and does not encrypt traffic between devices and the access point.
- Pre-shared key (PSK)
- A single Wi-Fi passphrase typed into the router and every device in advance; it controls who can join and is the starting point for the encryption keys in WPA2-Personal.
- WEP
- Wired Equivalent Privacy (listed by CompTIA as Wired Equivalency Privacy), the original 1990s Wi-Fi encryption scheme, now broken and never appropriate to use.
- WPA
- Wi-Fi Protected Access (listed by CompTIA as Wireless Protected Access), the 2003 stopgap replacement for WEP that used TKIP and is now obsolete.
- WPA2
- The 2004 generation of Wi-Fi Protected Access that uses AES encryption; WPA2-Personal with AES is the minimum acceptable setting today, while WPA2 with TKIP is not.
- WPA3
- The generation of Wi-Fi Protected Access announced in 2018 and currently the strongest; its Personal mode uses SAE instead of a pre-shared key exchange.
- Simultaneous Authentication of Equals (SAE)
- The password-based joining method in WPA3-Personal, designed so that a recorded connection cannot be used to guess the password offline.
- Opportunistic Wireless Encryption (OWE)
- A WPA3-era mode, often labelled Enhanced Open, that lets anyone join without a password but encrypts each device's traffic with its own key.