Courseiva
mediumMultiple ChoiceObjective-mapped

CCNP Practice Question: Is configuring port security on a Cisco switch

A network engineer is configuring port security on a Cisco switch. The requirement is to allow only the first MAC address that appears on the port to be learned and to automatically disable the port if a violation occurs. The engineer configures 'switchport port-security mac-address sticky' but does not specify a maximum number of secure MAC addresses. After connecting a single host, the port works. However, when the host is replaced with a different device, the port is error-disabled. What is the most likely reason?

⚠ Common exam trap

Cisco often tests the default values for port security features, specifically that the default maximum number of secure MAC addresses is 1 and the default violation mode is 'shutdown', leading candidates to overlook the need to configure 'switchport port-security maximum' when using sticky learning for multiple hosts.

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

The default maximum number of secure MAC addresses is 1, so the second MAC address triggers a violation.

The default maximum number of secure MAC addresses on a switchport is 1. When the engineer configured 'switchport port-security mac-address sticky' without specifying a maximum, the port learned the first host's MAC address as a sticky entry. When a different device was connected, its MAC address exceeded the default limit of 1, triggering a security violation. Since the default violation mode is 'shutdown', the port was error-disabled.

Answer analysis

Option-by-option breakdown

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

  • The default maximum number of secure MAC addresses is 1, so the second MAC address triggers a violation.

    Why this is correct

    Correct because the default maximum is 1, and sticky learning does not change that.

  • The sticky keyword requires the engineer to first manually configure a maximum number of MAC addresses.

    Why it's wrong here

    Incorrect because sticky can be used without specifying a maximum; the default maximum is 1.

  • The violation mode is set to 'restrict' by default, which causes the port to error-disable after one violation.

    Why it's wrong here

    Incorrect because the default violation mode is 'shutdown', not 'restrict'.

  • The port security aging type is set to 'absolute' by default, causing the sticky address to expire immediately.

    Why it's wrong here

    Incorrect because aging is not enabled by default and does not cause error-disable on a new MAC.

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

One of 1,175 original 350-401 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This 350-401 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 350-401 exam.