What does STP do in a network with redundant Layer 2 links?
4 Spanning Tree Protocol Online Quiz Questions
Use this free practice quiz with 20 questions to review 4 Spanning Tree Protocol, test your knowledge, and prepare for your next test or exam.
True or false: Because Ethernet frames have no Layer 2 hop limit, a forwarding loop can cause broadcast storms, duplicate frames, and MAC-address table instability.
- A
True
- B
False
Two switches are being considered for root bridge election, and their bridge priorities differ. Which rule determines which one wins?
- A
The switch with the lower priority wins; if priorities tie, the switch with the lower MAC address wins.
- B
The switch with the higher priority wins; if priorities tie, the switch with the higher MAC address wins.
- C
The switch with the lower MAC address always wins, regardless of priority.
- D
The switch with the most root ports wins.
On a non-root switch, what role is assigned to the port that provides the switch's best path toward the root bridge?
- A
Root port
- B
Designated port
- C
Alternate port
- D
Backup port
Select all statements that correctly describe RSTP port roles.
- A
A root port on a non-root switch provides its best path toward the root.
- B
A designated port is selected for a LAN segment and advertises the best path from that segment toward the root.
- C
An alternate port provides a standby path toward the root and normally discards data frames.
- D
A backup port provides a redundant connection to the same shared segment as a designated port.
- E
The root bridge has a root port because every switch must have one.
STP switches exchange to compare paths and determine the active topology.
True or false: In common Cisco PVST+ and Rapid PVST+ deployments, a trunk has one STP state shared by every VLAN it carries.
- A
True
- B
False
On a Cisco IOS-style switch, which command displays STP details for VLAN 10, including interface roles and path costs?
- A
show spanning-tree vlan 10
- B
show spanning-tree summary
- C
spanning-tree vlan 10 root primary
- D
spanning-tree vlan 10 cost 10
Select all statements that correctly describe PortFast and BPDU Guard.
- A
PortFast is intended for ports connected to end devices.
- B
PortFast is a replacement for STP on switch-to-switch links.
- C
BPDU Guard disables a protected port if it receives a BPDU.
- D
BPDU Guard keeps a port forwarding when it receives a BPDU from an unexpected bridge.
Two paths toward the root have equal cost. How does STP resolve the tie?
- A
It always selects the physically shortest-looking path.
- B
It uses additional bridge and port identifiers to break the tie.
- C
It selects the path with the higher cost.
- D
It blocks both paths until an administrator chooses one.
Where should Root Guard be applied when a neighboring switch must not become the root, and what happens if a superior BPDU arrives?
- A
Apply it to every port; it makes each protected port the root port.
- B
Apply it to a designated port where a superior BPDU must not be allowed to make the neighbor the root; if one arrives, the port enters a root-inconsistent state and stops forwarding until the condition clears.
- C
Apply it to end-device ports to make them enter forwarding quickly.
- D
Apply it to a root port to increase its path cost.
A port's describes what it is doing, while its role describes its function in the topology.
In a redundant topology, STP blocks a link you would prefer to use for a VLAN. Describe how you would investigate the selection and, if needed, steer that VLAN toward the preferred link. Include what you would verify afterward.
True or false: Because Ethernet frames have no Layer 2 hop limit, loops caused by multiple active Layer 2 paths can lead to broadcast storms, duplicate frames, and MAC-address table instability.
- A
True
- B
False
In a Cisco PVST+ deployment, how can the same trunk forward VLAN 10 while blocking VLAN 20?
- A
A single tree is calculated for the entire switch, so every VLAN must use the same port state.
- B
A separate tree is calculated for each VLAN, so the trunk can forward one VLAN and block another.
- C
A separate tree is calculated for each trunk, so all VLANs on that trunk share one port state.
- D
A separate tree is calculated for each switch port, regardless of VLAN.
In RSTP, what is the name of the intermediate port state in which a port learns MAC addresses but does not yet forward user traffic?
Two switches have different bridge priorities, and the one with the lower priority value has a higher MAC address. Which switch wins the root-bridge election?
- A
The switch with the highest priority value wins; if tied, the highest MAC address wins.
- B
The switch with the lowest MAC address wins, regardless of priority.
- C
The switch with the lowest priority value wins; if tied, the lowest MAC address wins.
- D
The switch with the lowest total path cost wins, regardless of its bridge ID.
Which Cisco IOS-style command would you use to inspect the overall STP status rather than the details for one particular VLAN?
On interface GigabitEthernet1/0/1, you want to set the STP cost for VLAN 10 to 10. Enter the complete IOS-style interface command.
You are configuring a switch as the likely backup root for VLAN 10. Enter the complete IOS-style global configuration command.
Related study packs and tools
- Quiz
1 Low-Pressure Appliances and Chiller Fundamentals
A medium-difficulty quiz on low-pressure chiller operation and service practices, from practical precautions to applied reasoning.
EPA 608 Type IIIUpdated - Quiz
1 Small Appliance Systems and Service Safety
A medium-difficulty quiz on small-appliance refrigeration systems, Type I service requirements, refrigerant recovery, and safe service practices.
EPA 608 Type IUpdated - Quiz
2 Refrigerants and Environmental Regulations
A medium-difficulty quiz on refrigerant families, safety classifications, identification, and U.S. environmental regulations.
EPA 608 CoreUpdated - Quiz
2 Refrigeration Fundamentals and Environmental Responsibility
A medium-difficulty quiz on refrigeration-system operation, refrigerant safety, and small-appliance responsibilities.
EPA 608 Type IUpdated - Quiz
2 Static Routing Practice
Practice configuring, verifying, and troubleshooting IPv4 static routes, including route selection and administrative distance.
CCNA Routing and OSPFUpdated - Study guide
2 Static Routing Practice
Learn how to configure, select, verify, and troubleshoot IPv4 static routes on Cisco IOS and IOS XE, including default and backup routes.
CCNA Routing and OSPFUpdated - Quiz
3 EPA Section 608 Type I Requirements
A medium-difficulty quiz on EPA Section 608 Type I certification scope, small-appliance criteria, and refrigerant handling requirements.
EPA 608 Type IUpdated - Quiz
3 Leak Detection, Repair, and Verification
A medium-difficulty quiz on locating refrigerant leaks, performing repairs safely, verifying system integrity, and applying relevant regulatory requirements.
EPA 608 Type IIUpdated - Quiz
3 Refrigerant Recovery Procedures
A quiz on safe setup, operation, and completion of refrigerant recovery for low-pressure appliances.
EPA 608 Type IIIUpdated - Study guide
4 Multi-Factor Authentication
Learn how MFA adds independent proof to sign-in, how to choose and configure an authenticator, and how to protect authentication and recovery without confusing sign-in security with access permissions.
AWS IAM and SecurityUpdated - Quiz
4 Refrigerant Recovery and Cylinder Management
A medium-difficulty quiz on refrigerant recovery, cylinder management, and safe handling.
EPA 608 CoreUpdated - Quiz
5 Chiller Service Practice and Verification
Practice chiller recovery, safety checks, endpoint verification, and service documentation. Follow equipment-specific procedures and applicable requirements.
EPA 608 Type IIIUpdated