150 CCNA Switch Configuration MCQS with Explanation

81. A switch port configured with the _____ command will only allow a single VLAN’s traffic.

  • a) switchport mode access
  • b) switchport mode trunk
  • c) switchport vlan
  • d) switchport single vlan

Answer: a) switchport mode access

The switchport mode access command configures the port to allow traffic from only a single VLAN.

82. Which command allows you to save the current running configuration to the startup configuration on a Cisco switch?

  • a) copy running-config startup-config
  • b) save running-config
  • c) copy config
  • d) save config

Answer: a) copy running-config startup-config

The copy running-config startup-config command saves the current configuration to the startup configuration, ensuring it is preserved after a reboot.

83. What is the maximum number of VLANs that can be created on a Cisco switch?

  • a) 256
  • b) 512
  • c) 1024
  • d) 4096

Answer: d) 4096

Cisco switches support a maximum of 4096 VLANs, as VLAN IDs range from 1 to 4094 (with VLANs 0 and 4095 reserved).

84. The command banner motd # is used to configure a _____ on a switch.

  • a) Login password
  • b) Welcome message
  • c) Access control list
  • d) VLAN

Answer: b) Welcome message


The banner motd # command configures a Message of the Day (MOTD) banner, which is displayed to users when they log into the switch.

85. Which of the following is a characteristic of the default VLAN on a Cisco switch?

  • a) It cannot be deleted.
  • b) It can be renamed.
  • c) It is automatically trunked across all ports.
  • d) It is assigned a different ID on each switch.

Answer: a) It cannot be deleted.

The default VLAN, VLAN 1, cannot be deleted or renamed. It is automatically assigned to all switch ports.

86. Which command is used to set a password on a VTY line for remote access?

  • a) line password
  • b) password vty
  • c) login password
  • d) password

Answer: d) password

The password command is used within the VTY line configuration mode to set a password for remote access via Telnet or SSH.

87. The _____ command is used to view the current Spanning Tree Protocol (STP) status on a switch.

  • a) show stp
  • b) show spanning-tree
  • c) show spanning-tree status
  • d) show stp status

Answer: b) show spanning-tree

The show spanning-tree command displays the current status and configuration of the Spanning Tree Protocol on the switch.

88. Which of the following is true about a broadcast domain?

  • a) It includes all devices connected to a switch.
  • b) It is segmented by routers.
  • c) It allows only unicast traffic.
  • d) It is used to filter traffic based on MAC addresses.

Answer: b) It is segmented by routers.


A broadcast domain is defined by routers, which segment the network into multiple broadcast domains to limit the scope of broadcast traffic.

89. Which command is used to enable SSH on a Cisco switch?

  • a) enable ssh
  • b) ssh enable
  • c) crypto key generate rsa
  • d) ssh setup

Answer: c) crypto key generate rsa

The crypto key generate rsa command generates an RSA key pair required for SSH to function on a Cisco switch.

90. The command show ip ssh displays the _____ of SSH on a switch.

  • a) IP address
  • b) Version and status
  • c) MAC address
  • d) Encryption type

Answer: b) Version and status

The show ip ssh command displays the version and status of SSH on the switch, including whether SSH is enabled and which version is in use.