CompTIA Network+ (N10-009) · CompTIA

Network Security

11 practice questions covering 14% of the official CompTIA Network+ (N10-009) blueprint. Every item includes a worked explanation of the correct answer.

View all 5 domains in CompTIA Network+ (N10-009)

Syllabus Coverage & Domain Overview

Network Security carries about 14 percent of the N10-009 exam and is organised around three ideas: the basic concepts that justify security controls, the attacks a network faces, and the features and techniques used to defend against them. Expect the first part to cover encryption for data in transit and at rest, certificates and public key infrastructure, and the vocabulary of risk, including threat, vulnerability and exploit. It also covers identity and access management: authentication, authorization and accounting, single sign-on, multifactor authentication, directory and federation services, least privilege and the Zero Trust approach. Compliance, audits and segmentation of special-purpose devices such as IoT, guest and operational technology networks also appear.

The attack material is mostly about recognising a technique from a short description. You should be able to tell denial of service from distributed denial of service, and to separate the Layer 2 attacks: MAC flooding, ARP poisoning, VLAN hopping and rogue DHCP. Wireless threats such as rogue access points and evil twins, on-path interception, DNS poisoning, spoofing and social engineering (phishing, tailgating, shoulder surfing) belong in the same mental table. For each one, know what the attacker does, what symptom the victim sees, and which control stops it.

The defence section is where candidates are asked to apply a feature to a scenario. Learn to pair each problem with its control: port security for flooded or unauthorised MAC addresses, DHCP snooping for rogue servers, dynamic ARP inspection for forged ARP replies, and 802.1X with network access control for port-based authentication. Also know device hardening, such as disabling unused ports and services and changing default credentials, plus access control lists, content and URL filtering, and trusted, untrusted and screened subnet zones. Know the practical difference between RADIUS and TACACS+, since the two are often placed side by side: one is typically associated with network access, the other with administering devices and separating the AAA functions.

Questions are usually framed as scenarios with a symptom or a design requirement, followed by a request for the best control or the most likely attack. The common traps are near-identical answers that differ by layer or purpose. Examples are a control that detects versus one that prevents, a technique that works on a switch versus one that works on a router, and authentication versus authorization. Another trap is ignoring the order of rules in an access list or the direction in which it is applied. Read for the one detail that rules out the other options, such as who is being authenticated, where the traffic is arriving, or whether the goal is access to a device or access to the network.

To prepare, build a two-column sheet matching each attack to its symptom and its mitigation, and rehearse it until you can do so from memory. Then practise on a lab or simulator: configure port security and DHCP snooping, write and order a small access list, and trace an authentication request through a RADIUS exchange. Finish with scenario questions, and review every wrong answer by naming the clue that you missed.

In the official CompTIA Network+ (N10-009) examination blueprint, Network Security carries a weightage of 14%. Out of the total examination duration of 1 hr 30 min, candidates should budget approximately 13 min for questions from this domain to maintain pace across the paper.

How to Master Network Security for CompTIA Network+ (N10-009)

Our 11 published questions in Network Security are written for PrepIQ Hub and checked as set out in our editorial policy. Each item is written to the medium difficulty level of the CompTIA exam:

  • Targeted Topic Drills: Launch Topic Practice mode to work exclusively through Network Security items and review the step-by-step derivation after each submission.
  • Negative Marking Discipline: The CompTIA Network+ (N10-009) applies no negative marking penalty, so practice eliminating the three distractors systematically on every Network Security item.
  • Benchmark Target: Aim for at least 72% accuracy in Network Security drills before moving to full-paper simulations.

Network Security worked examples

Network Security questions from the CompTIA Network+ (N10-009) syllabus, answered in full. Try each one before opening the explanation.

  1. Example 1 · Network Security · hard

    A penetration tester plugs a laptop into an access switch port and floods the switch with thousands of Ethernet frames containing random, bogus source MAC addresses (macof) every second. Within seconds, the switch's CAM (MAC address) table fills to capacity, causing the switch to fail open and broadcast all unicast frames out of every port like a Layer 1 hub so the tester can sniff traffic in Wireshark. What is this attack called, and which Layer 2 switch feature prevents it?

    • AThe attack is a MAC Flooding (CAM Table Overflow) attack turning the switch into a hub
    • BThe attack is a DNS Amplification (Reflective DDoS) attack over UDP 53
    • CMitigate by enabling Port Security (maximum MAC limit + sticky + shutdown)
    • DMitigate by disabling Spanning Tree Protocol (no spanning-tree vlan 1) on all switch ports
    Show answer and explanation

    Correct answers: A. The attack is a MAC Flooding (CAM Table Overflow) attack turning the switch into a hub; C. Mitigate by enabling Port Security (maximum MAC limit + sticky + shutdown)

    Why

    Overflowing a switch's CAM table with bogus source MAC addresses so unknown unicast traffic floods all ports is a MAC Flooding (CAM Table Overflow) attack (A). Configuring Port Security (switchport port-security) limits the maximum number of learned MAC addresses per port (e.g., maximum 1 or 2 with sticky MAC learning) and triggers a violation action (shutdown / err-disabled, restrict, or protect) when exceeded (C).

    • B. The attack is a DNS Amplification (Reflective DDoS) attack over UDP 53 — DNS amplification floods a target IP with large UDP DNS responses; it does not overflow a local switch's Layer 2 CAM table.
    • D. Mitigate by disabling Spanning Tree Protocol (no spanning-tree vlan 1) on all switch ports — Disabling STP creates catastrophic Layer 2 broadcast loops and does not limit source MAC learning.
  2. Example 2 · Network Security · medium

    An attacker attempts a VLAN Hopping (Double-Tagging) attack by sending an Ethernet frame with two 802.1Q VLAN tags (an outer tag matching the trunk's untagged Native VLAN 1 and an inner tag for the restricted Finance VLAN 50). When the first switch strips the outer Native VLAN 1 tag and forwards the frame across the trunk link, the second switch reads the inner tag and delivers the frame into VLAN 50. Which best practice mitigates Double-Tagging VLAN Hopping?

    • AAssign all user workstations and servers to VLAN 1 and leave the trunk Native VLAN as 1
    • BEnable Dynamic Trunking Protocol (DTP) in desirable mode on all conference room wall jacks
    • CChange the trunk Native VLAN to an unused VLAN ID and force user ports to access mode
    • DReduce the switch's 802.1Q tag EtherType field from 0x8100 to 0x0806 (ARP)
    Show answer and explanation

    Correct answer: C. Change the trunk Native VLAN to an unused VLAN ID and force user ports to access mode

    Why

    Double-tagging VLAN hopping only works when the attacker's access port belongs to the same VLAN ID as the trunk link's untagged Native VLAN (by default, VLAN 1). To prevent it: (B) change the Native VLAN on all trunk ports to an unused, dedicated dummy VLAN ID (e.g., VLAN 999) that has no access ports assigned to it, (C) prune VLAN 1 from trunks, and (D) explicitly configure user ports as switchport mode access with switchport nonegotiate (or tag the native VLAN on trunks).

    • A. Assign all user workstations and servers to VLAN 1 and leave the trunk Native VLAN as 1 — Putting users in the same VLAN as the trunk Native VLAN (VLAN 1) is the exact precondition that enables double-tagging VLAN hopping.
    • B. Enable Dynamic Trunking Protocol (DTP) in desirable mode on all conference room wall jacks — Enabling DTP on user ports allows an attacker to negotiate a full 802.1Q trunk directly (Switch Spoofing).
    • D. Reduce the switch's 802.1Q tag EtherType field from 0x8100 to 0x0806 (ARP) — Changing the IEEE 802.1Q EtherType (0x8100) to 0x0806 breaks all VLAN trunking.
  3. Example 3 · Network Security · medium

    A hospital network segments its devices into VLAN 10 (Electronic Health Records), VLAN 30 (Infusion Pumps / IoMT), and VLAN 99 (Quarantine). When a clinician or biomedical device plugs into any wall jack, the switch holds the port in an unauthorized state until the endpoint authenticates via 802.1X (EAP-TLS), after which the RADIUS server returns standard attribute Tunnel-Private-Group-ID to place the switch port into the appropriate VLAN automatically. What is this security architecture called?

    • APort Mirroring (SPAN / RSPAN) to copy traffic to an out-of-band IDS sensor
    • BPrivate VLAN (PVLAN) promiscuous-port trunking without AAA authentication
    • C802.1X Network Access Control (NAC) with RADIUS Dynamic VLAN Assignment
    • DMedia Access Control (MAC) filtering using a local cleartext CSV allowlist
    Show answer and explanation

    Correct answer: C. 802.1X Network Access Control (NAC) with RADIUS Dynamic VLAN Assignment

    Why

    Combining IEEE 802.1X Port-Based Network Access Control (PNAC) with a RADIUS server that returns IETF RADIUS tunnel attributes (Tunnel-Type = VLAN (13), Tunnel-Medium-Type = IEEE-802 (6), and Tunnel-Private-Group-ID = <VLAN_ID>) in the Access-Accept message is Dynamic VLAN Assignment (a core pillar of Network Access Control / NAC and Role-Based Access Control on wired and wireless networks).

    • A. Port Mirroring (SPAN / RSPAN) to copy traffic to an out-of-band IDS sensor — SPAN copies frames to a monitoring port for packet analysis; it does not authenticate endpoints or assign VLANs.
    • B. Private VLAN (PVLAN) promiscuous-port trunking without AAA authentication — Private VLANs isolate Layer 2 ports within the same subnet statically; they do not use RADIUS Tunnel-Private-Group-ID attributes.
    • D. Media Access Control (MAC) filtering using a local cleartext CSV allowlist — Certificate-based EAP-TLS over 802.1X with RADIUS VLAN assignment is cryptographic NAC, not static MAC filtering.
  4. Example 4 · Network Security · medium

    A network security architect is choosing between RADIUS and TACACS+ for two distinct use cases: Use Case 1 is centralized CLI command authorization for network engineers logging into Cisco routers via SSH (TCP 22), where every individual IOS command must be authorized and the entire AAA packet body must be encrypted; Use Case 2 is 802.1X port-based and WPA3-Enterprise wireless authentication for 5,000 employee laptops. How should TACACS+ and RADIUS be assigned?

    • AUse RADIUS for router CLI command authorization and TACACS+ for 802.1X Wi-Fi
    • BUse unencrypted Telnet (TCP 23) for router CLI and WPA2-PSK for 5,000 laptops
    • CUse TACACS+ (TCP 49) for router CLI administration and RADIUS (UDP 1812/1813) for 802.1X
    • DUse SNMPv1 community strings (UDP 161) for both router CLI and 802.1X Wi-Fi access
    Show answer and explanation

    Correct answer: C. Use TACACS+ (TCP 49) for router CLI administration and RADIUS (UDP 1812/1813) for 802.1X

    Why

    - TACACS+ uses TCP 49, encrypts the entire AAA packet body, and separates Authentication, Authorization, and Accounting, making it ideal for granular network device administration (Use Case 1). - RADIUS uses UDP 1812/1813 (or TCP 2083 RadSec), encrypts only the password attribute, and combines Authentication and Authorization, making it the universal standard for 802.1X NAC and WPA2/WPA3-Enterprise Wi-Fi (Use Case 2).

    • A. Use RADIUS for router CLI command authorization and TACACS+ for 802.1X Wi-Fi — 802.1X wireless/wired supplicants and APs natively speak EAP over RADIUS, whereas TACACS+ excels at per-command router CLI authorization.
    • B. Use unencrypted Telnet (TCP 23) for router CLI and WPA2-PSK for 5,000 laptops — Telnet transmits credentials in cleartext, and a single shared PSK across 5,000 laptops violates enterprise AAA standards.
    • D. Use SNMPv1 community strings (UDP 161) for both router CLI and 802.1X Wi-Fi access — SNMP is a network monitoring protocol, not an AAA authentication protocol for SSH or 802.1X.
  5. Example 5 · Network Security · hard

    A penetration tester plugs a single workstation into switch port Gi1/0/8 and runs the macof utility, generating 50,000 Ethernet frames per second with randomized source MAC addresses until the switch's Content-Addressable Memory (CAM) MAC address table overflows and begins flooding unicast traffic out all ports like a Layer 1 hub. Which two Layer 2 Port Security settings should the administrator configure on Gi1/0/8 to learn the workstation's legitimate MAC address into NVRAM and drop unauthorized MAC frames while generating a Syslog/SNMP trap without disabling the port? (Select two.)

    • AConfigure violation protect so the switch sends SNMP traps and disables the access port
    • BEnable Port Security with sticky MAC learning and a max MAC limit
    • CEnable IP Source Guard without Port Security or DHCP Snooping on the switch trunk uplink
    • DConfigure violation restrict to drop unauthorized MACs and log alerts
    Show answer and explanation

    Correct answers: B. Enable Port Security with sticky MAC learning and a max MAC limit; D. Configure violation restrict to drop unauthorized MACs and log alerts

    Why

    To defeat MAC Flooding (CAM Table Overflow) on an access switch port: 1. Enable Port Security with sticky MAC learning (switchport port-security mac-address sticky and maximum 1 or 2), which dynamically binds the first legitimate MAC address(es) into the running configuration so any additional forged source MACs trigger a violation (B). 2. Set the Port Security violation mode to restrict (switchport port-security violation restrict), which drops frames from unauthorized source MACs, increments the security-violation counter, and sends an SNMP trap / Syslog message while keeping the port operational for the legitimate MAC (unlike shutdown, which puts the port into err-disabled, or protect, which drops frames silently without logging) (D).

    • A. Configure violation protect so the switch sends SNMP traps and disables the access port — protect mode silently drops frames from unauthorized MACs WITHOUT incrementing the violation counter or sending SNMP/Syslog alerts, and does not shut down the port.
    • C. Enable IP Source Guard without Port Security or DHCP Snooping on the switch trunk uplink — IP Source Guard filters Layer 3 source IPs using the DHCP snooping table; limiting Layer 2 source MAC floods requires Port Security.

Every worked example on this page passed our independent verification before publication — how that works is set out in our editorial policy. Spotted an error? Tell us through the contact page and we will correct it.

All 5 Network Security questions with answers

All Syllabus Domains in CompTIA Network+ (N10-009)

CompTIA and Security+ are trademarks of the Computing Technology Industry Association. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by CompTIA.