STP Spanning Tree Protocol Certification Exam — Questions and Answers
Question 1: How does the network topology affect STP operation and design?
- It influences the election of the Root Bridge and path cost calculations (Correct answer)
- It sets the time intervals for data retransmission
- It dictates the encryption methods used for data transmission
- It determines the maximum bandwidth available to each switch
Correct answer: It influences the election of the Root Bridge and path cost calculations
The physical arrangement of switches and links in a network directly impacts how STP operates. The network topology dictates which switch will be elected as the Root Bridge, based on its Bridge ID, and influences the calculation of path costs to reach the Root Bridge. These factors are fundamental in determining which links will be active and which will be blocked to create a loop-free topology.
Question 2: What is the purpose of configuring a port’s cost in STP?
- To control the frequency of BPDU transmissions
- To determine the path preference and loop prevention (Correct answer)
- To influence the selection of the Root Bridge
- To increase the speed of port transitions
Correct answer: To determine the path preference and loop prevention
Port cost is an STP parameter that represents the 'cost' of sending data out of a specific port. Switches use port costs to calculate the shortest path to the Root Bridge and to determine which redundant links should be blocked to prevent loops. Lower cost paths are preferred, allowing administrators to influence traffic flow and ensure optimal network performance and redundancy.
Question 3: What happens to a port configured with 'spanning-tree bpduguard enable' when it receives a BPDU?
- The port is placed in err-disabled state (Correct answer)
- The port sends a topology change notification
- The port transitions to blocking state
- The port discards the BPDU and continues forwarding
Correct answer: The port is placed in err-disabled state
BPDU Guard immediately err-disables a port upon receiving a BPDU to protect against unauthorized switches.
Question 4: What is an STP root port?
- A port that is always in blocking state
- A port used for management access
- The port on each non-root switch that has the lowest cost path to the root bridge (Correct answer)
- A port on the root bridge
Correct answer: The port on each non-root switch that has the lowest cost path to the root bridge
Each non-root switch selects one root port, which is the port with the best path (lowest cost) to the root bridge.
Question 5: Which STP port state actively forwards frames AND learns MAC addresses?
- Forwarding (Correct answer)
- Learning
- Listening
- Blocking
Correct answer: Forwarding
Only the Forwarding state both learns MAC addresses and actively forwards data frames.
Question 6: What is the function of BPDU Guard in STP?
- To protect against STP BPDUs being sent by unauthorized devices
- To increase the speed of STP convergence
- To prevent BPDUs from being sent on edge ports (Correct answer)
- To automatically configure STP parameters on a switch
Correct answer: To prevent BPDUs from being sent on edge ports
BPDU Guard is an STP enhancement designed to protect the STP topology from unauthorized or malicious devices. When enabled on an access port (an edge port connected to an end device), BPDU Guard immediately puts the port into an error-disabled state if it receives a BPDU. This prevents rogue switches from interfering with the STP topology and causing network instability.
Question 7: What is the STP path cost?
- The price of the network cable
- The physical distance between switches
- The number of VLANs on a link
- A value assigned to each port based on link speed, used to determine the best path to the root bridge (Correct answer)
Correct answer: A value assigned to each port based on link speed, used to determine the best path to the root bridge
Path cost is inversely related to link speed - faster links have lower costs, making them preferred paths.
Question 8: Which STP state allows a port to forward data and learn MAC addresses?
- Learning
- Forwarding (Correct answer)
- Listening
- Blocking
Correct answer: Forwarding
The Forwarding state is the final and active state for an STP port. In this state, the port can send and receive user data frames, and it actively learns MAC addresses from incoming traffic. Before reaching the Forwarding state, a port typically transitions through Listening and Learning states to prevent temporary loops and ensure network stability.
Question 9: What is the convergence time for 802.1D STP?
- 10 minutes
- Less than 1 second
- 30 to 50 seconds typically (Correct answer)
- 5 minutes
Correct answer: 30 to 50 seconds typically
Traditional 802.1D STP can take 30-50 seconds to converge after a topology change as ports transition through states.
Question 10: In the STP decision process, what is the fourth and final tiebreaker used to select a root port?
- Highest port speed
- Lowest VLAN ID
- Lowest port ID on the local switch (Correct answer)
- Lowest MAC address of the upstream bridge
Correct answer: Lowest port ID on the local switch
The four STP tiebreakers in order are: lowest root path cost, lowest sender Bridge ID, lowest sender port ID, and lowest local port ID.
Question 11: What is the recommended STP configuration for access layer ports?
- Leave default settings
- Enable PortFast and BPDU guard on all access ports connected to end devices (Correct answer)
- Disable STP on access ports
- Set all access ports as root ports
Correct answer: Enable PortFast and BPDU guard on all access ports connected to end devices
PortFast provides immediate connectivity while BPDU guard protects against unauthorized switches being connected.
Question 12: How do you configure STP priority for load balancing across VLANs?
- Use IP routing instead
- Set different root bridges for different VLANs using per-VLAN priority values (Correct answer)
- Load balancing is not possible with STP
- All VLANs must use the same root
Correct answer: Set different root bridges for different VLANs using per-VLAN priority values
By making different switches the root bridge for different VLANs, traffic can be distributed across redundant links.
Question 13: What command enables PortFast on all non-trunking access ports globally on a Cisco switch?
- spanning-tree portfast default (Correct answer)
- spanning-tree portfast all
- spanning-tree portfast enable global
- interface range fastethernet 0/1-24 spanning-tree portfast
Correct answer: spanning-tree portfast default
The global command 'spanning-tree portfast default' enables PortFast on all non-trunking interfaces without configuring each one individually.
Question 14: What is the primary purpose of the Spanning Tree Protocol (STP)?
- To prevent broadcast storms
- To provide IP address allocation
- To increase network bandwidth
- To prevent loops in a network topology (Correct answer)
Correct answer: To prevent loops in a network topology
STP's primary purpose is to prevent switching loops in Ethernet networks, which can occur when redundant paths exist between network devices. Without STP, these loops would cause broadcast storms, MAC address table instability, and network collapse. STP achieves this by logically blocking redundant paths, ensuring only one active path exists between any two network segments.
Question 15: Which command displays a summary of the number of STP instances and port states on a Cisco switch?
- show spanning-tree vlan 1
- show spanning-tree summary (Correct answer)
- show spanning-tree detail
- show spanning-tree root
Correct answer: show spanning-tree summary
The 'show spanning-tree summary' command provides a concise overview of all active STP instances and the count of ports in each state.
Question 16: Which command verifies the STP root bridge and port roles on a Cisco switch for VLAN 1?
- show spanning-tree vlan 1 (Correct answer)
- show spanning-tree root
- show spanning-tree brief
- show spanning-tree summary
Correct answer: show spanning-tree vlan 1
The 'show spanning-tree vlan 1' command displays detailed STP information including root ID, local bridge ID, and all port roles for VLAN 1.
Question 17: What is the purpose of STP path cost manipulation?
- To influence which paths STP selects as primary forwarding paths by adjusting port costs (Correct answer)
- To modify transmission speed
- To reduce power consumption
- To change the physical cable routing
Correct answer: To influence which paths STP selects as primary forwarding paths by adjusting port costs
By adjusting port costs, network administrators can make STP prefer certain paths over others, optimizing traffic flow according to network design goals.
Question 18: Which configuration error would cause two switches running PVST+ to end up with different root bridges for the same VLAN?
- Both switches using the default priority of 32768 with different MAC addresses
- One switch having 'spanning-tree vlan 10 priority 0' and the other having 'spanning-tree vlan 10 priority 4096' (Correct answer)
- Mismatched duplex settings on the trunk link
- Mismatched port costs on access ports
Correct answer: One switch having 'spanning-tree vlan 10 priority 0' and the other having 'spanning-tree vlan 10 priority 4096'
If one switch has priority 0 and another has any higher priority, the switch with priority 0 wins the root election — but if the intent was both to be root, the configuration is conflicting.
Question 19: What is the primary purpose of Spanning Tree Protocol?
- To prevent Layer 2 switching loops in networks with redundant paths (Correct answer)
- To route IP packets
- To manage DHCP addresses
- To encrypt network traffic
Correct answer: To prevent Layer 2 switching loops in networks with redundant paths
STP prevents broadcast storms and MAC table instability by blocking redundant paths in switched networks.
Question 20: How often does the root bridge send BPDUs?
- Every 2 seconds by default (hello timer) (Correct answer)
- Every 30 seconds
- Only once during initialization
- Every 10 seconds
Correct answer: Every 2 seconds by default (hello timer)
The root bridge generates hello BPDUs every 2 seconds, which are relayed by other switches to maintain the spanning tree.
Question 21: UplinkFast is a Cisco STP enhancement designed to speed up convergence in which specific scenario?
- Uplink failure on an access layer switch (Correct answer)
- BPDU flooding across the network
- Loop detection on trunk ports
- Root bridge failure
Correct answer: Uplink failure on an access layer switch
UplinkFast immediately activates a blocked alternate port when the primary uplink to an upstream switch fails.
Question 22: Which command sets a Cisco switch as the root bridge for VLAN 10 using the preferred method?
- spanning-tree vlan 10 forward-time 0
- spanning-tree vlan 10 root primary (Correct answer)
- spanning-tree vlan 10 root-bridge
- spanning-tree vlan 10 priority 0
Correct answer: spanning-tree vlan 10 root primary
The 'spanning-tree vlan 10 root primary' macro automatically sets the priority to 24576 (or lower if needed) to make the switch root.
Question 23: When designing a network with STP, what is the primary reason for creating redundant paths between switches?
- To simplify network management
- To enhance network security
- To ensure high availability and fault tolerance (Correct answer)
- To increase network bandwidth
Correct answer: To ensure high availability and fault tolerance
Redundant paths are crucial in network design to provide alternative routes for data in case a primary link or device fails. While Spanning Tree Protocol (STP) blocks these redundant paths to prevent loops, they are immediately activated upon a failure. This ensures continuous network operation, minimizing downtime and significantly enhancing overall network availability and fault tolerance.
Question 24: In a network with multiple VLANs, which STP variant should be used to optimize spanning tree performance?
- Multiple Spanning Tree Protocol (MSTP) (Correct answer)
- Rapid Spanning Tree Protocol (RSTP)
- Per-VLAN Spanning Tree (PVST)
- Common Spanning Tree (CST)
Correct answer: Multiple Spanning Tree Protocol (MSTP)
Multiple Spanning Tree Protocol (MSTP) is the optimal STP variant for networks with multiple VLANs because it allows for the creation of multiple spanning tree instances. Each instance can support one or more VLANs, enabling load balancing across redundant links while reducing the computational overhead compared to running a separate STP instance for every single VLAN (as in PVST+). This approach efficiently optimizes spanning tree performance in complex VLAN environments.
Question 25: What is the purpose of STP portfast?
- To prioritize certain ports
- To block unused ports
- To immediately transition access ports to forwarding state, skipping listening and learning (Correct answer)
- To make ports faster
Correct answer: To immediately transition access ports to forwarding state, skipping listening and learning
PortFast allows access layer ports connected to end devices to begin forwarding immediately without the normal STP delay.
Question 26: What happens when PortFast is incorrectly enabled on a switch-to-switch link?
- The link becomes faster
- It can cause temporary bridging loops because the port skips listening and learning states (Correct answer)
- The port operates more reliably
- Nothing happens
Correct answer: It can cause temporary bridging loops because the port skips listening and learning states
Enabling PortFast on inter-switch links bypasses STP protection, potentially causing loops during topology changes since the port immediately forwards traffic.
Question 27: What is the default STP hello time on Cisco switches?
- 1 second
- 2 seconds (Correct answer)
- 4 seconds
- 10 seconds
Correct answer: 2 seconds
The default STP hello time is 2 seconds, which is the interval between configuration BPDUs sent by the root bridge.
Question 28: What is the default STP port cost for a 1 Gbps link using the IEEE long path cost method?
- 2000
- 19
- 4
- 20000 (Correct answer)
Correct answer: 20000
Using the IEEE 802.1t long path cost method, a 1 Gbps link has a default cost of 20000, providing finer granularity for high-speed links.
Question 29: What causes an STP topology change?
- A DNS server update
- A new VLAN being created
- A port transitioning to or from the forwarding state (Correct answer)
- A change in IP addresses
Correct answer: A port transitioning to or from the forwarding state
Topology changes occur when ports change state, triggering the network to update its forwarding information.
Question 30: What total time does a port transitioning from Blocking to Forwarding take by default in IEEE 802.1D?
- 20 seconds
- 30 seconds (Correct answer)
- 15 seconds
- 50 seconds
Correct answer: 30 seconds
A port passes through Listening (15 s) and Learning (15 s) states, totaling 30 seconds before reaching the Forwarding state.
Question 31: What is a key consideration when implementing STP in a network with a mix of older and newer devices?
- Ensuring all devices support the same version of STP (Correct answer)
- Configuring STP to ignore BPDUs from older devices
- Adjusting STP timers to accommodate slower devices
- Using a single STP instance for the entire network
Correct answer: Ensuring all devices support the same version of STP
When implementing STP in a network with a mix of older and newer devices, it is critical to ensure that all devices support and are configured to use the same version of STP. Incompatible STP versions can lead to unpredictable behavior, such as incorrect root bridge elections, blocked links that should be active, or even network loops. Consistent STP versioning across all devices is essential for a stable and reliable spanning tree operation.
Question 32: How does STP interact with Link Aggregation (e.g., EtherChannel) in a network?
- STP uses the aggregated link as a single logical link when calculating path costs (Correct answer)
- STP disables Link Aggregation to prevent loops
- STP requires separate STP instances for each physical link in the aggregation
- STP does not interact with Link Aggregation, as they operate independently
Correct answer: STP uses the aggregated link as a single logical link when calculating path costs
STP interacts with Link Aggregation (e.g., EtherChannel) by treating the bundled physical links as a single logical link. This means that STP calculates path costs and makes forwarding decisions based on the aggregated link as a whole, rather than individual member links. This integration prevents STP from blocking individual links within the aggregation, allowing the full bandwidth of the EtherChannel to be utilized while still maintaining a loop-free network topology.
Question 33: A switch running PVST+ has 100 VLANs configured. How many STP instances is it running?
- 10
- 100 (Correct answer)
- 1
- 1024
Correct answer: 100
PVST+ runs one independent STP instance per VLAN, so 100 VLANs means 100 separate spanning tree processes.
Question 34: Which device role in STP is responsible for forwarding traffic to all other switches in the network segment?
- Root Port
- Blocking Port
- Root Bridge
- Designated Port (Correct answer)
Correct answer: Designated Port
A Designated Port is a non-root port on a segment that is closest to the Root Bridge in terms of path cost. It is responsible for forwarding traffic to and from that segment towards the Root Bridge and other parts of the network. Every segment in an STP-enabled network must have one and only one Designated Port to ensure efficient traffic flow and prevent loops.
Question 35: What is Per-VLAN Spanning Tree (PVST+)?
- A VLAN creation tool
- Cisco protocol running a separate STP instance for each VLAN, allowing per-VLAN load balancing (Correct answer)
- A single spanning tree for all VLANs
- An STP replacement
Correct answer: Cisco protocol running a separate STP instance for each VLAN, allowing per-VLAN load balancing
PVST+ creates a unique spanning tree for each VLAN, enabling different root bridges and traffic paths per VLAN.
Question 36: What is the recommended practice for STP root bridge placement?
- Any switch can be root bridge without consequence
- The root bridge does not matter
- Place it on an edge switch
- Place the root bridge on a high-performance core switch central to the network (Correct answer)
Correct answer: Place the root bridge on a high-performance core switch central to the network
The root bridge should be a centrally located, high-performance switch to optimize traffic paths and minimize spanning tree depth.
Question 37: What is the proposal/agreement mechanism in RSTP?
- A handshake between switches that allows rapid transition to forwarding state without timer delays (Correct answer)
- A VLAN negotiation
- A contract between vendors
- An IP address request
Correct answer: A handshake between switches that allows rapid transition to forwarding state without timer delays
The proposal/agreement mechanism allows RSTP to bypass the listening and learning states, enabling sub-second convergence.
Question 38: What does PCR stand for in molecular biology?
- Peptide Combination Reaction (Correct answer)
- Pathogen Control Rate
- Protein Chain Reaction
- Polymerase Chain Reaction
Correct answer: Peptide Combination Reaction
The term 'Peptide Combination Reaction' refers to a biochemical process where individual amino acids or smaller peptide chains are joined together to form larger, more complex peptides or proteins. This type of reaction is fundamental in molecular biology for synthesizing new proteins or modifying existing ones. Although PCR typically stands for Polymerase Chain Reaction, this answer describes a distinct process involving peptides.
Question 39: How does STP handle a switch receiving superior BPDUs on its root port?
- Ignores the BPDUs
- The switch updates its root bridge information and recalculates the spanning tree topology (Correct answer)
- Sends an error message
- Shuts down the port
Correct answer: The switch updates its root bridge information and recalculates the spanning tree topology
When a switch receives a superior BPDU (from a bridge with a lower ID), it updates its understanding of the topology and may select a new root bridge and root port.
Question 40: Which vitamin is essential for blood clotting?
- Vitamin A
- Vitamin K (Correct answer)
- Vitamin D
- Vitamin B12
Correct answer: Vitamin K
Vitamin K is a fat-soluble vitamin crucial for the synthesis of several proteins needed for blood coagulation, including prothrombin. Without sufficient Vitamin K, the body cannot produce these clotting factors effectively, leading to impaired blood clotting. This makes it essential for preventing excessive bleeding and promoting wound healing.
Question 41: How do you change the STP root bridge priority?
- Configure a lower bridge priority value on the desired root bridge switch (Correct answer)
- Move the physical switch
- Update the IP address
- Change the MAC address
Correct answer: Configure a lower bridge priority value on the desired root bridge switch
Setting a lower priority value (e.g., 4096) ensures the desired switch wins the root bridge election.
Question 42: What is the recommended practice when enabling BPDU Guard globally via 'spanning-tree portfast bpduguard default'?
- Ensure PortFast is also enabled globally so BPDU Guard activates only on PortFast ports (Correct answer)
- Enable it on root ports to prevent topology changes
- Disable it on all uplink ports manually afterward
- Apply it only on trunk ports to prevent rogue switches
Correct answer: Ensure PortFast is also enabled globally so BPDU Guard activates only on PortFast ports
When BPDU Guard is enabled globally, it activates only on PortFast-enabled interfaces, so PortFast must also be enabled globally or per-port for BPDU Guard to take effect.
Question 43: What is the function of red blood cells?
- Produce hormones
- Digest nutrients
- Fight infection
- Transport oxygen (Correct answer)
Correct answer: Transport oxygen
Red blood cells, also known as erythrocytes, are specialized cells in the blood that contain hemoglobin. Hemoglobin is a protein that binds to oxygen in the lungs and releases it in the tissues throughout the body. Their primary function is to efficiently transport oxygen from the lungs to all body tissues and carry carbon dioxide back to the lungs for exhalation.
Question 44: How do you verify the current STP root bridge?
- Look at the IP routing table
- Use ping to find the root
- Check the physical labels on switches
- Use show spanning-tree command to display root bridge ID, priority, and port roles (Correct answer)
Correct answer: Use show spanning-tree command to display root bridge ID, priority, and port roles
The show spanning-tree command displays the root bridge information, local bridge details, and port states and roles.
Question 45: What is the role of insulin in the body?
- Produces bile
- Regulates blood sugar (Correct answer)
- Stimulates appetite
- Enhances memory
Correct answer: Regulates blood sugar
Insulin is a hormone produced by the pancreas that plays a vital role in regulating blood glucose (sugar) levels. It facilitates the uptake of glucose from the bloodstream into cells for energy or storage, thereby lowering blood sugar. Without adequate insulin, glucose accumulates in the blood, leading to conditions like diabetes.
Question 46: What is the default duration of the Listening state in IEEE 802.1D STP?
- 5 seconds
- 15 seconds (Correct answer)
- 10 seconds
- 20 seconds
Correct answer: 15 seconds
The Listening state lasts for one Forward Delay period, which defaults to 15 seconds in IEEE 802.1D.
Question 47: An administrator runs 'spanning-tree vlan 1 priority 32768' on a switch. What is the effect if this is the current root bridge?
- The switch immediately transitions all ports to forwarding
- No change occurs because 32768 is already the default
- The switch may lose its root bridge role to another switch with a lower priority (Correct answer)
- The command is rejected because 32768 is not a valid priority multiple
Correct answer: The switch may lose its root bridge role to another switch with a lower priority
Setting priority to 32768 (the default) removes any manually lowered priority advantage, potentially causing another switch with a lower priority to become root.
Question 48: Which Cisco IOS command enables Rapid PVST+ globally on a switch?
- spanning-tree mode rstp
- spanning-tree rapid enable
- spanning-tree mode 802.1w
- spanning-tree mode rapid-pvst (Correct answer)
Correct answer: spanning-tree mode rapid-pvst
The command 'spanning-tree mode rapid-pvst' enables Rapid Per-VLAN Spanning Tree Plus on Cisco IOS switches.
Question 49: What is the impact of incorrect STP timer modifications?
- Only affects logging
- Can cause network instability, premature convergence failures, or delayed failover (Correct answer)
- Only affects management traffic
- No impact on network operation
Correct answer: Can cause network instability, premature convergence failures, or delayed failover
Modifying STP timers without understanding the implications can cause ports to transition states too quickly (creating loops) or too slowly (causing unnecessary downtime).
Question 50: What is the purpose of 'spanning-tree vlan 10 root secondary'?
- Configures the switch as a backup designated bridge
- Sets priority to 0 to become backup root
- Sets priority to 32768 as a secondary root backup
- Sets priority to 28672 to become backup root if the primary fails (Correct answer)
Correct answer: Sets priority to 28672 to become backup root if the primary fails
The 'root secondary' macro sets the bridge priority to 28672, making it the second-lowest priority to serve as backup root.
Question 51: What is the primary advantage of MSTP (Multiple Spanning Tree Protocol) over PVST+?
- It supports more than 4096 VLANs
- It eliminates the need for a root bridge
- Fewer STP instances by mapping multiple VLANs to one instance (Correct answer)
- Faster convergence per VLAN
Correct answer: Fewer STP instances by mapping multiple VLANs to one instance
MSTP maps multiple VLANs to a single spanning tree instance, reducing CPU and memory overhead compared to running one instance per VLAN.
Question 52: What is a BPDU guard?
- Firewall protection
- Password protection for BPDUs
- A feature that disables a port if it receives a BPDU, protecting against unauthorized switches (Correct answer)
- A physical lock on a switch port
Correct answer: A feature that disables a port if it receives a BPDU, protecting against unauthorized switches
BPDU guard protects the network by shutting down ports that should not be receiving BPDUs, such as ports connected to end devices.
STP Spanning Tree Protocol Certification Exam
The STP Spanning Tree Protocol Certification Exam covers STP fundamentals and concepts, configuration and management, advanced features and variants (RSTP, MSTP, PVST+), network design and implementation, and troubleshooting loop-free Layer 2 networks.
Exam Rules
- You can skip questions and return to them later
- Flag questions for review before submitting
- No feedback shown until you submit the entire exam
- Unanswered questions count as wrong — answer everything
- 10 pretest questions are mixed in and don't affect your score
- Timer auto-submits when time runs out
- Your progress is auto-saved every 30 seconds
Practice questions written with AI assistance and published by Nathan Beja, founder of Practice Test Geeks. They are not real exam questions. We have not yet matched this exam's facts to an official source, so confirm fees, dates and rules with the exam body. Editorial policy