- What is a primary trade-off associated with building a fault-tolerant system using redundancy?
Answer: An increase in costs and complexity due to the need for additional hardware, software, and maintenance.
Implementing redundancy involves duplicating components (like servers, network paths, power supplies), which adds to the initial cost and the ongoing complexity of managing the system. This is a key trade-off against the benefit of increased reliability.
- How is the concept of scalability different from the concept of fault tolerance?
Answer: Scalability is the ability to handle an increasing amount of work, while fault tolerance is the ability to withstand component failures.
The two concepts are distinct but related. Scalability is about handling growth in load or traffic, often by adding resources. Fault tolerance is about ensuring continued operation when parts of the system fail. A system can be scalable but not fault-tolerant, and vice-versa.
- From a fault tolerance perspective, what is the primary drawback of this design?
Answer: The firewall is a single point of failure; its malfunction would sever the network's connection to the outside.
Relying on a single device for a critical function like connectivity creates a single point of failure. If the firewall fails, the entire network's ability to communicate externally is lost, which is a major fault tolerance weakness.
- A cloud storage service ran on a primary server and a backup server in different data centers. When the primary server crashed during peak use, the system automatically switched users to the backup within seconds, and most people kept uploading files without noticing. The service logged the failure and later repaired the primary server, then restored it as the main system. Based on the scenario described, in the scenario, what role does Failover play?
Answer: It switched service to a backup server
This question tests AP Computer Science Principles skills, specifically understanding fault tolerance in computing systems and networks. Fault tolerance is the ability of a system to continue operating properly in the event of a failure of some of its components. It involves mechanisms like redundancy, error detection and correction, and failover. In the passage, the system uses automatic failover to maintain functionality when the primary server crashes, switching users to a backup server within seconds. Choice B is correct because it accurately reflects how the system automatically switched service to the backup server when the primary failed, which is the definition of failover. Choice A is incorrect because it describes load balancing, not failover - the system didn't split traffic evenly but rather redirected all traffic to the backup. To help students, emphasize that failover specifically involves switching from a failed component to a working backup, not distributing load. Practice identifying the difference between failover (switching to backup) and load balancing (distributing work).
- An online store ran its checkout service on 2 servers: one active and one standby. When the active server's disk failed, the standby server took over the same network address and continued processing carts. Customers mostly saw no interruption, and orders still completed. The failed disk was replaced later and the standby returned to waiting mode. In the example given, in the scenario, what role does Failover play?
Answer: It switched checkout to the standby server
This question tests AP Computer Science Principles skills, specifically understanding fault tolerance in computing systems and networks. Fault tolerance is the ability of a system to continue operating properly in the event of a failure of some of its components. It involves mechanisms like redundancy, error detection and correction, and failover. In the passage, the system uses failover when the active server's disk fails - the standby server takes over the same network address and continues processing. Choice A is correct because it accurately describes the failover process where checkout switched from the failed active server to the standby server. Choice C is incorrect because failover doesn't prevent failures from occurring; it provides a mechanism to continue operating when failures do happen. To help students, emphasize that failover involves automatic switching to backup systems when primary systems fail. Practice identifying active-standby configurations and how they maintain service continuity.
- A large social media platform experiences a software bug that causes one of its image-hosting servers to crash. However, users are still able to view and upload images without interruption. Which of the following is the most likely explanation for this?
Answer: The platform has a fault-tolerant design with multiple redundant servers, and traffic was automatically rerouted to working servers.
This scenario describes a classic case of fault tolerance in action. The failure of a single component (one server) did not cause a failure of the entire system because redundant components (other servers) were available to take over its workload.
- A large data center hosted websites for local hospitals. To keep services available, the building used 2 power feeds from different utility lines. If both feeds dropped, battery units kept the servers running long enough for diesel generators to start. During a storm, one utility line failed, but the servers stayed online because the other feed continued providing electricity. Later that night, the second line flickered and the batteries bridged the gap until the generator took over. Staff reported that patients could still access appointment pages the entire time. In the example given, what is the primary benefit of using Redundancy as illustrated in the passage?
Answer: It keeps services available during outages
This question tests AP Computer Science Principles skills, specifically understanding fault tolerance in computing systems and networks. Fault tolerance is the ability of a system to continue operating properly in the event of a failure of some of its components. It involves mechanisms like redundancy, error detection and correction, and failover. In the passage, the system uses multiple layers of redundancy including two power feeds, battery units, and diesel generators to maintain continuous power supply. Choice B is correct because it accurately identifies that redundancy keeps services available during outages, as demonstrated when the hospital websites remained accessible throughout the storm. Choice D is incorrect because redundancy doesn't prevent failures but rather ensures continued operation despite failures. To help students, emphasize that redundancy provides backup options rather than preventing failures entirely. Watch for: confusion between prevention and mitigation strategies, and overgeneralization about what redundancy can achieve.
- Which of the following best explains how packet switching supports a fault-tolerant network?
Answer: It allows each data packet to be routed independently, enabling the network to bypass failed or congested links.
The independent routing of packets is key. Unlike circuit switching, which uses a fixed path, packet switching allows the network to be flexible and adaptive. If one path fails, only the packets currently on that path are lost; subsequent packets can be sent on working routes.
- The original design motivation for the network that became the Internet included the need for a communication system that could withstand a large-scale disaster. This motivation directly led to which core principle?
Answer: Fault tolerance
The need for a network that could survive the loss of some of its nodes is the very definition of fault tolerance. This foundational requirement shaped the Internet's decentralized, packet-switched architecture with redundant paths.
- What is the greatest vulnerability of this network design from a fault-tolerance perspective?
Answer: The central switch represents a single point of failure; if it malfunctions, the entire network will cease to function.
In a star topology, the central switch is a critical component. Its failure will disconnect all devices from each other, making it a single point of failure and a major vulnerability for fault tolerance.
- While this system has some redundancy, it is still vulnerable to which of the following failures?
Answer: A localized event like a fire or building-wide power outage that affects both servers simultaneously.
Keeping the backup server in the same building means that a single, localized disaster could destroy both the primary and backup systems. This identifies a vulnerability where the redundancy is insufficient to protect against a large-scale failure affecting the entire location.
- A home security company monitored sensors over a wireless network. Sometimes interference flipped bits in a message, so the system added a small check value to each packet. If the check did not match, the receiver requested the packet again, and the correct alert was delivered. This kept door and window events accurate even on noisy nights. In the example given, how does the described system maintain functionality during a failure?
Answer: It detected errors and requested resend
This question tests AP Computer Science Principles skills, specifically understanding fault tolerance in computing systems and networks. Fault tolerance is the ability of a system to continue operating properly in the event of a failure of some of its components. It involves mechanisms like redundancy, error detection and correction, and failover. In the passage, the system uses error detection and correction by adding check values to packets and requesting retransmission when errors are detected. Choice B is correct because it accurately describes how the system detects errors through check values and requests resending of corrupted packets. Choice A is incorrect because encryption is about security and privacy, not error detection - the passage specifically mentions detecting bit flips from interference. To help students, emphasize the difference between error detection (finding mistakes) and other fault tolerance mechanisms. Practice identifying checksum/parity concepts and how they enable reliable communication over unreliable channels.
- The ability of the Internet to sustain operations even when individual routers or connections fail is primarily due to which of the following design principles?
Answer: The implementation of redundancy through multiple, alternative data routing paths.
The Internet's fault tolerance is largely achieved through redundancy. Data packets can be rerouted through many different paths, so the failure of a single path does not typically stop data from reaching its destination.
- Which of the following system properties is NOT a direct benefit of fault tolerance?
Answer: Improved system performance and speed
While fault-tolerant systems are designed to be reliable and available, the mechanisms for achieving this (like redundancy and error checking) can sometimes add overhead that slightly reduces performance. Improved speed is a goal of performance optimization, not fault tolerance.
- A delivery company sent route updates from trucks to headquarters over a cellular network. Some messages arrived with mistakes due to weak signal. Each message included extra bits that helped the receiver spot an error and rebuild the original data, so dispatch still saw correct locations. This kept tracking reliable without calling drivers repeatedly. Based on the scenario described, which mechanism ensures system operation when a component fails?
Answer: Error detection and correction in messages
This question tests AP Computer Science Principles skills, specifically understanding fault tolerance in computing systems and networks. Fault tolerance is the ability of a system to continue operating properly in the event of a failure of some of its components. It involves mechanisms like redundancy, error detection and correction, and failover. In the passage, the system uses error detection and correction through extra bits that help spot errors and rebuild original data when messages are corrupted by weak signals. Choice A is correct because it accurately identifies error detection and correction as the mechanism that ensures reliable communication despite transmission errors. Choice B is incorrect because load balancing distributes work across resources, which is different from correcting transmission errors in messages. To help students, emphasize that error correction codes allow systems to recover from data corruption without retransmission. Practice identifying different error handling strategies: detection only vs. detection and correction.
- Which of the following is the most significant benefit of engineering the Internet to be fault-tolerant?
Answer: It increases the overall reliability of the network, allowing communication to continue despite component failures.
The primary benefit of fault tolerance is reliability. By being able to withstand failures of individual parts, the overall system remains available and functional for its users, which is crucial for a global communication network like the Internet.
- Which of the following statements best describes a fault-tolerant computer system?
Answer: A system that can continue to function, potentially at a reduced level, even when one or more of its components fail.
Fault tolerance is the property that enables a system to continue operating properly in the event of the failure of some of its components. It does not prevent failures but allows the system to cope with them.
- A small business hosted its website in a cloud service with 2 regions. The website ran in Region 1, but Region 1 had an outage. The cloud provider redirected requests to Region 2 automatically, and customers still browsed products. Later, the provider restored Region 1 and returned traffic gradually. Based on the scenario described, which mechanism ensures system operation when a component fails?
Answer: Automatic Failover to another region
This question tests AP Computer Science Principles skills, specifically understanding fault tolerance in computing systems and networks. Fault tolerance is the ability of a system to continue operating properly in the event of a failure of some of its components. It involves mechanisms like redundancy, error detection and correction, and failover. In the passage, the cloud service uses automatic failover between regions - when Region 1 has an outage, the provider automatically redirects requests to Region 2. Choice A is correct because it accurately identifies automatic failover as the mechanism that maintains service by switching from the failed region to a working region. Choice B is incorrect because manual typing of requests would be inefficient and doesn't relate to automated fault tolerance mechanisms. To help students, emphasize that cloud providers often use geographic redundancy with automatic failover between regions. Practice identifying how DNS redirection and load balancers enable seamless regional failover.
- How does this setup differ from a truly fault-tolerant system?
Answer: In a fault-tolerant system, the backup switch would be automatically and instantly activated upon failure, without manual intervention.
Having a spare part is a form of redundancy, but fault tolerance implies the system can handle the failure automatically with minimal or no downtime. This setup, known as a cold spare, requires manual intervention and results in system downtime, whereas a hot spare in a truly fault-tolerant system would take over automatically.
- A system that includes redundant components is designed to improve its fault tolerance. The inclusion of these extra components directly supports which goal?
Answer: Mitigating the failure of the system if some of the original components fail.
This is the core purpose of redundancy in the context of fault tolerance. The extra components are there to take over the function of primary components if they fail, thereby mitigating or preventing a total system failure.