AP CSP fault tolerance and routing practice questions

Practice questions for AP Computer Science Principles focusing on fault tolerance and routing in networks, covering essential concepts and real-world applications.

Ava38·28 flashcards·28 questions
APcomputer_sciencenetworks
0
Known
1 / 28
0
Learning
Front

Fault tolerance definition

Tap to flip
Back

The ability of a system to continue functioning despite failures or errors.

Tap to flip
Got it
Still learning

Quiz(28 questions)

Question 1 of 28

1. What is fault tolerance?

Terms in this Study Set(28)

Fault Tolerance Concepts(16)

Fault tolerance definition

The ability of a system to continue functioning despite failures or errors.

True or False: Redundancy increases fault tolerance.

True. Redundancy provides backups that maintain system functionality during failures.

Example of fault tolerance in everyday life

Using two power supplies; if one fails, the other maintains power.

What is a failover system?

A backup operational mode that automatically activates when the primary system fails.

Comparison: Active vs. Passive Redundancy

Active: Uses backup resources continuously. Passive: Activates backups only during failures.

Fill in the blank: RAID stands for _____.

Redundant Array of Independent Disks.

Cause → Effect: What causes data loss?

System failure or hardware malfunction can lead to data loss.

What role do backups play in fault tolerance?

Backups ensure data can be restored after a failure occurs.

True or False: Fault tolerance can eliminate all risks.

False. It reduces risks but cannot eliminate them entirely.

What is a distributed system?

A system that consists of multiple interconnected computers that share resources and handle failures.

Example of a fault-tolerant network

A mesh network where multiple paths exist between devices, ensuring connectivity despite any single failure.

What is hot swapping?

The ability to replace or add components without shutting down the system.

Comparison: Hardware vs. Software Fault Tolerance

Hardware: Uses physical redundancy. Software: Uses algorithms to handle errors.

Fill in the blank: A ____ can detect and correct errors.

Checksum.

What does it mean for a system to be highly available?

It is designed to be operational and accessible most of the time, minimizing downtime.

Cause → Effect: What happens without fault tolerance?

Increased risk of system outages and data loss.

Routing Algorithms and Protocols(12)

What is a routing algorithm?

A method that determines the optimal path for data to travel across a network.

True or False: Distance vector routing sends the entire routing table.

False. Distance vector routing sends only the distance and direction to reach a destination.

Fill in the blank: OSPF stands for _____

Open Shortest Path First.

Compare link-state and distance vector routing.

- Link-state: Each router knows the entire network topology. - Distance vector: Each router only knows the distance to neighbors.

What is RIP?

Routing Information Protocol, a distance vector routing protocol using hop count for path selection.

Cause → Effect: What happens when a routing loop occurs?

Data packets circulate endlessly, leading to network congestion and performance degradation.

What is BGP used for?

Border Gateway Protocol is used for routing between autonomous systems on the internet.

True or False: Link-state algorithms are more scalable than distance vector algorithms.

True. Link-state algorithms update less frequently and can handle larger networks.

Calculate: If a packet travels 300 miles at 100 mph, how long does it take?

Time = Distance / Speed = 300 miles / 100 mph = 3 hours.

What is the purpose of a routing table?

To store routes and their associated next-hop addresses for packet forwarding decisions.

Name one advantage of using OSPF.

Supports large networks with fast convergence and efficient use of bandwidth.

Characteristics of a hybrid routing protocol.

- Combines features of distance vector and link-state. - Examples: EIGRP, uses DUAL algorithm.

Questions in this Study Set(28)

1. What is fault tolerance?

A.The ability of a system to continue functioning despite failures.
B.A method to improve system performance.
C.The process of backing up data.
D.A technique to increase data storage capacity.

2. What is the primary function of a routing algorithm?

A.To determine the optimal path for data transmission
B.To encrypt data packets
C.To establish a physical connection between devices
D.To monitor network traffic

3. True or False: Redundancy in a system can help enhance fault tolerance.

A.True
B.False
C.Only in software systems
D.Only in hardware systems

4. Which of the following statements accurately describes link-state routing protocols?

A.They only know the distance to their immediate neighbors.
B.They require less bandwidth than distance vector protocols.
C.They maintain a complete map of the network topology.
D.They do not support dynamic routing.

5. An example of fault tolerance in a daily scenario involves:

A.Having two power supplies for a computer.
B.Using a single power supply for efficiency.
C.Running software without updates.
D.Installing only one hard drive.

6. What does the acronym RIP stand for in networking?

A.Routing Information Protocol
B.Rapid Internet Protocol
C.Relative Information Path
D.Routing Integrity Protocol

7. What is a failover system?

A.A backup system that activates if the primary system fails.
B.A system that performs upgrades automatically.
C.A method of data compression.
D.A type of network protocol.

8. Which of the following is NOT a characteristic of distance vector routing?

A.Each router shares its entire routing table with neighbors.
B.Routing decisions are based on hop count.
C.It uses Link-State Advertisements (LSAs) for updates.
D.Updates are sent periodically.

9. Active redundancy differs from passive redundancy because:

A.Active redundancy uses backups continuously while passive activates only during failures.
B.Passive redundancy is more expensive than active.
C.Active redundancy is obsolete in modern systems.
D.Passive redundancy requires more maintenance than active.

10. What is the primary purpose of a routing table in a router?

A.To manage bandwidth allocation
B.To store routes and next-hop addresses
C.To encrypt data packets
D.To monitor network performance

11. Fill in the blank: RAID stands for _____.

A.Redundant Array of Independent Disks
B.Rapid Array of Integrated Devices
C.Remote Access of Internal Data
D.Reliable Allocation of Independent Disks

12. Which routing protocol would you expect to use the DUAL algorithm?

A.OSPF
B.RIP
C.EIGRP
D.BGP

13. What can cause data loss?

A.System failure or hardware malfunction.
B.Regular software updates.
C.Routine maintenance checks.
D.Using cloud storage.

14. True or False: Border Gateway Protocol (BGP) is used for routing within a single autonomous system.

A.True
B.False
C.Only during the initial setup
D.Only for small networks

15. What is the role of backups in fault tolerance?

A.To restore data after a failure.
B.To improve network speeds.
C.To compress data for storage.
D.To enhance user interface design.

16. What happens during a routing loop?

A.Data packets reach their destination successfully.
B.Network congestion occurs due to endless circulation of packets.
C.Routing tables are updated correctly.
D.No packets are transmitted.

17. True or False: Fault tolerance can completely eliminate all risks associated with system failures.

A.True
B.False
C.Only in hardware systems
D.Only in software systems

18. Which of the following routing protocols uses hop count as its metric?

A.OSPF
B.RIP
C.EIGRP
D.BGP

19. Which of the following best describes a distributed system?

A.A system consisting of interconnected computers sharing resources.
B.A single computer with multiple processors.
C.A system that operates in isolation.
D.A computer system that has a single point of failure.

20. What is one advantage of using OSPF over distance vector protocols?

A.It supports simpler networks.
B.It converges faster and scales better for large networks.
C.It uses less power.
D.It is easier to configure.

21. An example of a fault-tolerant network is:

A.A mesh network with multiple paths.
B.A star network with a single connection point.
C.A bus network with one shared channel.
D.A tree network with hierarchical structure.

22. Which statement best compares distance vector and link-state routing protocols?

A.Distance vector protocols require more bandwidth than link-state protocols.
B.Link-state protocols do not require knowledge of the entire network.
C.Distance vector protocols rely on neighbor routers for routing information.
D.Link-state protocols only use hop count for routing decisions.

23. What is hot swapping?

A.Replacing components without shutting down the system.
B.Upgrading software while the system is running.
C.Cooling down the system during operation.
D.Backing up data to cloud storage.

24. Fill in the blank: OSPF is classified as a _____ protocol.

A.distance vector
B.link-state
C.hybrid
D.path vector

25. Comparison: Hardware fault tolerance vs. software fault tolerance involves:

A.Physical redundancy versus algorithms for error handling.
B.Only using software to improve performance.
C.Investing equally in hardware and software.
D.Ignoring error handling in software systems.

26. Fill in the blank: A ____ can detect and correct errors.

A.Checksum
B.Router
C.Firewall
D.Switch

27. What does it mean for a system to be highly available?

A.It is operational and accessible most of the time.
B.It is only available during business hours.
C.It requires frequent maintenance.
D.It operates without user intervention.

28. Without fault tolerance, what is the likely outcome?

A.Increased risk of system outages and data loss.
B.Improved data security.
C.Faster processing speeds.
D.Enhanced user experience.

Related Study Sets

Create Your Own Study Set

Upload a PDF, paste your notes, or describe a topic – AI generates flashcards, quizzes and more in seconds.