Alpha Centauri Studies
CoursesFor Institutions

Loading...

Alpha Centauri Studies

CSEC past papers, worked

Past papers worked question by question, and courses built on the CSEC syllabus, for students across the Caribbean.

Serving Caribbean students since 2025

Explore

CoursesAboutContact

Support

PrivacyTermsHelp

Subscribe to Our Newsletter

New papers and courses, when they land.

Connect With Us
© 2026 Alpha Centauri Studies. All rights reserved.
The CCNA bank

5.7

Configure and verify Layer 2 security features

14 questions with the answer marked and the reasoning under it, and 6 labs and activities.

Labs and activities

  • 5.2.2.7 Packet Tracer - Configuring Switch Port Security InstructionsPacket Tracer9 min.pka
  • 5.2.2.8 Packet Tracer - Troubleshooting Switch Port Security InstructionsPacket Tracer5 min.pka
  • Challenge Lab 8: Switchport SecurityLab8 min
  • Lab 10: Configuring Advanced Switch Access Port SecurityLab5 min
  • Lab 9: Configuring Switch Access Port SecurityLab7 min
  • Lab 123: Configuring Port SecurityTutorial5 min

Questions and answers

  1. 1. A network technician is configuring port security on a LAN switch interface. The security policy requires host MAC addresses to be learned dynamically, stored in the address table, and saved to the switch running configuration. Which command does the technician need to add to the following configuration to implement this policy?

    • Switch(config)# interface fa0/1 Switch(config-if)# switchport mode access
    • Switch(config-if)# switchport portsecurity
    • Switch(config-if)# switchport port-security maximum 40
    • Switch(config-if)# switchport port-security macaddress
    • Switch(config-if)# switchport port-security macaddress sticky(correct)
    • Switch(config-if)# switchport port-security macaddress 000B.FCFF.E880

    sticky learns dynamically and adds MACs to running config

  2. 2. An administrator who is troubleshooting connectivity issues on a switch notices that a switch port configured for port security is in the err-disabled state. After verifying the cause of the violation, how should the administrator re-enable the port without disrupting network operation?

    • Reboot the switch.
    • Issue the no switchport port-security violation shutdown command on the interface.
    • Issue the no switchport port-security command, then re-enable port security.
    • Issue the shutdown command followed by the no shutdown command on the interface.(correct)

    To re-enable the port, use the shutdown interface configuration mode command (Figure 3). Then, use the no shutdown interface configuration command to make the port operational.

  3. 3. Which two statements are true regarding switch port security? (Choose two.)

    • The three configurable violation modes all log violations via SNMP.
    • Dynamically learned secure MAC addresses are lost when the switch reboots.(correct)
    • The three configurable violation modes all require user intervention to re-enable ports.
    • After entering the sticky parameter, only MAC addresses subsequently learned are
    • converted to secure MAC addresses.
    • If fewer than the maximum number of MAC addresses for a port are configured statically,(correct)
    • dynamically learned addresses are added to CAM until the maximum number is reached.

    Explanation: Dynamically learned secure MAC addresses are lost when the switch reboots. Sticky MAC addresses are learned and added to the running config. These addressess can be retained if the configuration is saved and then rebooted. MAC addresses may also be configured statically (that is, manually). If fewer than the maximum number of MAC addresses for a port are configured statically, dynamically learned addresses are added to CAM until the maximum number is reached.

  4. 4. Fill in the blank. When port security is enabled, a switch port uses the default violation mode of shutdown until specifically configured to use a different violation mode. Explanation: If no violation mode is specified when port security is enabled on a switch port, then the security violation mode defaults to shutdown. 56. Which three statements are true about using full-duplex Fast Ethernet? (Choose three.)

    • Performance is improved with bidirectional data flow.(correct)
    • Performance is improved because the NIC is able to detect collisions.
    • Latency is reduced because the NIC processes frames faster.(correct)
    • Full-duplex Fast Ethernet offers 100 percent efficiency in both directions.(correct)
    • Nodes operate in full-duplex with unidirectional data flow.
    • Performance is improved because the collision detect function is disabled on the device.

    Full-duplex: bidirectional flow, lower latency, 100% efficiency both directions

  5. 5. Where are dynamically learned MAC addresses stored when sticky learning is enabled with the switchport port-security mac-address sticky command?

    • ROM
    • RAM(correct)
    • NVRAM
    • flash

    When MAC addresses are automatically learned by using the sticky command option, the learned MAC addresses are added to the running configuration, which is stored in RAM.

  6. 6. A network administrator configures the port security feature on a switch. The security policy specifies that each access port should allow up to two MAC addresses. When the maximum number of MAC addresses is reached, a frame with the unknown source MAC address is dropped and a notification is sent to the syslog server. Which security violation mode should be configured for each access port?

    • restrict(correct)
    • protect
    • warning
    • shutdown

    In port security implementation, an interface can be configured for one of three violation modes: Protect - a port security violation causes the interface to drop packets with unknown source addresses and no notification is sent that a security violation has occurred. Restrict - a port security violation causes the interface to drop packets with unknown source addresses and to send a notification that a security violation has occurred. Shutdown - a port security violation causes the interface to immediately become error-disabled and turns off the port LED. No notification is sent that a security violation has occurred.

  7. 7. Which action will bring an error-disabled switch port back to an operational state?

    • Remove and reconfigure port security on the interface.
    • Issue the switchport mode access command on the interface.
    • Clear the MAC address table on the switch.
    • Issue the shutdown and then no shutdown interface commands.(correct)

    When a violation occurs on a switch port that is configured for port security with the shutdown violation action, it is put into the err-disabled state. It can be brought back up by shutting down the interface and then issuing the no shutdown command.

  8. 8. An IT security specialist enables port security on a switch port of a Cisco switch. What is the default violation mode in use until the switch port is configured to use a different violation mode?

    • shutdown(correct)
    • disabled
    • restrict
    • protect

    Explanation: If no violation mode is specified when port security is enabled on a switch port, then the security violation mode defaults to shutdown.

  9. 9. What security countermeasure is effective for preventing CAM table overflow attacks?

    • port security(correct)
    • DHCP snooping
    • IP source guard
    • Dynamic ARP Inspection

    Explanation: Port security is the most effective method for preventing CAM table overflow attacks. Port security gives an administrator the ability to manually specify what MAC addresses should be seen on given switch ports. It provides a method for limiting the number of MAC addresses that can be dynamically learned over a switch port.

  10. 10. Question 6 of 52 6. Question 1 points A network technician is configuring port security on

    • switches. The interfaces on the switches are configured in such a way that when a
    • violation occurs, packets with unknown source addresses are dropped and no
    • notification is sent. Which violation mode is configured on the interfaces? off restrict
    • protect shutdown Correct Incorrect(correct)

    Drop with no notification equals protect, which begins option 3

  11. 11. After sticky learning of MAC addresses is enabled, what action is needed to prevent dynamically learned MAC addresses from being lost in the event that an associated interface goes down?

    • Reboot the switch.
    • Copy the running configuration to the startup configuration.(correct)
    • Shut down the interface then enable it again with the no shutdown command.
    • Configure port security for violation protect mode.

    When sticky learning is enabled, dynamically learned MAC addresses are stored in the running configuration in RAM and will be lost if the switch is rebooted or an interface goes down. To prevent the loss of learned MAC addresses, an administrator can save the running configuration into the startup configuration in NVRAM.

  12. 12. A network technician is configuring port security on switches. The interfaces on the switches are configured in such a way that when a violation occurs, packets with unknown source addresses are dropped and no notification is sent. Which violation mode is configured on the interfaces?

    • off
    • restrict
    • protect(correct)
    • shutdown

    Protect drops silently with no notification

  13. 13. A network technician has been asked to secure all switches in the campus network. The security requirements are for each switch to automatically learn and add MAC addresses to both the address table and the running configuration. Which port security configuration will meet these requirements?

    • auto secure MAC addresses
    • dynamic secure MAC addresses
    • static secure MAC addresses
    • sticky secure MAC addresses(correct)

    With sticky secure MAC addressing, the MAC addresses can be either dynamically learned or manually configured and then stored in the address table and added to the running configuration file. In contrast, dynamic secure MAC addressing provides for dynamically learned MAC addressing that is stored only in the address table.

  14. 14. A network administrator is configuring port security on a Cisco switch. When a violation occurs, which violation mode that is configured on an interface will cause packets with an unknown source address to be dropped with no notification sent?

    • off
    • restrict
    • protect(correct)
    • shutdown

    On a Cisco switch, an interface can be configured for one of three violation modes, specifying the action to be taken if a violation occurs:Protect – Packets with unknown source addresses are dropped until a sufficient number of secure MAC addresses are removed, or the number of maximum allowable addresses is increased. There is no notification that a security violation has occurred. Restrict – Packets with unknown source addresses are dropped until a sufficient number of secure MAC addresses are removed, or the number of maximum allowable addresses is increased. In this mode, there is a notification that a security violation has occurred. Shutdown – The interface immediately becomes error- disabled and the port LED is turned off.