Courseiva

CCNA Network Security Questions

23 of 98 questions · Page 2/2 · Network Security · Answers revealed

76
MCQhard

An attacker is launching a DHCP starvation attack by sending a large number of DHCP discover messages with spoofed MAC addresses. This exhausts the DHCP pool and causes legitimate clients to fail to obtain IP addresses. Which security feature should be implemented on the switch to mitigate this attack?

A.Port security
B.DHCP snooping
C.Dynamic ARP Inspection (DAI)
D.802.1X
AnswerB

DHCP snooping is a critical security feature implemented on network switches that inspects DHCP traffic to prevent rogue DHCP servers and DHCP starvation attacks. It classifies switch ports as trusted (for legitimate DHCP servers) or untrusted, dropping DHCP server messages received on untrusted ports. Crucially, it can enforce rate limiting on untrusted ports to prevent an attacker from flooding the network with excessive DHCP DISCOVER requests, thereby mitigating DHCP starvation by limiting the number of requests. It also builds and maintains a DHCP snooping binding table, mapping MAC addresses to IP addresses, which can be used by other security features.

Why this answer

DHCP snooping is the correct mitigation because it filters untrusted DHCP messages on access ports. By default, it only allows DHCP server responses (OFFER, ACK, etc.) on trusted ports (typically uplinks to the legitimate DHCP server) and drops them on untrusted ports, preventing a rogue or spoofed server from replying. Additionally, DHCP snooping builds a DHCP snooping binding table that tracks valid MAC-to-IP address mappings, which can be used to rate-limit DHCP discover messages and detect starvation attacks.

Exam trap

CompTIA often tests DHCP snooping as the answer for DHCP starvation attacks, but candidates confuse it with DAI because both rely on the DHCP snooping binding table, forgetting that DAI only validates ARP packets, not DHCP messages.

Why the other options are wrong

A

Port security limits the number of MAC addresses per port but does not inspect DHCP messages or prevent DHCP pool exhaustion from spoofed MAC addresses.

C

Dynamic ARP Inspection (DAI) validates ARP packets to prevent ARP spoofing and man-in-the-middle attacks, but it does not prevent DHCP starvation attacks, which target DHCP address exhaustion.

D

802.1X is an authentication protocol that controls network access at the port level, but it does not prevent DHCP starvation attacks because it does not monitor or rate-limit DHCP messages.

77
MCQmedium

An organization has separate VLANs for the HR and Finance departments. Both VLANs use a single Layer 3 switch to route between them. The HR department needs access to a shared printer located in the Finance VLAN, but all other traffic between the VLANs should be blocked. Which of the following should be configured?

A.Configure an ACL on the Layer 3 switch to permit specific traffic between VLANs
B.Place the printer in the HR VLAN
C.Create a separate VLAN for the printer
D.Use a wireless access point to bridge the VLANs
AnswerA

Configuring an Access Control List (ACL) on the Layer 3 switch is the most effective and secure method to permit specific traffic between the HR and Finance VLANs. Since the Layer 3 switch performs inter-VLAN routing, it can inspect packets as they traverse between these segmented networks. An ACL can be precisely crafted to allow only the necessary printer-related protocols (e.g., TCP port 9100, SMB) from the HR VLAN to the printer's IP address in the Finance VLAN, while implicitly denying all other traffic.

Why this answer

An ACL on the Layer 3 switch can filter inter-VLAN traffic at the routed interface (SVI or routed port). By permitting only the HR subnet’s traffic to the printer’s IP address and denying all other inter-VLAN traffic, you meet the requirement of selective access while blocking everything else. This is the standard method for policy-based segmentation between VLANs.

Exam trap

The trap here is that candidates often think placing the printer in the same VLAN or creating a dedicated VLAN solves the problem, but they overlook that ACLs are the precise tool for granular, policy-based filtering between VLANs on a Layer 3 switch.

Why the other options are wrong

B

Placing the printer in the HR VLAN would allow HR devices to access it without routing, but it would not block other traffic between VLANs, and the printer would lose access to Finance resources if needed.

C

Creating a separate VLAN for the printer does not solve the requirement to permit only HR-to-printer traffic while blocking all other inter-VLAN traffic; it would still require routing and ACLs to control access, and it adds unnecessary complexity.

78
MCQhard

A security analyst discovers that an attacker is sending large numbers of incomplete TCP connection requests to a server, causing the server to run out of resources and stop responding to legitimate requests. Which type of attack is this, and which mitigation should be implemented?

A.SYN flood; enable TCP intercept or SYN cookies
B.Ping flood; implement rate limiting
C.Smurf attack; disable IP-directed broadcasts
D.ARP poisoning; enable dynamic ARP inspection
AnswerA

The attack is a SYN flood. TCP intercept (or SYN cookies) allows the server to manage half-open connections and mitigate resource exhaustion.

Why this answer

This is a SYN flood attack, where the attacker sends a high volume of TCP SYN packets without completing the three-way handshake, exhausting the server's connection queue. Enabling TCP intercept (on Cisco devices) or SYN cookies (RFC 4987) allows the server to validate handshakes before allocating resources, mitigating the attack.

Exam trap

The trap here is that candidates confuse a SYN flood with a ping flood or Smurf attack because all involve flooding, but only SYN floods target the TCP three-way handshake state table.

Why the other options are wrong

B

The attack described involves incomplete TCP connection requests exhausting server resources, which is a SYN flood, not a ping flood. Ping floods use ICMP echo requests, not TCP connections, and rate limiting is a mitigation for ICMP-based floods, not for SYN floods.

C

The question describes incomplete TCP connection requests exhausting server resources, which is a SYN flood, not a Smurf attack. A Smurf attack uses ICMP echo requests sent to a network's broadcast address with a spoofed source IP, causing amplification and targeting the victim with ICMP replies.

D

ARP poisoning targets the Address Resolution Protocol to intercept traffic on a local network, not to exhaust server resources via incomplete TCP connections. The described attack is a SYN flood, which exploits the TCP three-way handshake.

79
MCQhard

A security analyst notices that a user's workstation is sending encrypted DNS queries to an external IP address over TCP port 853. This traffic is being used to establish a covert communication channel to bypass the company's security controls. Which technique is being employed?

A.DNS poisoning
B.DNS tunneling
C.DNS amplification
D.DNS zone transfer
AnswerB

DNS tunneling is a sophisticated technique that abuses the Domain Name System protocol to establish a covert communication channel. It involves encoding arbitrary non-DNS data, such as command-and-control instructions or exfiltrated files, within legitimate-looking DNS queries and responses. This method effectively bypasses many firewalls and intrusion detection systems that typically allow DNS traffic without deep content inspection, making it a potent tool for data exfiltration and maintaining persistence within a compromised network.

Why this answer

DNS tunneling is the correct answer because the analyst observed encrypted DNS queries over TCP port 853 (DNS over TLS) being used to establish a covert communication channel. This technique encapsulates non-DNS data (e.g., command-and-control traffic) within DNS query and response packets, allowing the attacker to bypass security controls by hiding malicious traffic inside legitimate DNS traffic.

Exam trap

The trap here is that candidates may confuse DNS tunneling with DNS poisoning or amplification because all involve DNS abuse, but only tunneling uses DNS as a covert data carrier, not for cache corruption or traffic amplification.

Why the other options are wrong

A

DNS poisoning involves corrupting DNS cache to redirect traffic to malicious sites, not establishing a covert channel via encrypted queries over TCP 853.

C

DNS amplification is a DDoS attack that uses open resolvers to flood a target with large responses, not a technique for establishing covert communication channels via encrypted DNS queries.

D

DNS zone transfer is a mechanism for replicating DNS databases between authoritative servers, typically using TCP port 53, not port 853. It does not involve encrypted queries or covert channels.

80
MCQmedium

A security team is deploying a new intrusion detection system (IDS) and wants to analyze all traffic entering and exiting the network without introducing latency or a single point of failure. How should the IDS be connected to the network?

A.Inline between the firewall and the core switch
B.Connected to a network tap or spanned port on the core switch
C.Directly connected to the internet router
D.Connected to the management network
AnswerB

An Intrusion Detection System (IDS) is designed to passively monitor network traffic for suspicious activity without interfering with the data flow. Connecting it to a network tap or configuring a Switched Port Analyzer (SPAN) port on the core switch provides a non-intrusive, out-of-band copy of all traffic traversing critical network segments. This passive monitoring ensures the IDS does not introduce latency or become a single point of failure, which is crucial for maintaining network performance and availability while providing comprehensive visibility into potential threats.

Why this answer

Connecting the IDS to a network tap or a spanned port (SPAN/mirror port) on the core switch allows it to receive a copy of all traffic entering and exiting the network without being in the data path. This passive deployment introduces zero latency because the IDS never forwards or blocks traffic, and it eliminates a single point of failure since the network continues to operate if the IDS fails or is taken offline.

Exam trap

The N10-009 exam often tests the distinction between inline (active) and passive (out-of-band) deployments, and the trap here is that candidates mistakenly choose inline placement because they think the IDS must 'see' all traffic by being in the path, ignoring the latency and single-point-of-failure consequences.

Why the other options are wrong

A

Inline placement introduces latency and creates a single point of failure, contradicting the requirement to avoid both.

C

Connecting the IDS directly to the internet router would place it inline with all internet traffic, but this creates a single point of failure and introduces latency, contradicting the requirement to avoid both.

D

Connecting the IDS to the management network would only allow it to see management traffic, not all network traffic entering and exiting the network, failing to meet the requirement to analyze all traffic.

81
MCQmedium

A network administrator wants to ensure that only authorized devices can access the network on a switch port. The administrator has a list of allowed MAC addresses. Which security feature should be enabled on the switch port?

A.802.1X
B.MAC address filtering
C.Port security
D.VLAN hopping prevention
AnswerC

Port security allows restricting access based on MAC addresses, preventing unauthorized devices.

Why this answer

Port security is the correct feature because it allows the administrator to specify a list of allowed MAC addresses per switch port. When a device with an unauthorized MAC address attempts to connect, the switch can either block the traffic, generate an alert, or disable the port (errdisable state). This directly enforces access control based on the MAC address list provided.

Exam trap

The N10-009 exam often tests the distinction between port security and MAC address filtering: candidates mistakenly choose 'MAC address filtering' because it sounds correct, but the correct term in network security is 'port security' as it is the configured feature on a switch port.

Why the other options are wrong

A

802.1X is an authentication protocol that requires a RADIUS server and is not used for simple MAC-based allowlisting on a single switch port; it controls network access at the user/device level via EAP, not by a static list of MAC addresses.

B

MAC address filtering is typically implemented on wireless access points or as a general network access control, not specifically on a switch port to limit devices per port. Port security is the Cisco-specific feature that binds MAC addresses to a switch port and can restrict the number of allowed MACs.

D

VLAN hopping prevention is a security measure to prevent traffic from jumping between VLANs, not to restrict device access based on MAC addresses on a single switch port.

82
MCQhard

A security analyst observes that an internal server is sending a large volume of TCP SYN packets to various external IP addresses, but never completing the three-way handshake. This behavior is indicative of which type of attack?

A.Man-in-the-middle attack
B.SYN flood attack
C.DDoS amplification attack
D.Smurf attack
AnswerB

A SYN flood attack exploits the TCP three-way handshake by sending a large volume of SYN (synchronize) packets to a target server. The attacker, in this case, the compromised internal server, does not respond to the server's SYN-ACK (synchronize-acknowledge) replies, leaving numerous half-open connections in the server's connection state table. This rapid exhaustion of available connection resources prevents legitimate clients from establishing new connections, effectively causing a denial of service.

Why this answer

A SYN flood attack occurs when an attacker sends a high volume of TCP SYN packets to a target but never completes the three-way handshake by sending the final ACK. This leaves the target's connection table half-open, consuming resources and potentially exhausting its ability to accept legitimate connections. The observed behavior—internal server sending many SYN packets without completing the handshake—matches the classic signature of a SYN flood, though typically the attacker spoofs the source IP to avoid response traffic.

Exam trap

CompTIA often tests the distinction between a SYN flood (which uses TCP SYN packets and incomplete handshakes) and a DDoS amplification attack (which uses UDP or other protocols with spoofed sources), so candidates mistakenly choose amplification when they see 'large volume' and 'external IPs' without recognizing the TCP SYN signature.

Why the other options are wrong

A

A man-in-the-middle attack involves intercepting and potentially altering communications between two parties, not sending a large volume of SYN packets without completing the handshake.

C

A DDoS amplification attack involves sending small queries to a server with a spoofed source IP, causing the server to send large responses to the victim. The question describes the internal server sending SYN packets, not receiving amplified responses, so this does not match.

D

A Smurf attack involves sending ICMP echo requests with a spoofed source IP to a network's broadcast address, causing all hosts to reply to the victim. The question describes TCP SYN packets, not ICMP, and the server is the source, not the target of amplification.

83
MCQhard

A security analyst discovers that users on the network are receiving ARP replies that map the default gateway IP address to an unknown MAC address. This is causing intermittent connectivity issues. Which type of attack is occurring, and what security feature should be implemented to prevent it?

A.MAC flooding; port security
B.ARP poisoning; Dynamic ARP Inspection (DAI)
C.DHCP starvation; DHCP snooping
D.DNS poisoning; DNSSEC
AnswerB

DAI trusts only ARP responses that match a valid IP-to-MAC binding, preventing ARP spoofing.

Why this answer

This attack is ARP poisoning (also called ARP spoofing), where an attacker sends forged ARP replies to associate the default gateway's IP address with the attacker's MAC address. This allows the attacker to intercept, modify, or drop traffic intended for the gateway. Dynamic ARP Inspection (DAI) prevents this by validating ARP packets against a trusted DHCP snooping binding table, dropping any ARP reply that contains an IP-to-MAC mapping not present in the table.

Exam trap

CompTIA often tests the distinction between Layer 2 attacks (ARP poisoning, MAC flooding) and Layer 3/4 attacks (DHCP starvation, DNS poisoning), so candidates mistakenly choose DHCP starvation or DNS poisoning because they involve 'spoofing' or 'poisoning' without recognizing that the symptom—ARP replies mapping the gateway IP to an unknown MAC—is a direct indicator of ARP manipulation.

Why the other options are wrong

A

The question describes ARP replies mapping the default gateway IP to an unknown MAC, which is ARP poisoning, not MAC flooding. MAC flooding overwhelms a switch's MAC table to force fail-open mode, causing frames to flood, but does not involve spoofing ARP replies.

C

The question describes ARP replies mapping the default gateway IP to an unknown MAC, which is ARP poisoning, not DHCP starvation. DHCP starvation exhausts IP addresses, not ARP mappings.

D

DNS poisoning manipulates DNS records, not ARP tables. The question describes ARP replies mapping a gateway IP to a wrong MAC, which is ARP poisoning, not DNS poisoning.

84
MCQmedium

A security analyst discovers that an unauthorized device is sending forged ARP replies, causing other devices to map the default gateway IP address to the attacker's MAC address. Which security feature should be implemented on the switches to prevent this attack?

A.Port security
B.DHCP snooping
C.Dynamic ARP Inspection
D.BPDU guard
AnswerC

Dynamic ARP Inspection (DAI) directly mitigates ARP spoofing by validating ARP packets against a trusted database of IP-to-MAC address bindings. It intercepts all ARP requests and replies on untrusted ports, dropping any packets with invalid MAC-to-IP mappings or those that do not match entries learned from DHCP snooping. This proactive inspection ensures that only legitimate ARP traffic is forwarded, effectively preventing attackers from poisoning ARP caches and performing man-in-the-middle attacks.

Why this answer

Dynamic ARP Inspection (DAI) is the correct choice because it validates ARP packets on a per-port basis, ensuring that only legitimate ARP replies with correct IP-to-MAC bindings are forwarded. DAI uses a DHCP snooping binding table (or static ARP ACLs) to intercept and verify ARP packets, dropping forged replies that attempt to poison the ARP cache of other devices.

Exam trap

CompTIA often tests the distinction between DHCP snooping (which builds the binding table) and Dynamic ARP Inspection (which uses that table to filter ARP), leading candidates to mistakenly choose DHCP snooping as the direct defense against ARP spoofing.

Why the other options are wrong

A

Port security limits MAC addresses per port but does not inspect ARP packets, so it cannot prevent forged ARP replies that map the gateway IP to an attacker's MAC.

D

BPDU guard is used to prevent bridge loops by disabling ports that receive BPDUs, not to validate ARP packets or prevent ARP spoofing attacks.

85
MCQmedium

A company is implementing network access control to ensure only authenticated users can connect to the wired network. Users must authenticate using their domain credentials before gaining full network access. Which standard should be implemented?

A.802.1X
B.802.3af
C.802.11i
D.802.1Q
AnswerA

802.1X provides authentication for devices attempting to connect to a network port, verifying credentials against a central server.

Why this answer

802.1X is the IEEE standard for port-based network access control (PNAC). It uses the Extensible Authentication Protocol (EAP) to authenticate devices attempting to connect to a wired or wireless LAN, requiring valid domain credentials before the switch port grants full network access.

Exam trap

The N10-009 exam often tests 802.1X by contrasting it with 802.11i, trapping candidates who confuse wireless security standards with wired port-based access control.

Why the other options are wrong

B

802.3af is a Power over Ethernet (PoE) standard that defines how power is delivered over Ethernet cabling, not a network access control mechanism for authenticating users.

C

802.11i is a wireless security standard (WPA2) that provides encryption and authentication for Wi-Fi networks, not for wired network access control.

D

802.1Q is a standard for VLAN tagging, not for network access control or authentication. It does not provide any mechanism to authenticate users before granting network access.

86
MCQmedium

A security analyst notices that the network has been flooded with packets that have the same source IP address as the company's internal DNS server. This is likely an example of which type of attack?

A.Smurf attack
B.IP spoofing
C.Man-in-the-middle
D.ARP poisoning
AnswerB

IP spoofing is a technique where an attacker crafts IP packets with a forged source IP address, making them appear to originate from a different, often trusted, host. In the context of a network flood, this allows an attacker to send a massive volume of traffic without revealing their true identity or location. This obfuscation complicates traceback efforts and makes it harder for network defenders to block the malicious source effectively, contributing directly to the observed network congestion.

Why this answer

IP spoofing is the correct answer because the attacker is forging the source IP address of packets to impersonate the company's internal DNS server. By flooding the network with packets that appear to originate from a trusted internal server, the attacker can bypass security controls, launch reflection attacks, or cause denial of service. This directly matches the scenario where the source IP is falsified to match a legitimate internal host.

Exam trap

CompTIA often tests the distinction between IP spoofing and Smurf attacks, where candidates mistakenly choose Smurf because both involve spoofed source addresses, but Smurf specifically requires ICMP and broadcast amplification, not arbitrary packet flooding with a DNS server's IP.

Why the other options are wrong

A

A Smurf attack uses ICMP echo requests sent to a broadcast address with a spoofed source IP, causing all hosts to reply to the victim. This question describes packets with the same source IP as the internal DNS server, which is IP spoofing, not a Smurf attack.

C

A man-in-the-middle attack involves intercepting and potentially altering communications between two parties, but the question describes a flood of packets with a spoofed source IP, which is characteristic of IP spoofing, not MITM.

D

ARP poisoning involves manipulating ARP tables to associate a malicious MAC address with a legitimate IP address, but the question describes packets with a spoofed source IP address, not ARP table manipulation.

87
MCQmedium

A security analyst discovers that an unauthorized device is sending forged ARP replies to poison the ARP caches of other devices on the network. Which security feature should be implemented on the switches to prevent this?

A.Port security
B.DHCP snooping
C.Dynamic ARP Inspection
D.STP BPDU guard
AnswerC

DAI uses the DHCP snooping binding table to validate ARP packets and drop spoofed ones.

Why this answer

Dynamic ARP Inspection (DAI) validates ARP packets on a per-interface basis by intercepting all ARP requests and replies and verifying that they match entries in the DHCP snooping binding table. If an ARP reply contains a forged IP-to-MAC mapping, DAI drops the packet, preventing ARP cache poisoning. This directly stops the described attack where an unauthorized device sends forged ARP replies.

Exam trap

CompTIA often tests the distinction between DHCP snooping (which builds the trust database) and Dynamic ARP Inspection (which uses that database to filter ARP traffic), leading candidates to mistakenly choose DHCP snooping as the direct solution for ARP spoofing.

Why the other options are wrong

A

Port security limits MAC addresses on a port but does not inspect ARP packets; it cannot prevent forged ARP replies that poison ARP caches.

B

DHCP snooping prevents rogue DHCP servers and IP spoofing by filtering DHCP messages, but it does not inspect ARP packets. Forged ARP replies are mitigated by Dynamic ARP Inspection, which validates ARP packets against the DHCP snooping binding table.

D

STP BPDU guard is used to prevent unauthorized switches from participating in Spanning Tree Protocol by disabling ports that receive BPDUs, but it does not prevent forged ARP replies or ARP cache poisoning.

88
MCQeasy

Which security feature on a switch can prevent an attacker from sending forged ARP messages to redirect traffic?

A.Port security
B.DHCP snooping
C.Dynamic ARP Inspection
D.VLAN segmentation
AnswerC

Dynamic ARP Inspection (DAI) actively validates ARP packets by comparing the source IP address, MAC address, VLAN, and port information against a trusted binding table, typically built by DHCP snooping. This process identifies and drops invalid or forged ARP requests and replies, effectively preventing ARP spoofing attacks. By ensuring the integrity of IP-to-MAC address mappings, DAI mitigates man-in-the-middle attacks that rely on manipulating the ARP cache.

Why this answer

Dynamic ARP Inspection (DAI) is the correct answer because it validates ARP packets against a trusted database (the DHCP snooping binding table) to ensure that the MAC-to-IP address mapping is legitimate. By intercepting and verifying all ARP requests and replies on untrusted ports, DAI prevents an attacker from sending forged ARP messages to redirect traffic (ARP spoofing).

Exam trap

The N10-009 exam often tests the distinction between DHCP snooping (which builds the trust database) and Dynamic ARP Inspection (which uses that database to validate ARP traffic), leading candidates to mistakenly choose DHCP snooping as the direct defense against ARP spoofing.

Why the other options are wrong

A

Port security limits MAC addresses on a port but does not inspect or validate ARP packets, so it cannot prevent forged ARP messages used in ARP spoofing attacks.

B

DHCP snooping validates DHCP messages and builds a binding database, but it does not inspect or filter ARP messages. It cannot prevent forged ARP attacks directly.

D

VLAN segmentation isolates network traffic into separate broadcast domains but does not inspect or validate ARP messages, so it cannot prevent forged ARP attacks that redirect traffic within the same VLAN.

89
MCQmedium

A security analyst notices that a web server is receiving a large number of ICMP echo reply packets from many different external hosts. The server did not send any echo requests. Which type of attack is most likely occurring?

A.Smurf attack
B.Ping flood
C.ICMP tunneling
D.Fraggle attack
AnswerA

A Smurf attack is a distributed denial-of-service (DDoS) attack that leverages an IP broadcast network to amplify traffic. The attacker sends ICMP echo requests (pings) to an IP broadcast address, spoofing the source IP to be that of the victim web server. All hosts on the broadcast network then reply to the spoofed source IP, flooding the victim with a massive volume of ICMP echo replies from numerous sources, overwhelming its network resources. This results in the web server receiving a flood of ICMP traffic from many different machines.

Why this answer

A Smurf attack exploits IP broadcast addressing and ICMP. The attacker sends a large number of ICMP echo request packets with a spoofed source IP (the victim's IP) to a network's broadcast address. All hosts on that network then send ICMP echo reply packets to the victim, overwhelming it with traffic.

Since the server never sent any echo requests, the unsolicited flood of echo replies is the hallmark of a Smurf attack.

Exam trap

The N10-009 exam often tests the distinction between a Smurf attack (unsolicited replies from many hosts due to a spoofed broadcast request) and a ping flood (direct requests from the attacker to the victim), so candidates mistakenly choose 'ping flood' when they see a flood of ICMP traffic.

Why the other options are wrong

B

A ping flood directly targets a victim by overwhelming it with ICMP echo request packets, not echo replies. The question states the server receives echo replies without sending requests, which is characteristic of a Smurf attack that amplifies replies from many hosts.

D

A Fraggle attack uses UDP echo (port 7) or chargen (port 19) traffic, not ICMP echo reply packets. The question specifies ICMP echo replies, which are characteristic of a Smurf attack.

90
MCQeasy

A network administrator wants to prevent rogue DHCP servers from offering IP addresses to clients on the network. Which security feature should be enabled on the switches?

A.DHCP snooping
B.Dynamic ARP Inspection (DAI)
C.Port Security
D.IP Source Guard
AnswerA

DHCP snooping is a security feature implemented on switches that inspects DHCP messages to prevent unauthorized DHCP servers from operating on the network. It classifies switch ports as either trusted (where legitimate DHCP servers are connected) or untrusted. On untrusted ports, DHCP snooping blocks DHCP server responses (DHCP Offer and DHCP ACK messages) and can also drop DHCP Discover messages from clients if the source MAC address doesn't match the client identifier, effectively preventing rogue servers from issuing IP addresses.

Why this answer

DHCP snooping is the correct security feature because it acts as a firewall between untrusted hosts and trusted DHCP servers. It validates DHCP messages by filtering out responses from unauthorized DHCP servers on untrusted ports, preventing rogue servers from offering IP addresses to clients. This is achieved by building and maintaining a DHCP snooping binding database that tracks valid IP-to-MAC address mappings.

Exam trap

CompTIA often tests the distinction between DHCP snooping and Dynamic ARP Inspection (DAI), where candidates mistakenly choose DAI because they confuse ARP spoofing with rogue DHCP server attacks.

Why the other options are wrong

B

Dynamic ARP Inspection (DAI) is designed to validate ARP packets and prevent ARP spoofing attacks, not to block rogue DHCP servers. It does not inspect DHCP traffic or filter unauthorized DHCP offers.

C

Port Security limits the number of MAC addresses per port but does not inspect DHCP messages or prevent unauthorized DHCP servers from offering IP addresses.

D

IP Source Guard prevents IP spoofing by filtering traffic based on DHCP snooping bindings, but it does not directly prevent rogue DHCP servers from offering IP addresses.

91
MCQeasy

Which of the following security mechanisms requires a user to authenticate before gaining access to the wired network at a switch port?

A.802.1X
B.Port security
C.ACL
D.MAC authentication
AnswerA

802.1X is an IEEE standard for Port-based Network Access Control (PNAC) that operates at Layer 2 (Data Link Layer). It functions as a gatekeeper, blocking all network traffic from a device connected to a switch port until that device successfully authenticates with an authentication server, typically RADIUS. This mechanism ensures that only authorized users or devices can gain any network access, making it a robust solution for initial access control by preventing unauthorized devices from even sending basic network requests before authentication.

Why this answer

802.1X is a port-based Network Access Control (NAC) standard (IEEE 802.1X) that requires a user or device to authenticate via an authentication server (e.g., RADIUS) before the switch port transitions from an unauthorized to an authorized state, allowing full network access. It uses Extensible Authentication Protocol (EAP) over LAN (EAPoL) to carry authentication messages between the supplicant (client), authenticator (switch), and authentication server. This ensures that only authenticated users can access the wired network at the switch port level.

Exam trap

The N10-009 exam often tests the distinction between 802.1X (user authentication) and port security (MAC address filtering), leading candidates to confuse MAC-based restrictions with true authentication mechanisms.

Why the other options are wrong

B

Port security restricts access based on MAC addresses but does not require user authentication; it controls which devices can connect, not who uses them.

C

ACLs (Access Control Lists) filter traffic based on IP addresses, protocols, or ports, but they do not require user authentication before granting network access at a switch port.

D

MAC authentication (typically MAC address bypass or MAC authentication bypass) allows devices to authenticate based on their MAC address, but it does not require user authentication; it is often used as a fallback when 802.1X is not supported. The question specifically requires user authentication, which 802.1X provides via EAP.

92
MCQeasy

A company wants to ensure that only devices with known MAC addresses can connect to the guest Wi-Fi network. Which security feature should be configured on the wireless controller?

A.WPA2-Enterprise
B.MAC filtering
C.802.1X
D.WPA3-Personal
AnswerB

MAC filtering is a network access control method that permits or denies network connectivity based on a device's unique Media Access Control (MAC) address. By maintaining an explicit whitelist of approved MAC addresses on a wireless access point or switch, only devices with known identifiers are granted access to the network. This directly addresses the requirement to ensure only devices with known MAC addresses can connect.

Why this answer

MAC filtering allows the wireless controller to maintain an allowlist of known MAC addresses, so only devices with those addresses can associate with the guest SSID. This directly meets the requirement to restrict access based on MAC addresses without requiring authentication credentials from users.

Exam trap

The N10-009 exam often tests the misconception that 802.1X or WPA2-Enterprise can filter by MAC address, but these are authentication protocols for user/device identity, not MAC-based access control.

Why the other options are wrong

A

WPA2-Enterprise provides authentication and encryption for wireless networks, but it does not restrict access based on MAC addresses. The question specifically asks for a feature that allows only devices with known MAC addresses to connect, which is MAC filtering, not an authentication protocol.

C

802.1X is an authentication framework used with enterprise Wi-Fi (e.g., WPA2-Enterprise) to authenticate users via credentials, not devices by MAC address. It does not restrict access based on MAC addresses.

D

WPA3-Personal is a wireless encryption standard that provides secure authentication and data encryption, but it does not restrict access based on device MAC addresses. The question specifically asks for a feature to allow only known MAC addresses, which is MAC filtering, not an encryption protocol.

93
MCQmedium

A network administrator notices that a large number of ICMP echo request packets are being sent to the broadcast address of the network from a single host. This is causing performance degradation. Which type of attack is this?

A.ARP spoofing
B.MAC flooding
C.Smurf attack
D.DNS amplification
AnswerC

A Smurf attack is a classic denial-of-service (DoS) technique that leverages ICMP echo requests to overwhelm a target. Attackers send a large number of ICMP echo request packets to a network's broadcast address, spoofing the source IP address to be that of the victim. All hosts on the broadcast domain then respond to the victim's spoofed IP with ICMP echo replies, creating a massive flood of traffic that saturates the target's network bandwidth and processing capabilities, leading to a DoS.

Why this answer

The smurf attack exploits ICMP by sending echo request packets to a network's broadcast address with a spoofed source IP of the victim. All hosts on the network then reply to the victim, overwhelming it with traffic and causing performance degradation. This matches the scenario of a single host sending ICMP echo requests to the broadcast address.

Exam trap

CompTIA often tests the distinction between amplification attacks (smurf vs. DNS amplification) by focusing on the protocol used (ICMP vs. UDP) and the target address (broadcast vs. open resolver), leading candidates to confuse smurf with DNS amplification if they only remember 'amplification' without the protocol details.

Why the other options are wrong

A

The attack described involves ICMP echo requests to a broadcast address, which is characteristic of a Smurf attack, not ARP spoofing. ARP spoofing involves sending falsified ARP messages to associate the attacker's MAC address with the IP of a legitimate host, enabling man-in-the-middle attacks.

B

MAC flooding targets switch MAC address tables by sending many frames with different source MAC addresses, not by sending ICMP echo requests to a broadcast address.

D

A DNS amplification attack uses open DNS servers to flood a target with large DNS responses, not ICMP echo requests to a broadcast address.

94
MCQhard

A security analyst notices that a network switch is receiving DHCP discover messages from a rogue device offering IP addresses. The rogue device is causing clients to obtain invalid IP addresses and lose network connectivity. Which security feature should be implemented on the switch to prevent this type of attack?

A.Dynamic ARP inspection (DAI)
B.DHCP snooping
C.Port security
D.802.1X authentication
AnswerB

DHCP snooping is a crucial Layer 2 security feature implemented on network switches that actively prevents unauthorized DHCP servers from distributing IP addresses and other network configuration parameters. It operates by classifying switch ports as either trusted, where legitimate DHCP servers are connected, or untrusted, where client devices reside. The switch inspects all DHCP messages, dropping invalid DHCP server responses originating from untrusted ports, thereby effectively mitigating rogue DHCP server attacks and ensuring clients receive valid IP configurations. This mechanism also dynamically builds and maintains a DHCP snooping binding table, tracking valid IP-to-MAC address mappings for further security features.

Why this answer

B is correct because DHCP snooping is a security feature that filters untrusted DHCP messages on a switch. It distinguishes between trusted ports (connected to legitimate DHCP servers) and untrusted ports (connected to clients or rogue devices). When a rogue device sends DHCP discover messages offering IP addresses, DHCP snooping on untrusted ports drops those messages, preventing the rogue server from assigning invalid IP addresses.

Exam trap

The trap here is that candidates confuse DHCP snooping with Dynamic ARP Inspection (DAI), but DAI only protects against ARP-based attacks, not rogue DHCP servers, while DHCP snooping directly addresses the described scenario.

Why the other options are wrong

A

Dynamic ARP inspection (DAI) validates ARP packets to prevent ARP spoofing, but it does not inspect DHCP messages. The attack described involves rogue DHCP servers, which is mitigated by DHCP snooping, not DAI.

C

Port security limits MAC addresses on switch ports but does not inspect DHCP messages; it cannot prevent a rogue DHCP server from offering invalid IP addresses.

D

802.1X authentication controls network access at the port level by requiring user/device authentication, but it does not prevent rogue DHCP servers from offering IP addresses. The attack described involves unauthorized DHCP offers, which 802.1X does not filter.

95
Drag & Dropmedium

Drag and drop the steps to configure a VLAN on a managed switch into the correct order.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4

Why this order

VLAN creation involves entering config mode, creating the VLAN, and assigning ports.

96
MCQhard

A company wants to ensure that only users who have successfully authenticated Active Directory credentials can access the wired network. The network switches support IEEE 802.1X. Which additional component must be deployed to complete the solution?

A.A RADIUS server
B.A DHCP server
C.A certificate authority
D.A TACACS+ server
AnswerA

A RADIUS server is the foundational component for 802.1X port-based authentication, acting as the central Authentication, Authorization, and Accounting (AAA) server. It receives authentication requests from network devices (authenticators) and validates user credentials against an identity store, such as Active Directory or an internal database. Upon successful authentication, the RADIUS server authorizes network access, ensuring only legitimate users gain entry to the network and enforcing specific access policies.

Why this answer

IEEE 802.1X port-based authentication requires a RADIUS server to act as the authentication server. The switch (authenticator) forwards the user's credentials to the RADIUS server, which validates them against Active Directory and returns an accept or reject decision. Without a RADIUS server, the switch has no way to verify the user's credentials against the central identity store.

Exam trap

The N10-009 exam often tests the distinction between RADIUS (for network access) and TACACS+ (for device administration), leading candidates to mistakenly choose TACACS+ because it is associated with authentication, even though 802.1X specifically requires RADIUS.

Why the other options are wrong

B

A DHCP server assigns IP addresses but does not authenticate users against Active Directory or enforce network access control, which is required for 802.1X authentication.

C

802.1X authentication uses RADIUS to verify credentials against Active Directory; a certificate authority is not required unless EAP-TLS is used, but the question does not specify certificate-based authentication.

D

TACACS+ is used for device administration (e.g., switch/router login) and separates authentication, authorization, and accounting, but it is not the standard RADIUS protocol required for IEEE 802.1X port-based network access control.

97
MCQhard

A security analyst detects that an attacker is sending forged ARP replies to associate the attacker's MAC address with the IP address of the default gateway. What is this attack called?

A.ARP poisoning
B.MAC flooding
C.DHCP snooping
D.DNS spoofing
AnswerA

ARP poisoning, also known as ARP spoofing, is a man-in-the-middle attack where an attacker sends forged ARP (Address Resolution Protocol) messages over a local area network. By sending false ARP replies, the attacker associates their own MAC address with the IP address of another host, such as the default gateway. This causes the victim's traffic, intended for the gateway, to be incorrectly forwarded to the attacker's machine, allowing interception or modification.

Why this answer

ARP poisoning (also known as ARP spoofing) is the correct answer because the attacker sends forged ARP replies to associate their MAC address with the IP address of the default gateway. This causes the victim's switch to update its ARP cache with the attacker's MAC for the gateway's IP, enabling man-in-the-middle attacks where the attacker intercepts traffic destined for the gateway.

Exam trap

The N10-009 exam often tests the distinction between ARP poisoning (which targets the ARP cache) and MAC flooding (which targets the switch's CAM table), leading candidates to confuse the two because both involve MAC addresses and network attacks.

Why the other options are wrong

B

MAC flooding involves sending many frames with different source MAC addresses to overflow the switch's CAM table, not forging ARP replies to associate a MAC with a gateway IP.

C

DHCP snooping is a security feature that filters untrusted DHCP messages to prevent rogue DHCP servers, not a method for forging ARP replies to associate a MAC with a gateway IP.

D

DNS spoofing involves corrupting DNS resolution to redirect traffic to malicious sites, not forging ARP replies to associate a MAC address with a gateway IP.

98
MCQmedium

A security auditor discovers that an unauthorized switch has been connected to an access port in the wiring closet. The rogue switch caused a network loop and disrupted connectivity. Which security feature, if enabled on the access port, would have prevented this by disabling the port when a BPDU is received?

A.BPDU guard
B.Root guard
C.Loop guard
D.UDLD
AnswerA

BPDU guard is a critical Spanning Tree Protocol (STP) security feature designed to protect the integrity of the STP domain by preventing unauthorized devices from influencing the network topology. When enabled on an access port, it immediately places the port into an error-disabled state upon receiving any Bridge Protocol Data Unit (BPDU). This action effectively shuts down the port, isolating the unauthorized switch and preventing it from injecting BPDUs that could disrupt the STP topology or create network loops.

Why this answer

BPDU guard is the correct answer because it is specifically designed to protect against rogue switch connections on access ports. When enabled, if a port receives any Bridge Protocol Data Unit (BPDU), it immediately places the port into an errdisable state, effectively disabling it and preventing a potential network loop. This directly addresses the scenario where an unauthorized switch connected to an access port caused a loop.

Exam trap

CompTIA often tests the distinction between BPDU guard and Root guard, where candidates mistakenly choose Root guard thinking it prevents loops, but Root guard only protects the root bridge election and does not disable a port upon BPDU reception.

Why the other options are wrong

B

Root guard is used to enforce the root bridge position in a spanning-tree topology, not to disable ports upon receiving BPDUs. It does not prevent unauthorized switches from causing loops by disabling the port.

C

Loop guard is designed to prevent alternate or root ports from becoming designated ports in the absence of BPDUs, not to disable a port upon receiving a BPDU. It does not protect against rogue switches sending BPDUs.

D

UDLD (Unidirectional Link Detection) detects unidirectional links but does not disable a port upon receiving BPDUs; it is not designed to prevent rogue switches or loops caused by BPDU reception.

← PreviousPage 2 of 2 · 98 questions total

Ready to test yourself?

Try a timed practice session using only Network Security questions.