- A
802.1X
Why wrong: 802.1X is an authentication protocol that requires user credentials, not just MAC address filtering.
- B
MAC address filtering
Why wrong: MAC address filtering is a general term; on switches it is implemented via port security.
- C
Port security
Port security allows restricting access based on MAC addresses, preventing unauthorized devices.
- D
VLAN hopping prevention
Why wrong: VLAN hopping prevention protects against VLAN attacks, not device authorization.
Quick Answer
Port security is the correct choice because it enables MAC address limiting on a switch port, allowing the administrator to define a specific list of allowed MAC addresses and restrict access to only those devices. When a device with an unauthorized MAC address attempts to connect, the switch can either block the traffic, generate an alert, or place the port into an errdisable state, enforcing strict access control at the data link layer. On the CompTIA Network+ N10-009 exam, this concept tests your understanding of Layer 2 security features, often appearing in scenario-based questions where you must choose between port security, 802.1X, or DHCP snooping. A common trap is confusing port security with MAC filtering on a wireless network—remember that port security is a switch-port feature, not a wireless one. To recall the three violation modes, think of the mnemonic “S.P.A.”: Shutdown (errdisable), Protect (drops unknown frames), and Restrict (drops and logs).
N10-009 Network Security Practice Question
This N10-009 practice question tests your understanding of network security. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
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?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
Port security
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.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
802.1X
Why it's wrong here
802.1X is an authentication protocol that requires user credentials, not just MAC address filtering.
- ✗
MAC address filtering
Why it's wrong here
MAC address filtering is a general term; on switches it is implemented via port security.
- ✓
Port security
Why this is correct
Port security allows restricting access based on MAC addresses, preventing unauthorized devices.
Related concept
Read the scenario before looking for a memorised answer.
- ✗
VLAN hopping prevention
Why it's wrong here
VLAN hopping prevention protects against VLAN attacks, not device authorization.
Common exam traps
Common exam trap: answer the scenario, not the keyword
Cisco often tests the distinction between port security and MAC address filtering: candidates mistakenly choose 'MAC address filtering' because it sounds correct, but Cisco expects the exact feature name 'port security' as it is the configured command on a switch port.
Detailed technical explanation
How to think about this question
Port security uses the `switchport port-security` command and supports three violation modes: protect (drops traffic from unknown MACs), restrict (drops and logs), and shutdown (disables the port). The maximum number of secure MAC addresses defaults to 1 but can be increased, and sticky MAC learning can dynamically populate the allowed list. In a real-world scenario, an administrator might combine port security with 802.1X for multi-factor access control, but port security alone fulfills the requirement of a static MAC allow list.
KKey Concepts to Remember
- Read the scenario before looking for a memorised answer.
- Find the constraint that changes the correct option.
- Eliminate answers that are true in general but not in this case.
TExam Day Tips
- Watch for words such as best, first, most likely and least administrative effort.
- Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A help-desk technician troubleshoots why a newly connected PC cannot reach shared printers on the same floor. The cable is good, the switch port is active, but the PC is in VLAN 20 and the printers are in VLAN 10. The uplink trunk only allows VLAN 10. A trunk being up does not mean every VLAN crosses it.
What to study next
Got this wrong? Here's your next step.
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
- →
Network Security — study guide chapter
Learn the concepts, then practise the questions
- →
Network Security practice questions
Targeted practice on this topic area only
- →
All N10-009 questions
520 questions across all exam domains
- →
CompTIA Network+ N10-009 study guide
Full concept coverage aligned to exam objectives
- →
N10-009 practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related N10-009 practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Networking Concepts practice questions
Practise N10-009 questions linked to Networking Concepts.
Network Implementation practice questions
Practise N10-009 questions linked to Network Implementation.
Network Operations practice questions
Practise N10-009 questions linked to Network Operations.
Network Security practice questions
Practise N10-009 questions linked to Network Security.
Network Troubleshooting practice questions
Practise N10-009 questions linked to Network Troubleshooting.
Network+ network fundamentals practice questions
Practise N10-009 questions linked to Network+ network fundamentals.
Practice this exam
Start a free N10-009 practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this N10-009 question test?
Network Security — This question tests Network Security — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: Port security — 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.
What should I do if I get this N10-009 question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Same concept, more angles
2 more ways this is tested on N10-009
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. A network administrator wants to prevent unauthorized devices from being plugged into switch ports. Only devices with specific MAC addresses should be allowed on each port. Which switch security feature should be enabled?
easy- A.DHCP snooping
- B.Dynamic ARP inspection
- ✓ C.Port security
- D.802.1X
Why C: Port security is the correct feature because it allows the administrator to restrict which MAC addresses can communicate through a switch port. By configuring allowed MAC addresses (sticky or static), any device with an unknown MAC address attempting to send traffic will trigger a security violation (shutdown, restrict, or protect). This directly addresses the requirement to prevent unauthorized devices from being plugged into switch ports.
Variation 2. A network administrator wants to prevent unauthorized devices from connecting to the network by limiting the number of MAC addresses allowed on a switch port. Which security feature should be configured?
medium- A.802.1X
- ✓ B.Port security
- C.DHCP snooping
- D.Dynamic ARP inspection
Why B: Port security is the correct feature because it directly restricts the number of unique MAC addresses that can be learned on a switch port, preventing unauthorized devices from connecting. When the configured limit is exceeded, the switch can take actions such as shutdown, restrict, or protect, effectively blocking the unauthorized device. This is a Layer 2 access control mechanism that operates on the switch port itself.
Last reviewed: Jun 11, 2026
This N10-009 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the N10-009 exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.