Skip to main content

4.2 Fault Tolerance

add to ChatGPT
Verified for the 2027 examUpdated September 2026Fiveable Content Team
Fiveable

⌨️AP Computer Science Principles Unit 4 Review

QR code for AP Computer Science Principles practice questions

4.2 Fault Tolerance

Fault tolerance means a system keeps working even when part of it fails. The Internet is fault tolerant mainly through redundancy, like having more than one path between two devices, so if a connection or device goes down, data can travel a different route. For AP Computer Science Principles, use network diagrams to identify redundant paths and explain why they make a system more reliable.

Fault tolerance falls under the computing systems and networks content, and the skills tied to it are explaining how a computing system works and evaluating solution options.

Redundancy Lets a System Survive Failures

  • A system is fault-tolerant when it can keep functioning even if one or more parts fail.
  • Redundancy means including extra components so the system can handle a failure, and it is the main way the Internet achieves fault tolerance.
  • Network redundancy often means having more than one path between any two connected devices.
  • If a device or connection on the Internet fails, data can be rerouted along a different path when one is available.
  • Redundancy of routing options makes the Internet more reliable and helps it scale to more devices and more people.
  • Fault tolerance and redundancy cost extra resources, so developers must decide what is worth duplicating.

What Is Fault Tolerance?

Image source: Thomas Kinto on Unsplash

A system is fault-tolerant when it can handle failures and keep working. This matters because pieces of large, complicated systems break at surprising moments, frequently several at once, and fault tolerance means people can still use the system.

The Internet was engineered to be fault-tolerant, using abstractions for routing and transmitting data. When you send something online, it does not depend on one single perfect path staying up the whole time.

A non-digital way to picture this is a road system. There are usually multiple routes from one place to another, so if a crash or construction blocks one road, you can still reach your destination. The system keeps working even when one road stops operating, which makes it relatively fault-tolerant.

Redundancy

Redundancy means building in backup components that step in and limit the damage when other components stop working. This is the main reason the Internet stays reliable.

One common way to build network redundancy is to have more than one path between any two connected devices. If a particular device or connection on the Internet fails, later data will be sent via a different route when one is available. In practice, that often means having multiple physical cables and routers between locations.

The benefit goes beyond just surviving failures. Having several possible routes between two points makes the Internet more reliable and lets it grow to reach more devices and more people, because data has more paths it can take.

Application Examples

These are real-world illustrations, not required AP content:

  • A company that wants a more reliable connection might use multiple Internet providers or multiple cable channels, so if one undersea cable is damaged or one router goes down, data can still reach its destination.
  • Some websites use load balancing, where traffic is spread across several servers, so the site keeps running even if one server goes down.
  • Some systems use failover, switching to a backup machine when the main one fails.

Load balancing and failover are not tested terms in AP Computer Science Principles. Use them only to picture how redundancy works.

Benefits of Fault Tolerance

Fault tolerance reduces vulnerabilities to failure in a system and makes the system more reliable.

  • It prevents single failures from shutting everything down. Parts fail at unpredictable times and often in groups. For example, a natural disaster that damages one piece of equipment in an area is likely to knock out others nearby. Fault tolerance keeps the larger system running through those failures.
  • It helps the system scale. Because redundant routing gives data more paths to travel, a fault-tolerant routing system can handle more devices and more traffic than one without redundancy.

A useful application example: a Distributed Denial of Service (DDoS) attack floods a server or network with traffic until it slows or crashes. Having a redundant server or connection can let traffic route around the problem. DDoS is an example to help you understand, not a required term for this topic.

Tradeoffs and Vulnerabilities

Redundancy within a system often requires additional resources but provides the benefit of fault tolerance. More cables, more routers, and more maintenance all cost money, so building a fault-tolerant system is more expensive than building one with a single path.

This cost has real effects. Places with fewer resources can end up with more vulnerable networks because they cannot afford as much redundancy. Developers also cannot duplicate everything, so they have to choose which parts of a system most need fault tolerance.

When you identify vulnerabilities in a system, look for any spot where there is only one path or one component with no backup. If that single point fails, there is nowhere for data to reroute, so the whole system can go down.

Reading Network Diagrams and Judging Redundancy

MCQ: Expect network diagrams with several connected devices. Common question types ask you to:

  • Trace which paths data could take from a sender to a receiver.
  • Explain why a network keeps working after a specific device or connection fails.
  • Identify the most vulnerable point, usually a device or link with only one connection.

Mark up the diagram as you read. Note where multiple paths exist and where only one path exists, since the single-path spots are the vulnerabilities.

Explaining and Evaluating: Be ready to explain why a given system is or is not fault-tolerant and to evaluate whether adding redundancy is worth the extra resources. A strong answer connects the failure of one component to whether data can still reach its destination another way.

Common Misconceptions

  • Misconception: Fault-tolerant systems are failure-proof.
    Actually: Fault-tolerant does not mean failure-proof. Parts still fail. The system just keeps working around those failures when an alternate path or backup exists.
  • Misconception: Redundancy is wasteful here.
    Actually: Redundancy is not wasteful here. Unlike redundant wording in an essay, redundant components in a network are intentional and helpful.
  • Misconception: Adding more devices is enough for fault tolerance.
    Actually: More than one path is the key idea, not just more devices. Adding components only helps fault tolerance if it creates an alternate route or backup for a failure.
  • Misconception: Rerouting is guaranteed.
    Actually: Rerouting is not guaranteed. Data takes a different route only if another path is available. If every path is down, the data may not get through.
  • Misconception: Fault tolerance is free.
    Actually: Fault tolerance is not free. It costs extra resources, which is why developers choose what to make fault-tolerant instead of duplicating everything.

Practice Questions for 4.2

1 of 10

The diagram above represents a proposed computer network where circles represent communication hubs and lines represent direct connections.

A city is planning a new emergency response network based on this diagram. The city requires that the network remains fully connected even if any single hub goes offline. Which of the following missing requirements should the engineers investigate first to ensure the network meets this goal?

A.

The maximum bandwidth capacity of the central hub to handle all emergency traffic simultaneously.

B.

The feasibility of adding direct connections that bypass the central hub to eliminate a single point of failure.

C.

The specific routing algorithm used by the hubs to determine the fastest path for data packets.

D.

The physical distance between the hubs to ensure wireless signals can reach the central node.

Vocabulary

The following words are mentioned explicitly in the AP® course framework for this topic.

Term

Definition

fault tolerance

The ability of a system to continue operating and providing service even when some of its components fail.

network redundancy

The practice of having multiple paths or duplicate components in a network to ensure continued operation if one path or component fails.

redundancy

Repetition or unnecessary duplication in data representation that can be reduced through compression.

reliability

The ability of a system to perform its intended function consistently and dependably over time.

routing

The process of finding a path from sender to receiver on a computer network.

vulnerabilities

Weaknesses or points of failure in a system that could cause it to malfunction or stop operating.

See Fiveable more often in Google

Mark Fiveable as a preferred source and Google is more likely to show you our guides in Top Stories, with a "preferred" badge in AI Mode and AI Overviews.

Prefer us on Google