Courseiva

350-401 · topic practice

Spanning Tree practice questions

Practise 350-401 STP questions covering root bridge election, bridge IDs, port roles (root, designated, blocking), path cost, PortFast, BPDU Guard, and how spanning tree prevents Layer 2 loops.

Courseiva uses original exam-style practice questions designed for learning and revision. The goal is to understand the concepts, recognise exam patterns, and improve through explanations — not memorise copied exam dumps.

Editorial oversight:Johnson Ajibi· MSc IT Security, IEEE Senior Member
15 questionsDomain: Spanning Tree

What the exam tests

What to know about Spanning Tree

STP questions usually test root bridge election, port roles, path cost and how spanning tree prevents Layer 2 loops.

Root bridge election and bridge ID comparison.

Root ports, designated ports and blocked/alternate ports.

Path cost and how switches choose the best path to the root bridge.

PortFast, BPDU Guard and common Layer 2 loop-prevention behaviour.

Why learners struggle

Why Spanning Tree questions are commonly missed

STP questions are missed when learners confuse bridge ID comparison direction, forget how ties are broken, or misidentify which port role a given switch port takes. The lowest bridge ID wins, but cost, port ID, and tiebreakers all play a role.

  • ·Lowest bridge ID wins root election — lower priority wins, then lower MAC breaks ties
  • ·Root port vs designated port — each non-root switch has exactly one root port
  • ·Blocking ports are on non-designated segments — they receive BPDUs but do not forward
  • ·PortFast bypasses STP states — only safe on access ports connected to end devices
  • ·BPDU Guard shuts down PortFast ports that receive BPDUs — protecting against loops
  • ·STP path cost uses link bandwidth — faster links have lower cost and are preferred

Watch out for

Common Spanning Tree exam traps

  • ▸The lowest bridge ID wins root bridge election.
  • ▸A non-root switch has one root port: its best path toward the root bridge.
  • ▸PortFast should be used carefully on access ports, not normal switch-to-switch links.
  • ▸Lower STP cost is preferred, but bridge ID and port ID can break ties.

Practice set

Spanning Tree questions

15 questions · select your answer, then reveal the explanation

Question 1hardmultiple choice
Open the full STP breakdown →

A network engineer is troubleshooting an STP issue in a network that uses Rapid PVST+. The network has a root bridge (SW1) and a secondary root bridge (SW2). The engineer notices that after a link failure between SW1 and SW2, the network takes longer than expected to converge. The engineer checks the configuration and finds that SW2 has the 'spanning-tree uplinkfast' command enabled. The engineer also notices that SW2 has a lower priority than SW1. What is the most likely cause of the slow convergence?

Question 2mediummultiple choice
Open the full STP breakdown →
interface GigabitEthernet0/2
 spanning-tree link-type point-to-point

end

What is the effect of this configuration?

Question 3hardmultiple choice
Open the full STP breakdown →

A global enterprise is transitioning from a traditional three-tier campus architecture to a software-defined access (SD-Access) fabric. Which architectural consideration is most critical for the underlay network?

Question 4easymultiple choice
Open the full VLAN trunking answer →

A network engineer is configuring a new switch that will be used as an access layer switch. The switch connects to two distribution switches via trunk links. The engineer wants to ensure that the access switch does not become the root bridge for any VLAN. The engineer also wants to provide redundancy so that if one uplink fails, the other uplink takes over quickly. The engineer is using Rapid PVST+. What configuration should the engineer apply on the access switch?

Question 5mediummultiple choice
Open the full STP breakdown →
spanning-tree mode rapid-pvst

What is the effect of this global configuration command?

Question 6mediummultiple choice
Open the full VLAN trunking answer →

A company has a campus network with two distribution switches (DSW1 and DSW2) connected via a Layer 2 trunk. Each distribution switch connects to two access switches. Spanning Tree Protocol (STP) is running with default settings. Recently, a network administrator added a new access switch (ASW3) and connected it to both distribution switches. After the connection, network performance degraded significantly, and users in VLAN 10 reported intermittent connectivity. The administrator checked the logs and saw multiple TCN notifications. What is the most likely cause of the issue?

Question 7hardmultiple choice
Open the full VLAN trunking answer →

A network engineer runs the following command on Switch SW3:

SW3# show spanning-tree vlan 30

VLAN0030 Spanning tree enabled protocol ieee Root ID Priority 24606 Address aabb.cc00.0400 Cost 12 Port 2 (GigabitEthernet0/2) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec

Bridge ID Priority 32798 (priority 32768 sys-id-ext 30) Address aabb.cc00.0500 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300 sec

Interface           Role Sts Cost      Prio.Nbr Type

------------------- ---- --- --------- -------- ------------------------------ Gi0/1 Desg FWD 4 128.1 P2p Gi0/2 Root FWD 12 128.2 P2p Gi0/3 Desg FWD 4 128.3 P2p

Based on this output, what is the root path cost from SW3 to the root bridge for VLAN 30?

Question 8easymultiple choice
Open the full VLAN trunking answer →

A network engineer runs the following command on Switch SW5:

SW5# show spanning-tree vlan 50

VLAN0050 Spanning tree enabled protocol ieee Root ID Priority 24626 Address aabb.cc00.0800 Cost 4 Port 1 (GigabitEthernet0/1) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec

Bridge ID Priority 32768 (priority 32768 sys-id-ext 50) Address aabb.cc00.0900 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300 sec

Interface           Role Sts Cost      Prio.Nbr Type

------------------- ---- --- --------- -------- ------------------------------ Gi0/1 Root FWD 4 128.1 P2p Gi0/2 Desg FWD 4 128.2 P2p Gi0/3 Desg FWD 4 128.3 P2p Gi0/4 Altn BLK 4 128.4 P2p

Based on this output, how many ports are in the Forwarding state?

Question 9easymultiple choice
Open the full VLAN trunking answer →

A network engineer runs the following command on Switch SW4:

SW4# show spanning-tree vlan 40

VLAN0040 Spanning tree enabled protocol ieee Root ID Priority 24616 Address aabb.cc00.0600 Cost 8 Port 1 (GigabitEthernet0/1) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec

Bridge ID Priority 32768 (priority 32768 sys-id-ext 40) Address aabb.cc00.0700 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300 sec

Interface           Role Sts Cost      Prio.Nbr Type

------------------- ---- --- --------- -------- ------------------------------ Gi0/1 Root FWD 8 128.1 P2p Gi0/2 Desg FWD 4 128.2 P2p Gi0/3 Desg FWD 4 128.3 P2p

Based on this output, which port is the root port?

Question 10mediummultiple choice
Open the full VLAN trunking answer →

A network engineer is troubleshooting an STP issue in a switched network. The network has two distribution switches connected via a trunk, and each distribution switch connects to the same access switch. The engineer notices that the root bridge is not the intended distribution switch. Upon checking, the engineer sees that the access switch has a higher priority than the distribution switches. The engineer needs to ensure that the intended distribution switch becomes the root bridge without causing a temporary loop. What should the engineer do?

Question 11mediummultiple choice
Open the full STP breakdown →

Consider the following configuration on a Cisco IOS-XE switch:

interface GigabitEthernet1/0/1
 switchport mode access

authentication port-control auto dot1x pae authenticator dot1x timeout tx-period 5

spanning-tree portfast

What is the effect of this configuration?

Question 12mediummultiple choice
Open the full VLAN trunking answer →

A network engineer runs the following command on Switch SW1:

SW1# show spanning-tree vlan 10

VLAN0010 Spanning tree enabled protocol ieee Root ID Priority 32778 Address 0011.2233.4455 Cost 19 Port 1 (GigabitEthernet0/1) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec

Bridge ID Priority 32778 (priority 32768 sys-id-ext 10) Address 0011.2233.4466 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300 sec

Interface           Role Sts Cost      Prio.Nbr Type

------------------- ---- --- --------- -------- -------------------------------- Gi0/1 Root FWD 19 128.1 P2p Gi0/2 Altn BLK 19 128.2 P2p

Based on this output, what can be concluded?

Question 13hardmultiple choice
Open the full VLAN trunking answer →

A network engineer runs the following command on Switch SW2:

SW2# show spanning-tree vlan 10

VLAN0010 Spanning tree enabled protocol ieee Root ID Priority 32778 Address aabb.cc00.0100 Cost 19 Port 1 (GigabitEthernet0/1) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec

Bridge ID Priority 32778 (priority 32768 sys-id-ext 10) Address aabb.cc00.0200 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300 sec

Interface           Role Sts Cost      Prio.Nbr Type

------------------- ---- --- --------- -------- -------------------------------- Gi0/1 Root FWD 19 128.1 P2p Gi0/2 Altn BLK 19 128.2 P2p Gi0/3 Desg FWD 19 128.3 P2p

Based on this output, what can be concluded?

Question 14mediummultiple choice
Open the full VLAN trunking answer →

A network engineer runs the following command on Switch SW1:

SW1# show spanning-tree vlan 10

VLAN0010 Spanning tree enabled protocol ieee Root ID Priority 32778 Address 0011.2233.4455 Cost 19 Port 1 (GigabitEthernet0/1) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec

Bridge ID Priority 32778 (priority 32768 sys-id-ext 10) Address 0011.2233.4466 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300 sec

Interface           Role Sts Cost      Prio.Nbr Type

------------------- ---- --- --------- -------- -------------------------------- Gi0/1 Root FWD 19 128.1 P2p Gi0/2 Altn BLK 19 128.2 P2p Gi0/3 Desg FWD 19 128.3 P2p

Based on this output, what can be concluded?

Question 15mediummultiple choice
Open the full VLAN trunking answer →

A network engineer runs the following command on Switch SW5:

SW5# show running-config | section interface port-channel
interface Port-channel1
 switchport mode trunk
 switchport trunk allowed vlan 1-100,200-300

!

interface Port-channel2
 switchport mode access
 switchport access vlan 10

!

SW5# show interfaces trunk

Port Mode Encapsulation Status Native vlan Po1 on 802.1q trunking 1

Port Vlans allowed on trunk Po1 1-100,200-300

Port Vlans allowed and active in management domain Po1 1-100,200-300

Port Vlans in spanning tree forwarding state and not pruned Po1 1-100,200-300

Based on this output, what can be concluded?

Free account

Track your progress over time

Create a free account to save your results and see which topics improve across sessions.

Focused Spanning Tree sessions

Start a Spanning Tree only practice session

Every question in these sessions is drawn from the Spanning Tree domain — nothing else.

Related practice questions

Related 350-401 topic practice pages

Move into related areas when this topic feels solid.

Frequently asked questions

What does the 350-401 exam test about Spanning Tree?
STP questions usually test root bridge election, port roles, path cost and how spanning tree prevents Layer 2 loops.
How should I use these practice questions?
Select your answer before revealing the explanation. Then read why each option is right or wrong — this active recall approach builds retention far faster than re-reading notes.
Can I practise just Spanning Tree questions in a focused session?
Yes — the session launcher on this page draws every question from the Spanning Tree domain. Use a 10-question session first to gauge your baseline, then move to 20 or 30 once the weak spots are clear.
Where can I practise other 350-401 topics?
Use the topic links above to move to related areas, or go back to the 350-401 question bank to see all topics.
Are these real exam questions or dumps?
These are original practice questions written to test the same concepts the 350-401 exam covers. They are not copied from any real exam or dump site.