🎓 BookMCQ
← Back to 27. Network Management

📝 Network security management (9 MCQs)

📖 From Data Communication and Networks • 27. Network Management • 9 questions available

What is Network security management?

Network security management protects network resources from unauthorized access, attacks, and data breaches by implementing policies, firewalls, encryption, authentication, and continuous monitoring to safeguard confidentiality, integrity, and availability.

3
Easy
4
Medium
2
Hard

📝 All Network security management MCQs

Q1. What vulnerability arises from the server code’s lack of input validation when receiving data from a client?

A.It checks the length before copying
B.It uses a fixed‑size buffer safely
C.It performs no bounds checking on the received data ✅
D.It sanitizes all input
💡 Difficulty: easy | ✅ Correct: C

📖 Explanation: The code increments the pointer and reduces the remaining length without confirming that the incoming bytes fit within the allocated buffer. This omission permits a buffer‑overflow attack, where an attacker can overwrite adjacent memory, potentially leading to arbitrary code execution or crashes. The absence of bounds checking is the root cause.

Q2. How do the security implications of using TCP versus UDP for an echo service differ?

A.TCP provides built‑in reliability and sequence control ✅
B.UDP offers built‑in encryption by default
C.TCP is connectionless and stateless
D.UDP inherently prevents IP spoofing
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: TCP establishes a reliable, connection‑oriented session, which includes mechanisms like retransmission and ordering, reducing the chance of data loss or injection attacks. UDP lacks these safeguards, making it more vulnerable to packet loss and spoofing, while offering no native confidentiality or integrity guarantees.

Q3. Applying the principle of least privilege, how should the echo server process be configured on a production host?

A.Run the process as root to avoid permission errors
B.Run the process under a dedicated low‑privilege user account ✅
C.Grant the process all system capabilities
D.Disable SELinux to simplify deployment
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: Running the server under a dedicated, non‑privileged user limits the impact of any compromise, ensuring that even if an attacker gains control of the process, they inherit only minimal rights. This aligns with least‑privilege best practices and reduces the attack surface on the host.

Q4. If the server fails to close client sockets after each session, what is the most likely security consequence?

A.Only a minor resource leak occurs
B.It increases the risk of a denial‑of‑service attack ✅
C.It improves overall throughput
D.There is no impact on security
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: Leaving sockets open consumes file descriptors and memory, eventually exhausting system resources. Attackers can exploit this by opening many connections, causing the server to run out of descriptors and become unavailable to legitimate users, which is a classic denial‑of‑service scenario.

Q5. What effect does adding TLS to the echo server have on confidentiality and integrity of the transmitted data?

A.It provides both confidentiality and integrity ✅
B.It only ensures confidentiality, not integrity
C.It only ensures integrity, not confidentiality
D.It has no effect on either property
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: TLS encrypts the data stream, protecting it from eavesdropping (confidentiality), and incorporates MACs or AEAD ciphers that verify that the data has not been altered in transit (integrity). Therefore, wrapping the echo server with TLS addresses both security goals simultaneously.

Q6. Which comprehensive security policy best protects the echo server while maintaining usability?

A.Log only critical errors
B.Require no authentication for any client
C.Combine logging, authentication, and rate‑limiting mechanisms ✅
D.Apply rate‑limiting only to outbound traffic
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: A robust policy should record activity for forensic analysis (logging), verify client identity before allowing interactions (authentication), and limit the number of requests per client within a time window (rate‑limiting). This layered approach mitigates abuse, aids detection, and preserves service availability.

Q7. Given the code’s use of recv without checking for a zero return (client closed), which attack becomes most feasible?

A.Man‑in‑the‑middle interception
B.Resource exhaustion by sending endless data ✅
C.Replay of previously captured packets
D.Injection of TCP reset packets
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: If the server continues to allocate buffer space without recognizing that the client has closed the connection, an attacker can send a continuous stream of data, exhausting memory and CPU resources. This denial‑of‑service style resource exhaustion is facilitated by the missing zero‑length check.

Q8. When comparing this echo server to a stateless REST API that validates JSON payloads, which statement is most accurate?

A.The echo server is inherently more secure
B.The REST API is less secure due to statelessness
C.The REST API offers better input validation and sanitization ✅
D.Both have equivalent security postures
💡 Difficulty: hard | ✅ Correct: C

📖 Explanation: A REST API typically parses structured JSON and can enforce schema validation, rejecting malformed or malicious inputs. In contrast, the raw echo server merely mirrors received bytes, lacking any validation, making the REST approach generally more resilient against injection and malformed‑data attacks.

Q9. Which security framework explicitly includes a control for regular patch management of network services like this echo server?

A.ISO/IEC 27001
B.PCI DSS
C.NIST SP 800‑53 ✅
D.GDPR
💡 Difficulty: easy | ✅ Correct: C

📖 Explanation: NIST Special Publication 800‑53 defines control CM‑11 (Information System Component Inventory) and related guidelines that mandate timely patching of software components, ensuring that known vulnerabilities in services such as an echo server are addressed promptly.

🔗 Related Topics (MCQs)