CompTIA Network+ Domain 4: Network Security
28 free practice questions for Network Security in the CompTIA Network+ (N10-009) exam. Try each question first, then open "Show answer" for the correct option and explanation.
Network Security practice questions
-
Question 1. Which part of the CIA triad is violated when an attacker changes data in transit?
Show answer
Answer: B. Integrity
Integrity means data isn't altered without authorization. Hashes and signatures help detect changes.
-
Question 2. A flood of traffic from many compromised hosts makes a website unreachable. What attack is this?
Show answer
Answer: A. Distributed denial of service
DDoS attacks target availability using traffic from many sources.
-
Question 3. An attacker sends fake ARP replies so traffic for the gateway goes to the attacker's machine. What attack is this?
Show answer
Answer: D. ARP spoofing (poisoning)
Dynamic ARP inspection helps prevent ARP spoofing.
-
Question 4. An attacker floods a switch with random source MAC addresses to make it forward frames out every port. What is this?
Show answer
Answer: D. MAC flooding
Filling the MAC table causes flooding. Port security limits MACs per port.
-
Question 5. A rogue DHCP server hands out the attacker's IP as the default gateway. Which switch feature prevents this?
Show answer
Answer: B. DHCP snooping
DHCP snooping allows server messages only on trusted ports.
-
Question 6. Users report two networks with the corporate name, one with a much stronger signal in the lobby. Which wireless attack should be suspected?
Show answer
Answer: B. An evil twin access point
An attacker's AP copying the SSID lures clients. 802.1X with certificate validation and wireless IDS help detect it.
-
Question 7. An attacker double-tags frames to reach a VLAN they shouldn't access. What mitigates this?
Show answer
Answer: B. An unused native VLAN and no auto-trunking on access ports
VLAN hopping relies on the native VLAN and dynamic trunk negotiation.
-
Question 8. Emails pretend to be from IT and ask users to enter their passwords on a fake site. What attack is this?
Show answer
Answer: A. Phishing
Phishing is social engineering by email. Awareness training and MFA reduce risk.
-
Question 9. Someone follows an employee through a secured door without badging in. What is this?
Show answer
Answer: C. Tailgating
Access control vestibules and security awareness prevent tailgating.
-
Question 10. Which switch feature allows only a set number of MAC addresses on a port and can shut the port down on violation?
Show answer
Answer: B. Port security
Port security limits which or how many devices connect to a port.
-
Question 11. Only authorized, authenticated devices should get network access on wired switch ports. What should be used?
Show answer
Answer: C. 802.1X port-based access control
802.1X uses a supplicant, authenticator, and authentication server, such as RADIUS.
-
Question 12. Which AAA protocol encrypts the entire payload and is often used for device administration?
Show answer
Answer: C. TACACS+
TACACS+ separates authentication, authorization, and accounting and encrypts the whole body.
-
Question 13. Which authentication protocol uses tickets from a key distribution center in Windows domains?
Show answer
Answer: C. Kerberos
Kerberos issues time-limited tickets, so clocks must be in sync.
-
Question 14. Users sign in once and then access many web apps without signing in again. What is this?
Show answer
Answer: C. Single sign-on (SSO)
SSO often uses SAML or OpenID Connect between an identity provider and apps.
-
Question 15. A VPN requires a password and a security question answer. Why doesn't this count as multifactor authentication?
Show answer
Answer: A. Both are something you know, so it's a single factor type
MFA needs different categories: knowledge, possession, or inherence. A hardware token or authenticator app adds possession.
-
Question 16. Which principle gives users only the access they need to do their jobs?
Show answer
Answer: B. Least privilege
Least privilege limits damage from mistakes and compromised accounts.
-
Question 17. A web server must be reachable from the internet but isolated from the internal network. Where should it be placed?
Show answer
Answer: A. In a screened subnet (DMZ)
A screened subnet limits what an attacker can reach if the server is compromised.
-
Question 18. Which firewall type tracks connection state and allows return traffic automatically?
Show answer
Answer: D. Stateful firewall
Stateful firewalls keep a table of active sessions.
-
Question 19. Which device can identify applications, users, and threats, going beyond ports and IP addresses?
Show answer
Answer: C. A next-generation firewall (NGFW)
NGFWs add application awareness, IPS, and URL filtering.
-
Question 20. An ACL has rules in this order: permit any, deny host 10.1.1.5. What happens to traffic from 10.1.1.5?
Show answer
Answer: A. It is permitted, because the first matching rule applies
ACLs are processed top-down, and the first match is applied.
-
Question 21. What happens to traffic that matches no rule in a typical router ACL?
Show answer
Answer: C. It is dropped by the implicit deny
Most ACLs end with an implicit deny all.
-
Question 22. Which system can block malicious traffic inline, not just alert on it?
Show answer
Answer: B. An intrusion prevention system (IPS)
IDS alerts passively. IPS sits inline and can drop traffic.
-
Question 23. Which physical security control uses two doors so only one person passes at a time?
Show answer
Answer: D. An access control vestibule
Vestibules, formerly called mantraps, prevent tailgating.
-
Question 24. Old switches are being retired. What must be done before disposal?
Show answer
Answer: D. Wipe configurations and sanitize storage
Configs can reveal passwords, IP plans, and keys.
-
Question 25. Which approach divides a network into small zones so a compromised host can reach little else?
Show answer
Answer: D. Segmentation or microsegmentation
Segmentation limits lateral movement.
-
Question 26. Which regulation applies to organizations that handle payment card data?
Show answer
Answer: A. PCI DSS
PCI DSS sets requirements such as network segmentation and encryption for cardholder data.
-
Question 27. Default admin passwords on new network devices should be handled how?
Show answer
Answer: C. Changed at once, with unused services disabled
Device hardening includes new credentials, disabling unused ports and services, and updating firmware.
-
Question 28. Which security concept uses decoy systems to attract and study attackers?
Show answer
Answer: D. A honeypot
Honeypots detect attackers and gather information without risking real systems.
CompTIA and Network+ are trademarks or registered trademarks of CompTIA, Inc. These questions are original study material, not questions from the real exam.