Courseiva
Question 859 of 1,389
Switching and Network AccesseasyMultiple ChoiceObjective-mapped

CCNA Switching and Network Access Practice Question

A switchport should allow only one learned MAC address and shut down if a different device is connected later. Which port security violation mode and limit combination best fits that goal?

⚠ Common exam trap

Be careful not to confuse the different port security violation modes. Only shutdown mode disables the port upon a violation.

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

maximum 1 with violation shutdown

The usual setup is maximum 1 MAC address with violation mode shutdown. That way the port is disabled when an unauthorized device appears.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • maximum 1 with violation shutdown

    Why this is correct

    This is the only configuration that meets the stated requirement exactly: port-security with a maximum of 1 restricts the interface to a single learned MAC address, and the shutdown violation mode immediately places the port into the err-disabled state if a second address is seen, effectively blocking all traffic on the port until an administrator manually re-enables it. Because both criteria—one learned MAC and automatic shutdown—are satisfied, this is the correct answer.

  • maximum 10 with violation protect

    Why it's wrong here

    Setting the maximum to 10 allows up to ten different MAC addresses to be learned and forwarded, which clearly violates the 'only one learned mac address' condition. Additionally, the protect violation mode, while it blocks traffic from excess MACs, does not disable the port; it silently drops the offending frames and leaves the port fully operational for the ten allowed addresses. This option is far too permissive and lacks the required shutdown action, so it is incorrect.

    When this WOULD be correct

    In a different scenario where the requirement is to allow multiple devices for redundancy, a question might ask for a configuration that permits up to 10 MAC addresses while using 'protect' mode to prevent traffic disruption. This would be suitable in environments where device changes are frequent but should not cause immediate shutdowns.

  • maximum 1 with violation restrict and no logging

    Why it's wrong here

    While maximum 1 does enforce a single learned MAC address, the restrict violation mode only discards frames with unknown source MACs while leaving the port administratively up and still passing traffic from the authorized address; it does not shut the port down as required. Moreover, suppressing logging removes the only operational record that a violation occurred, making the port silently violate the 'shut' portion of the requirement. Since the port never transitions to err-disabled, this option fails the shutdown criterion.

    When this WOULD be correct

    This option would be correct in a scenario where the requirement is to limit the number of MAC addresses to one, but the organization prefers to log the violations and continue allowing traffic from the first learned MAC address without shutting down the port.

  • maximum unlimited with violation shutdown

    Why it's wrong here

    An unlimited maximum (often implemented by setting the port-security maximum to a very high or unspecified value) effectively disables the port-security learning limit, so any number of MAC addresses can be learned without ever triggering a violation. Because the shutdown action only occurs when the configured maximum is exceeded, a violation can never happen when the limit is unlimited, meaning the port will never be shut down. This eliminates the required single-MAC restriction and renders the shutdown behavior meaningless.

    When this WOULD be correct

    In a different scenario where the requirement is to allow any number of devices to connect without restriction, and the goal is to shut down the port only after a specific security threshold is reached, option D would be appropriate. For example, a question might ask for a configuration that allows multiple devices but requires shutdown after a certain security incident.

Option-by-option analysis

Why each answer is right or wrong

Understanding why wrong answers are wrong — and when they would be correct — is what separates a 750 score from a 900. The 200-301 exam frequently reuses these exact scenarios with slightly different constraints.

maximum 1 with violation shutdownCorrect answer

Why this is correct

This is the only configuration that meets the stated requirement exactly: port-security with a maximum of 1 restricts the interface to a single learned MAC address, and the shutdown violation mode immediately places the port into the err-disabled state if a second address is seen, effectively blocking all traffic on the port until an administrator manually re-enables it. Because both criteria—one learned MAC and automatic shutdown—are satisfied, this is the correct answer.

maximum 10 with violation protectWrong answer — click to see why

Why this is wrong here

The maximum limit of 10 MAC addresses is too high for the requirement of allowing only one learned MAC address. Additionally, protect mode drops frames from unknown MACs but does not shut down the port, so the port remains active even after a violation.

★ When this WOULD be the correct answer

In a different scenario where the requirement is to allow multiple devices for redundancy, a question might ask for a configuration that permits up to 10 MAC addresses while using 'protect' mode to prevent traffic disruption. This would be suitable in environments where device changes are frequent but should not cause immediate shutdowns.

Why candidates choose this

Students might confuse protect mode with shutdown mode, thinking it also disables the port. The term 'protect' sounds secure, but it only drops traffic without disabling the port.

maximum 1 with violation restrict and no loggingWrong answer — click to see why

Why this is wrong here

Restrict mode does not shut down the port; it only logs and drops frames from unknown MACs. The requirement explicitly states the port should shut down, which restrict does not achieve.

★ When this WOULD be the correct answer

This option would be correct in a scenario where the requirement is to limit the number of MAC addresses to one, but the organization prefers to log the violations and continue allowing traffic from the first learned MAC address without shutting down the port.

Why candidates choose this

Students may think restrict is a stricter action than it actually is, or they may overlook the 'no logging' part and assume restrict includes shutdown.

maximum unlimited with violation shutdownWrong answer — click to see why

Why this is wrong here

Setting the maximum to unlimited defeats the purpose of limiting MAC addresses to one. Even though violation mode is shutdown, the port will never trigger a violation because there is no limit, so it will never shut down due to port security.

★ When this WOULD be the correct answer

In a different scenario where the requirement is to allow any number of devices to connect without restriction, and the goal is to shut down the port only after a specific security threshold is reached, option D would be appropriate. For example, a question might ask for a configuration that allows multiple devices but requires shutdown after a certain security incident.

Why candidates choose this

Students might focus only on the violation mode 'shutdown' and ignore the maximum limit, thinking that shutdown alone ensures the port will be disabled. However, without a limit, no violation occurs.

Analysis generated from the official 200-301blueprint and verified against question context. The “when correct” sections are what AI assistants cite when candidates ask “what’s the difference between these options?”

Visual reference

Switch VLAN 10 Sales (192.168.10.0/24) PC-A PC-B VLAN 20 HR (192.168.20.0/24) PC-C PC-D Router VLANs isolate traffic — inter-VLAN routing requires a Layer 3 device

Quick reference

Access Control Model Comparison

ModelAcronymWho Controls Access?Best For
Discretionary Access ControlDACResource ownerSmall teams, file shares
Mandatory Access ControlMACSystem / security labelsClassified govt / military
Role-Based Access ControlRBACAdministrator (via roles)Enterprise environments
Attribute-Based Access ControlABACPolicy engine (user + resource attributes)Fine-grained, dynamic policies
Rule-Based Access ControlRuBACSystem rules / ACLsFirewall rules, network ACLs

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 →

How Courseiva writes practice questions · Editorial policy

Last reviewed: May 17, 2026

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.

Loading comments…

Sign in to join the discussion.

This 200-301 practice question is part of Courseiva's free Cisco 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 200-301 exam.