CompTIA Network+ · Domain 4 · 14% of the examNetwork Security
12 practice questions. Tap an option to check it, or open “Show answer” for the explanation.
1. The network team wants centralized AAA for administrators who log in to routers and switches, with per-command authorization and encryption of the entire authentication packet body. Which protocol best meets these needs?
Objective 4.1Show answerHide answer
Answer: C. TACACS+
TACACS+ separates authentication, authorization and accounting, supports per-command authorization, and encrypts the whole packet body, which makes it the usual choice for device administration. RADIUS encrypts only the password and combines authentication with authorization, so it suits network access better than per-command control.
Checked by Claude Opus 5.5 (high effort) · Oct 14, 2026
2. A security team deploys a server that looks like an unpatched file server, holds no real data, and raises an alert whenever anyone connects to it, so that attackers moving inside the network are detected. What is this server?
Objective 4.1Show answerHide answer
Answer: A. Honeypot
A honeypot is a decoy with no legitimate users, so any connection to it is suspicious and worth investigating. A screened subnet is a network zone for public-facing services, not a decoy.
Checked by Claude Opus 5.5 (high effort) · Oct 14, 2026
3. A hospital's smart HVAC controllers and IP cameras sit on the same flat network as its clinical workstations, and several of the devices can't be patched. Which action best reduces the risk they pose?
Objective 4.1Show answerHide answer
Answer: D. Place the devices in a separate VLAN or segment, with ACLs allowing only the traffic they need
Segmenting IoT devices and restricting their traffic with ACLs limits what an attacker can reach if one is compromised. Changing passwords helps with credential attacks but does nothing about the unpatched vulnerabilities in the devices.
Checked by Claude Opus 5.5 (high effort) · Oct 14, 2026
4. Users report that their sessions are being intercepted. An analyst runs arp -a on a workstation and sees the default gateway (10.0.0.1) and several other hosts all mapped to the same MAC address, which belongs to an unknown laptop. Which attack is most likely happening?
Objective 4.2Show answerHide answer
Answer: B. ARP poisoning
ARP poisoning sends forged ARP replies so victims map other IPs (such as the gateway) to the attacker's MAC, putting the attacker on-path. MAC flooding targets the switch's MAC address table, not the ARP caches on hosts.
Checked by Claude Opus 5.5 (high effort) · Oct 14, 2026
5. Employees in a lobby see two networks named CorpWiFi. One is being broadcast by a small device in a visitor's bag that isn't connected to the company network, and it presents a fake login page to collect passwords. What is this attack?
Objective 4.2Show answerHide answer
Answer: C. Evil twin
An evil twin imitates a legitimate SSID to lure users into connecting and handing over credentials or traffic. A rogue access point is an unauthorized AP plugged into the company's own network, which this device is not.
Checked by Claude Opus 5.5 (high effort) · Oct 14, 2026
6. An attacker on an access port in VLAN 1, which is also the trunk's native VLAN, sends frames with two 802.1Q tags: an outer tag for VLAN 1 and an inner tag for VLAN 20. The first switch strips the outer tag and forwards the frame across the trunk, and the next switch delivers it to VLAN 20. What is this attack, and how is it mitigated?
Objective 4.2Show answerHide answer
Answer: A. VLAN hopping by double tagging; set the native VLAN to an unused VLAN that no user ports belong to
Double tagging works only when the attacker's access VLAN matches the trunk's native VLAN, so moving the native VLAN to an unused VLAN (or tagging it) stops it. Port security limits MAC addresses on a port and does nothing about extra 802.1Q tags.
Checked by Claude Opus 5.5 (high effort) · Oct 14, 2026
7. Several users on one floor can reach each other but not the internet. Their ipconfig output shows addresses in 192.168.0.0/24 with gateway 192.168.0.1, but the company uses 10.10.0.0/16. A consumer wireless router is found plugged into a wall jack. What is the cause?
Objective 4.2Show answerHide answer
Answer: D. A rogue DHCP server
The home router's DHCP server is answering clients faster than the real server and handing out its own range and gateway. If the real scope were exhausted, clients would get 169.254.x.x APIPA addresses instead of a different private range.
Checked by Claude Opus 5.5 (high effort) · Oct 14, 2026
8. A technician is preparing a new access switch for deployment. Which set of actions best hardens it?
Objective 4.3Show answerHide answer
Answer: B. Change the default admin credentials, shut down unused ports, and disable unneeded services such as Telnet
Device hardening means removing defaults attackers know (credentials, community strings), shutting unused ports, and turning off insecure or unneeded services. Leaving ports enabled in the default VLAN gives anyone who plugs in instant network access.
Checked by Claude Opus 5.5 (high effort) · Oct 14, 2026
9. A switch's MAC address table keeps filling up, after which the switch floods frames out of every port. One access port is generating thousands of fake source MAC addresses. Which control stops this?
Objective 4.3Show answerHide answer
Answer: A. Port security limiting the number of MAC addresses each port can learn
Port security caps how many MAC addresses a port can learn and can shut the port down on a violation, which defeats MAC flooding. A longer aging time actually keeps the fake entries in the table longer, making the problem worse.
Checked by Claude Opus 5.5 (high effort) · Oct 14, 2026
10. The company wants any device plugged into a wall jack to be blocked from the network until its user authenticates with domain credentials checked by a RADIUS server. What should be deployed on the switches?
Objective 4.3Show answerHide answer
Answer: C. 802.1X port-based network access control
802.1X keeps a switch port in an unauthorized state until the supplicant authenticates through the switch to a RADIUS server. MAC filtering checks only the hardware address, which is easy to spoof, and it never authenticates the user.
Checked by Claude Opus 5.5 (high effort) · Oct 14, 2026
11. A company will host a public web server and wants internet users to reach it without putting the internal LAN at risk if the server is compromised. Where should the server be placed?
Objective 4.3Show answerHide answer
Answer: D. In a screened subnet
A screened subnet (DMZ) sits between firewall zones, so internet users can reach the server while firewall rules tightly limit what the server can reach internally. Putting it on the trusted LAN would give an attacker who compromises it direct access to internal systems.
Checked by Claude Opus 5.5 (high effort) · Oct 14, 2026
12. A router interface has an inbound ACL with only one entry: permit tcp 10.1.1.0 0.0.0.255 any eq 443. A host at 10.1.1.25 tries to open an SSH session (TCP 22) through that interface. What happens?
Objective 4.3Show answerHide answer
Answer: B. The traffic is denied by the implicit deny at the end of the ACL
The only entry matches the source but permits destination port 443 alone, so SSH on port 22 falls through to the implicit deny any at the end of every ACL. Matching the source address isn't enough; every condition in an entry must match for that entry to apply.
Checked by Claude Opus 5.5 (high effort) · Oct 14, 2026
Original practice questions written from CompTIA’s published exam objectives, not real exam questions. CompTIA is a trademark of CompTIA, Inc.; this site isn’t affiliated with CompTIA.