Skip to content
🎯⭐ INTERACTIVE LESSON

Fault Tolerance & Cybersecurity

Learn step-by-step with interactive practice!

Fault Tolerance & Cybersecurity - Complete Interactive Lesson

Part 1: Redundancy, Encryption, and Network Security

🛡️ Fault Tolerance & Security

Part 1 of 7 — Redundancy, Encryption, and Network Security


Fault Tolerance

Fault tolerance is the ability of a system to support failures and still continue to function.

Redundancy

The primary method for achieving fault tolerance is redundancy — having backup components or paths.

TypeDescriptionExample
Path redundancyMultiple routes between nodesInternet routing around a failed link
Data redundancyMultiple copies of dataBackup copies kept on another device
Hardware redundancyBackup equipmentRedundant servers, power supplies

Internet Redundancy

    A ---- B ---- C
    |      |      |
    D ---- E ---- F

If the link between B and C fails, data can route A → B → E → F → C or A → D → E → F → C. Multiple paths ensure no single failure brings down the network.

🔑 The Internet was engineered to be fault-tolerant, with redundant paths so that a single failure does not take down the network. If a device or connection fails, later data are sent along a different route, if one exists.

Concept Check 🎯

Cybersecurity Fundamentals

Encryption

Encryption transforms readable data (plaintext) into unreadable data (ciphertext) to protect it from unauthorized access.

TypeKeysWho can decrypt
SymmetricOne shared key for both encryption and decryptionAnyone with the shared key
Public key (asymmetric)A public key encrypts; a private key decryptsOnly the holder of the private key

With public key encryption, the sender does not need the receiver's private key to encrypt a message, but the receiver's private key is required to decrypt it. Certificate authorities issue digital certificates that validate who owns the encryption keys used in secure communications. (The math behind encryption is not on the AP exam.)

Common Threats

ThreatDescription
PhishingFake emails/sites tricking users into giving up passwords
MalwareSoftware designed to damage or gain unauthorized access
Computer virusA malicious program that copies itself and gains unauthorized access, often by attaching to a legitimate program
KeyloggingA program records every keystroke to capture passwords
Rogue access pointA wireless access point that gives unauthorized access to a network; data sent through it can be intercepted

Applied Recall ✍️

  1. Having multiple backup paths or components so a system continues working after a failure is called _______.

  2. Encryption that uses one shared key for both encryption and decryption is called _______ encryption.

  3. An attack that tricks users into revealing passwords through fake emails or websites is called _______.

Security Classification 🔍

AP Exam Strategy: Fault Tolerance & Security

  • Redundancy is the #1 fault tolerance mechanism — multiple paths and backups
  • Know symmetric (one shared key) vs public key (public key encrypts, private key decrypts)
  • Certificate authorities issue digital certificates that validate ownership of encryption keys
  • Know common threats: phishing, malware and viruses, keylogging, rogue access points
  • A single point of failure means the system is NOT fault tolerant at that point
  • More connections in a network = more redundancy = more fault tolerant

AP-Style Application 🎯

Part 2: Key Processes

🛡️ Fault Tolerance & Security

Part 2 of 7 — Key Processes


Fault Tolerance: Working Despite Failures

When a system can support failures and still continue to function, it is fault-tolerant. The key idea is redundancy: the inclusion of extra components that can be used to mitigate failure if other components fail.

Redundant componentHow it tolerates faults
Extra pathsIf one connection fails, data take another route.
Extra serversIf one server crashes, another keeps the service running.
Extra copies of dataIf one drive fails, a backup copy on another device survives.

Redundancy usually requires additional resources (more devices, more connections, more cost), but it provides the benefit of fault tolerance.

Concept Check 🎯

Why The Internet Survives Failures

The Internet has been engineered to be fault-tolerant, with abstractions for routing and transmitting data. Elements of complex systems fail at unexpected times, often in groups (a storm can knock out several connections at once), and fault tolerance lets users keep using the network.

FailureWhat the redundancy does
A cable is cutData are sent along a different route, if one exists.
A server crashesAnother server handles the requests.
A disk failsA backup copy on another device is used.

The redundancy of routing options between two points also increases the reliability of the Internet and helps it scale to more devices and more people.

Identifying Vulnerabilities

To find where a system can fail, look for a component that everything depends on.

Network: Lab–Hub, Library–Hub, Office–Hub, Hub–Internet.

  • Every device reaches the Internet through Hub, so Hub is a single point of failure.
  • The Hub–Internet connection is also a single point of failure.
  • Adding a second connection from the Library straight to the Internet gives the Library a path that does not depend on the Hub.

Applied Recall ✍️

  1. Including extra components so a system keeps working when others fail is called _______.

  2. A component that every path depends on is called a single point of _______.

  3. A system that can support failures and still function is called fault-_______.

Targeted Practice 🔍

AP Exam Strategy: Fault Tolerance

  • Redundancy (extra components) = the canonical fault-tolerance answer.
  • Redundancy costs additional resources; its benefit is fault tolerance.
  • To identify a vulnerability, find a component that every path or process depends on.
  • The Internet itself is a giant fault-tolerant system.

AP-Style Application 🎯

Part 3: Patterns & Examples: Authentication and Encryption

🛡️ Fault Tolerance & Security

Part 3 of 7 — Patterns & Examples: Authentication and Encryption


Authentication: Proving Who You Are

Authentication measures protect devices and information from unauthorized access. Two examples the AP exam names:

  • A strong password is easy for the user to remember but difficult for someone else to guess based on knowledge of that user.
  • Multifactor authentication (MFA) grants access only after the user presents several separate pieces of evidence, typically from at least two of these categories:
CategoryMeaningExample
KnowledgeSomething you knowA password or PIN
PossessionSomething you haveA phone that receives a code
InherenceSomething you areA fingerprint or face scan

Each MFA step adds a new layer of security that must be broken to gain unauthorized access.

Concept Check 🎯

Encryption

Encryption is the process of encoding data to prevent unauthorized access. Decryption is the process of decoding the data.

ApproachHow it works
SymmetricOne key is used for both encryption and decryption.
Public keyA public key encrypts; a private key decrypts. The sender does not need the receiver's private key to encrypt, but the receiver's private key is required to decrypt.

Certificate authorities issue digital certificates that validate the ownership of encryption keys used in secure communications; they are based on a trust model. You do not need to know the math of any encryption method; that is outside the AP exam.

Protecting a Computer

ProtectionWhy it helps
Virus and malware scanning softwareHelps protect a system against infection.
Regular software updatesAll real-world systems have errors or design flaws that can be exploited; updates fix them.
Reviewing program permissionsUsers can control what information programs collect about them.

Applied Recall ✍️

  1. A phone that receives a login code belongs to the _______ category of authentication factors.

  2. Encryption that uses one shared key for both encryption and decryption is called _______ encryption.

  3. Decoding encrypted data back into readable form is called _______.

Targeted Practice 🔍

AP Exam Strategy: Security Basics

  • MFA uses at least two categories: knowledge, possession, inherence.
  • Symmetric = one shared key. Public key = public key encrypts, private key decrypts.
  • Certificate authorities validate who owns encryption keys.
  • Malware scanning, regular updates, and reviewing permissions all protect a system.

AP-Style Application 🎯

Part 4: Connections: Parallel and Distributed Computing

🛡️ Fault Tolerance & Security

Part 4 of 7 — Connections: Parallel and Distributed Computing


Many Computers, One Problem

Fault tolerance uses extra devices so a system survives failures. The same idea of many devices working together also makes computing faster and lets us solve bigger problems.

ModelMeaning
Sequential computingOperations are performed in order, one at a time.
Parallel computingThe program is broken into multiple smaller sequential operations, some of which are performed at the same time.
Distributed computingMultiple devices are used to run a program.

Concept Check 🎯

How Long Does Each Solution Take?

We compare the efficiency of solutions by comparing the time they take to perform the same task.

  • A sequential solution takes as long as the sum of all its steps.
  • A parallel solution takes as long as its sequential tasks plus the longest of its parallel tasks.

Example: a teacher's grading program must load a class list (2 minutes, sequential), then grade three sections that take 4, 7, and 5 minutes.

SolutionTime
Sequential2 + 4 + 7 + 5 = 18 minutes
Parallel (three processors, one section each)2 + 7 = 9 minutes

Why Distributed Computing Matters

  • Distributed computing allows problems to be solved that could not be solved on a single computer, because of either the processing time or the storage needed.
  • It also allows much larger problems to be solved more quickly than a single computer could.
  • Solutions that use parallel computing can scale more effectively than sequential solutions.

Examples: a weather model split across thousands of computers; a science project that sends small pieces of a huge data set to volunteers' computers.

Applied Recall ✍️

  1. Performing operations in order, one at a time, is called _______ computing.

  2. Using multiple devices to run a program is called _______ computing.

  3. Independent tasks of 4, 7, and 5 minutes run sequentially take _______ minutes.

Targeted Practice 🔍

AP Exam Strategy: Parallel and Distributed

  • Sequential time = sum of all steps.
  • Parallel time = sequential tasks + the longest parallel task.
  • Distributed computing = many devices; it handles problems too slow or too large for one computer.
  • Read carefully: which steps MUST run in order, and which can run at the same time?

AP-Style Application 🎯

Part 5: Speedup and the Limits of Parallelism

🛡️ Fault Tolerance & Security

Part 5 of 7 — Speedup and the Limits of Parallelism


Measuring Speedup

The speedup of a parallel solution is measured as:

speedup = time to complete the task sequentially ÷ time to complete the task in parallel

Sequential timeParallel timeSpeedup
60 s30 s2
90 s30 s3
100 s80 s1.25

A parallel computing solution consists of a parallel portion and a sequential portion. Only the parallel portion gets faster when you add processors.

Concept Check 🎯

Worked Example: The Sequential Portion Sets a Floor

A program has a 30-second sequential portion and 60 seconds of work that can be split evenly across processors.

ProcessorsTimeSpeedup
130 + 60 = 90 s1
230 + 30 = 60 s1.5
330 + 20 = 50 s1.8
630 + 10 = 40 s2.25
6030 + 1 = 31 sabout 2.9

No matter how many processors are added, the program can never finish in less than 30 seconds, so the speedup can never reach 90 ÷ 30 = 3. When increasing the use of parallel computing, the efficiency of the solution is still limited by the sequential portion.

Choosing a Model

SituationGood fit
A small task with steps that depend on each otherSequential
Many independent tasks of similar sizeParallel
A problem too slow or too large for one computerDistributed

Applied Recall ✍️

  1. In the worked example, the speedup with 2 processors is _______.

  2. No matter how many processors are added, the worked example can never finish in less than _______ seconds.

  3. Speedup equals the sequential time divided by the _______ time.

Targeted Practice 🔍

AP Exam Strategy: Speedup

  • Speedup = sequential time ÷ parallel time (bigger is better; 1 means no gain).
  • Parallel time = sequential portion + longest parallel task.
  • The sequential portion sets a floor on the time and a ceiling on the speedup.
  • "Will doubling the processors double the speed?" → only if there is no sequential portion and the work splits evenly.

AP-Style Application 🎯

Part 6: Problem-Solving Workshop

🛡️ Fault Tolerance & Security

Part 6 of 7 — Problem-Solving Workshop


Fault Tolerance & Security Workshop

Practice the three kinds of reasoning this topic asks for: spotting weak points and adding redundancy, timing parallel solutions, and recognizing how attackers gain access.

Concept Check 🎯

Worked: Making a Service Survive Failures

A school's homework site runs on one server in one building with one Internet connection.

Weak pointRedundancy that fixes it
One serverA second server that can take over
One Internet connectionA second connection from a different provider
One copy of the dataA backup copy kept on another device

Each fix costs more, but each removes a single point of failure.

Worked: Phishing Triage

Phishing tries to trick a user into providing personal information, which can then be used to access accounts. Malicious links can be disguised in a web page or email, and unsolicited emails can come from unknown senders or from known senders whose accounts were compromised.

  1. Don't click links or open attachments you did not expect.
  2. Check the sender's address for look-alike spellings.
  3. Check where a link actually leads before following it.
  4. Verify by contacting the company at a phone number or website you already trust.
  5. Report the message as phishing.

Worked: Timing a Parallel Job

A job has a 6-second sequential step, then three independent tasks of 9, 4, and 7 seconds.

  • Sequential: 6 + 9 + 4 + 7 = 26 seconds.
  • Parallel on three processors: 6 + 9 = 15 seconds.
  • Speedup: 26 ÷ 15 ≈ 1.7.

Applied Recall ✍️

  1. A technique that tricks a user into giving away personal information is called _______.

  2. In the timing example, the parallel job takes _______ seconds.

  3. In the timing example, the job takes _______ seconds when run sequentially.

Targeted Practice 🔍

AP Exam Strategy: Workshop

  • Find the single point of failure, then add a redundant component that bypasses it.
  • Parallel time = sequential part + longest parallel task; speedup = sequential ÷ parallel.
  • Phishing, malicious links, unsolicited attachments, untrustworthy downloads, keylogging, and rogue access points are how unauthorized access is gained.

AP-Style Application 🎯

Part 7: AP Review

🛡️ Fault Tolerance & Security

Part 7 of 7 — AP Review


AP Exam Recap — Fault Tolerance & Security

Concept Check 🎯

Final Vocab

TermDefinition
Fault toleranceSupports failures and still continues to function.
RedundancyExtra components that mitigate failure; costs additional resources.
Sequential / parallel / distributedOne at a time / some at the same time / many devices.
SpeedupSequential time ÷ parallel time.
Symmetric / public key encryptionOne shared key vs. a public key to encrypt and a private key to decrypt.
Certificate authorityIssues digital certificates that validate ownership of encryption keys.
MFAAccess only after evidence from two or more categories: know, have, are.
Phishing / keylogging / rogue access pointCommon ways unauthorized access is gained.
Malware / virusSoftware meant to damage or control a system / a program that copies itself.

Common Pitfalls

  • Thinking redundancy is free; it costs extra resources.
  • Adding parallel task times instead of taking the longest one.
  • Forgetting the sequential portion limits speedup.
  • Thinking the sender needs the receiver's private key to encrypt.
  • Treating a password plus a second password as multifactor.

Applied Recall ✍️

  1. Including extra components to mitigate failure is called _______.

  2. A program that records every keystroke to capture passwords is used for _______.

  3. A second proof of identity beyond the password is the second _______.

Targeted Practice 🔍

Final Exam Tips

  • Fault tolerance comes from redundancy; find and remove single points of failure.
  • Parallel time, speedup, and the limit set by the sequential portion.
  • Symmetric vs. public key encryption; certificate authorities; MFA categories.
  • Know how unauthorized access is gained: phishing, keylogging, malware, rogue access points, untrustworthy downloads.

AP-Style Application 🎯