CompTIA Network+ · Domain 4 of 5 · 14% of the exam

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

  1. Question 1. Which part of the CIA triad is violated when an attacker changes data in transit?

    1. Confidentiality
    2. Integrity
    3. Availability
    4. Non-repudiation
    Show answer

    Answer: B. Integrity

    Integrity means data isn't altered without authorization. Hashes and signatures help detect changes.

  2. Question 2. A flood of traffic from many compromised hosts makes a website unreachable. What attack is this?

    1. Distributed denial of service
    2. An on-path (MITM) attack
    3. DNS cache poisoning
    4. A spear phishing campaign
    Show answer

    Answer: A. Distributed denial of service

    DDoS attacks target availability using traffic from many sources.

  3. Question 3. An attacker sends fake ARP replies so traffic for the gateway goes to the attacker's machine. What attack is this?

    1. MAC flooding
    2. VLAN hopping
    3. DNS tunneling
    4. ARP spoofing (poisoning)
    Show answer

    Answer: D. ARP spoofing (poisoning)

    Dynamic ARP inspection helps prevent ARP spoofing.

  4. Question 4. An attacker floods a switch with random source MAC addresses to make it forward frames out every port. What is this?

    1. ARP spoofing
    2. Evil twin
    3. Bluejacking
    4. MAC flooding
    Show answer

    Answer: D. MAC flooding

    Filling the MAC table causes flooding. Port security limits MACs per port.

  5. Question 5. A rogue DHCP server hands out the attacker's IP as the default gateway. Which switch feature prevents this?

    1. Port mirroring
    2. DHCP snooping
    3. Link aggregation
    4. Jumbo frames
    Show answer

    Answer: B. DHCP snooping

    DHCP snooping allows server messages only on trusted ports.

  6. 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?

    1. A deauthentication-free roaming event
    2. An evil twin access point
    3. Normal band steering between 2.4 and 5 GHz
    4. A DHCP reservation conflict
    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.

  7. Question 7. An attacker double-tags frames to reach a VLAN they shouldn't access. What mitigates this?

    1. Jumbo frames enabled on every trunk link
    2. An unused native VLAN and no auto-trunking on access ports
    3. A larger MAC address table on each switch
    4. Port mirroring enabled on the uplink ports
    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.

  8. Question 8. Emails pretend to be from IT and ask users to enter their passwords on a fake site. What attack is this?

    1. Phishing
    2. Tailgating
    3. Shoulder surfing
    4. Dumpster diving
    Show answer

    Answer: A. Phishing

    Phishing is social engineering by email. Awareness training and MFA reduce risk.

  9. Question 9. Someone follows an employee through a secured door without badging in. What is this?

    1. Phishing
    2. Vishing
    3. Tailgating
    4. Smishing
    Show answer

    Answer: C. Tailgating

    Access control vestibules and security awareness prevent tailgating.

  10. Question 10. Which switch feature allows only a set number of MAC addresses on a port and can shut the port down on violation?

    1. Spanning tree
    2. Port security
    3. LACP
    4. QoS
    Show answer

    Answer: B. Port security

    Port security limits which or how many devices connect to a port.

  11. Question 11. Only authorized, authenticated devices should get network access on wired switch ports. What should be used?

    1. Port mirroring to an IDS sensor
    2. Static VLAN assignments only
    3. 802.1X port-based access control
    4. DHCP reservations for each device
    Show answer

    Answer: C. 802.1X port-based access control

    802.1X uses a supplicant, authenticator, and authentication server, such as RADIUS.

  12. Question 12. Which AAA protocol encrypts the entire payload and is often used for device administration?

    1. RADIUS
    2. LDAP
    3. TACACS+
    4. Kerberos
    Show answer

    Answer: C. TACACS+

    TACACS+ separates authentication, authorization, and accounting and encrypts the whole body.

  13. Question 13. Which authentication protocol uses tickets from a key distribution center in Windows domains?

    1. RADIUS
    2. TACACS+
    3. Kerberos
    4. PAP
    Show answer

    Answer: C. Kerberos

    Kerberos issues time-limited tickets, so clocks must be in sync.

  14. Question 14. Users sign in once and then access many web apps without signing in again. What is this?

    1. Multifactor authentication
    2. Role-based access control
    3. Single sign-on (SSO)
    4. Least privilege
    Show answer

    Answer: C. Single sign-on (SSO)

    SSO often uses SAML or OpenID Connect between an identity provider and apps.

  15. Question 15. A VPN requires a password and a security question answer. Why doesn't this count as multifactor authentication?

    1. Both are something you know, so it's a single factor type
    2. Security questions are something you have
    3. Passwords are something you are
    4. VPNs can't use more than one factor
    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.

  16. Question 16. Which principle gives users only the access they need to do their jobs?

    1. Separation of duties only
    2. Least privilege
    3. Implicit trust
    4. Open access
    Show answer

    Answer: B. Least privilege

    Least privilege limits damage from mistakes and compromised accounts.

  17. Question 17. A web server must be reachable from the internet but isolated from the internal network. Where should it be placed?

    1. In a screened subnet (DMZ)
    2. On the internal user VLAN
    3. On the management VLAN
    4. On the same subnet as the database
    Show answer

    Answer: A. In a screened subnet (DMZ)

    A screened subnet limits what an attacker can reach if the server is compromised.

  18. Question 18. Which firewall type tracks connection state and allows return traffic automatically?

    1. Stateless packet filter
    2. Hub with filtering
    3. Layer 2 bridge
    4. Stateful firewall
    Show answer

    Answer: D. Stateful firewall

    Stateful firewalls keep a table of active sessions.

  19. Question 19. Which device can identify applications, users, and threats, going beyond ports and IP addresses?

    1. An unmanaged switch
    2. A repeater
    3. A next-generation firewall (NGFW)
    4. A basic packet filter
    Show answer

    Answer: C. A next-generation firewall (NGFW)

    NGFWs add application awareness, IPS, and URL filtering.

  20. 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?

    1. It is permitted, because the first matching rule applies
    2. It is denied, because deny rules always win
    3. It is dropped by the implicit deny
    4. It is logged but not forwarded
    Show answer

    Answer: A. It is permitted, because the first matching rule applies

    ACLs are processed top-down, and the first match is applied.

  21. Question 21. What happens to traffic that matches no rule in a typical router ACL?

    1. It is always permitted
    2. It is sent to the default route
    3. It is dropped by the implicit deny
    4. It is mirrored to the admin
    Show answer

    Answer: C. It is dropped by the implicit deny

    Most ACLs end with an implicit deny all.

  22. Question 22. Which system can block malicious traffic inline, not just alert on it?

    1. An intrusion detection system (IDS) on a SPAN port
    2. An intrusion prevention system (IPS)
    3. A syslog server
    4. A NetFlow collector
    Show answer

    Answer: B. An intrusion prevention system (IPS)

    IDS alerts passively. IPS sits inline and can drop traffic.

  23. Question 23. Which physical security control uses two doors so only one person passes at a time?

    1. A cable lock
    2. A privacy screen
    3. A motion sensor only
    4. An access control vestibule
    Show answer

    Answer: D. An access control vestibule

    Vestibules, formerly called mantraps, prevent tailgating.

  24. Question 24. Old switches are being retired. What must be done before disposal?

    1. Leave configs in place for the recycler
    2. Sell them without resetting
    3. Keep the passwords written on each device
    4. Wipe configurations and sanitize storage
    Show answer

    Answer: D. Wipe configurations and sanitize storage

    Configs can reveal passwords, IP plans, and keys.

  25. Question 25. Which approach divides a network into small zones so a compromised host can reach little else?

    1. A flat network design
    2. Using one VLAN for everything
    3. Disabling all firewalls internally
    4. Segmentation or microsegmentation
    Show answer

    Answer: D. Segmentation or microsegmentation

    Segmentation limits lateral movement.

  26. Question 26. Which regulation applies to organizations that handle payment card data?

    1. PCI DSS
    2. HIPAA
    3. FERPA
    4. GDPR only
    Show answer

    Answer: A. PCI DSS

    PCI DSS sets requirements such as network segmentation and encryption for cardholder data.

  27. Question 27. Default admin passwords on new network devices should be handled how?

    1. Kept so vendors can log in to help later
    2. Shared with all staff in the IT team
    3. Changed at once, with unused services disabled
    4. Changed only after the first year of use
    Show answer

    Answer: C. Changed at once, with unused services disabled

    Device hardening includes new credentials, disabling unused ports and services, and updating firmware.

  28. Question 28. Which security concept uses decoy systems to attract and study attackers?

    1. A load balancer
    2. A proxy server
    3. A jump box
    4. A honeypot
    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.