What is the purpose of a "firewall" in cybersecurity?

2025

What is the purpose of a "firewall" in cybersecurity?

  1. A.

    To encrypt sensitive data

  2. B.

    To control network traffic based on predefined rules

  3. C.

    To lure attackers and gather information about their techniques

  4. D.

    To prevent unauthorized access to a network

Attempted by 38 students.

Show answer & explanation

Correct answer: D

Correct answer: To prevent unauthorized access to a network.

Explanation: Firewalls act as a barrier between trusted and untrusted networks. They monitor and filter incoming and outgoing network traffic using security rules to block unauthorized access and reduce exposure to malicious traffic.

  • They enforce rules that allow or deny connections based on IP addresses, ports, protocols, and other criteria.

  • They can block malicious traffic, prevent unauthorized access, and help contain attacks.

  • Common types include packet-filtering firewalls, stateful inspection firewalls, and application-layer (proxy) firewalls.

Clarification on other concepts: Encrypting data is handled by encryption technologies such as TLS or VPNs. Luring attackers to study them is the purpose of honeypots. Controlling traffic with rules is a primary mechanism firewalls use to achieve the goal of preventing unauthorized access.

Explore the full course: Computer Science