What is the primary function of a firewall?

Review the verified answer and explanation for this PPSC Punjab Public Service Commission past-paper question on CampusFin.

What is the primary function of a firewall? Answer: To monitor and block unauthorized network access

A firewall is a network security system that monitors, filters, and controls incoming and outgoing network traffic based on predefined security rules. Its primary purpose is to prevent unauthorized access while allowing legitimate communication between trusted and untrusted networks, such as the Internet. Firewalls protect computers and networks from cyber threats, including hackers, malware, and unauthorized users, and can be implemented as hardware, software, or a combination of both.

Question context

This question is part of 🌐 Networking within the broader 💾 Computer Science subject and appears in the PPSC Punjab Public Service Commission preparation collection. Reviewing the answer together with nearby questions helps reinforce the underlying concept and identify how it may appear in competitive exams.