Prepare for the TestOut LabSim A+ Certification Exam with flashcards and multiple choice questions, complete with hints and explanations. Maximize your exam readiness today!

Each practice test/flash card set has 50 randomly selected questions from a bank of over 500. You'll get a new set of questions each time!

Practice this question and more.


Which device can help prevent unauthorized access to a computer network?

  1. Router

  2. Firewall

  3. Switch

  4. Hub

The correct answer is: Firewall

A firewall is specifically designed to monitor and control incoming and outgoing network traffic based on predetermined security rules, making it an essential device for preventing unauthorized access to a computer network. It acts as a barrier between a trusted internal network and untrusted external networks, such as the internet. When a firewall is properly configured, it can block unwanted traffic, filter malicious content, and restrict access to sensitive resources, thereby enhancing the overall security of the network. In contrast, while a router can help direct traffic on a network and may include some basic firewall functions, its primary role is routing data between different networks rather than strictly enforcing security policies. A switch operates at the data link layer to facilitate communication between devices on the same network and does not inherently provide security measures against unauthorized access. A hub, being a basic networking device that simply broadcasts data to all connected devices, offers no security features and can actually expose a network to more vulnerabilities. Hence, the firewall stands out as the most effective option for protecting a computer network from unauthorized access.