Courseiva

200-301 · topic practice

STP practice questions

Practise 200-301 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.

Reviewed byJohnson Ajibi· MSc IT Security

What the exam tests

What to know about STP

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 STP 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 STP 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

STP questions

20 questions · select your answer, then reveal the explanation

Question 1mediumdrag order
Open the full STP breakdown →

Drag and drop the following steps into the correct order to configure a switch port for data and voice traffic.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4
5Step 5
Question 2hardmultiple choice
Open the full VLAN trunking answer →

A network administrator is troubleshooting connectivity issues in a switched network. Users on VLAN 10 report intermittent connectivity to the server farm. The network uses Rapid PVST+ as the spanning-tree protocol. The administrator examines the switch that is the root bridge for VLAN 10 and notices that one of the uplink interfaces to an access switch is in a blocking state. What is the most likely cause of this issue?

Exhibit

SwitchA# show spanning-tree vlan 10

VLAN0010
  Spanning tree enabled protocol rstp
  Root ID    Priority    32778
             Address     0011.2233.4455
             This bridge is the root
             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.4455
             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               Desg FWD 4         128.2    P2p
Gi0/3               Altn BLK 4         128.3    P2p
Question 3mediummultiple choice
Open the full VLAN trunking answer →

A switch stack is running PVST+. Users on VLAN 40 lose connectivity for roughly 30 seconds every time the uplink on SW2 flaps. Based on the exhibit, which change would most directly improve convergence for this VLAN?

Exhibit

show spanning-tree summary
Switch is in pvst mode
Root bridge for: VLAN0001 VLAN0010 VLAN0020
Extended system ID is enabled
Portfast Default is disabled

show spanning-tree vlan 40
Spanning tree enabled protocol ieee
Root ID    Priority    327...
Question 4hardmultiple choice
Open the full STP breakdown →

A network administrator is troubleshooting connectivity loss in a switched network. All switches run Rapid PVST+. A host connected to an access port on SwitchC can no longer reach the default gateway. The access port is configured with PortFast and BPDU Guard. The administrator checks the interface status and finds it in an err-disabled state. What is the most likely cause of this issue?

Exhibit

SwitchC# show interfaces status
Port      Name   Status       Vlan       Duplex Speed Type
Gi0/1            err-disabled 10         auto   auto 10/100/1000BaseTX
Gi0/2            connected    10         a-full a-100 10/100/1000BaseTX
Gi0/3            connected    1          a-full a-100 10/100/1000BaseTX

SwitchC# show interfaces gigabitEthernet 0/1
GigabitEthernet0/1 is down, line protocol is down (err-disabled)
  Hardware is Gigabit Ethernet, address is aaaa.bbbb.cccc (bia aaaa.bbbb.cccc)
  MTU 1500 bytes, BW 100000 Kbit/sec, DLY 100 usec,
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation ARPA, loopback not set
  Keepalive set (10 sec)
  Auto-duplex, Auto-speed, media type is 10/100/1000BaseTX
  input flow-control is off, output flow-control is unsupported
  ARP type: ARPA, ARP Timeout 04:00:00
  Last input 00:00:00, output 00:00:00, output hang never
  Last clearing of "show interface" counters never
  Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
  Queueing strategy: fifo
  Output queue: 0/40 (size/max)
  5 minute input rate 0 bits/sec, 0 packets/sec
  5 minute output rate 0 bits/sec, 0 packets/sec
     0 packets input, 0 bytes, 0 no buffer
     Received 0 broadcasts (0 IP multicasts)
     0 runts, 0 giants, 0 throttles
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
     0 watchdog, 0 multicast, 0 pause input
     0 input packets with dribble condition detected
     0 packets output, 0 bytes, 0 underruns
     0 output errors, 0 collisions, 1 interface resets
     0 unknown protocol drops
     0 babbles, 0 late collision, 0 deferred
     0 lost carrier, 0 no carrier, 0 pause output
     0 output buffer failures, 0 output buffers swapped out

SwitchC# show errdisable recovery
ErrDisable Reason    Timer Status
-----------------    --------------
arp-inspection       Disabled
bpduguard            Enabled
channel-misconfig    Disabled
...

SwitchC# show spanning-tree vlan 10
VLAN0010
  Spanning tree enabled protocol rstp
  Root ID    Priority    32778
             Address     aaaa.bbbb.cccc
             This bridge is the root
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

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

Interface           Role Sts Cost      Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Gi0/2               Desg FWD 4         128.2    P2p
Gi0/3               Desg FWD 4         128.3    P2p

SwitchC# show running-config | section interface GigabitEthernet0/1
interface GigabitEthernet0/1
 switchport mode access
 switchport access vlan 10
 spanning-tree portfast
 spanning-tree bpduguard enable
Question 5mediummatching
Open the full STP breakdown →

Match each switching feature to its most accurate purpose.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Speeds an edge port into forwarding state

Disables an edge port if a BPDU is received

Limits and controls MAC address use on a switch port

Helps block rogue DHCP behavior and build trusted bindings

Question 6hardmultiple choice
Open the full VLAN trunking answer →

Two switches are connected via an IEEE 802.1Q trunk. Hosts in VLAN 30 on opposite sides cannot communicate, yet hosts in VLAN 10 communicate normally. Both switches have VLAN 30 in their VLAN database, and the trunk link is operational. What is the most likely cause?

Exhibit

SW1 show interfaces trunk
Port Vlans allowed on trunk: 10,30

SW2 show interfaces trunk
Port Vlans allowed on trunk: 10
Question 7hardmultiple choice
Open the full STP breakdown →

A Layer 2 switch port connected to an end host should move to forwarding quickly but also shut down if a BPDU is received. Which pair of features best supports that design?

You are connected to SW1 via the console. The network uses Rapid-PVST+ and you need to ensure that SW1 becomes the root bridge for VLAN 10 and VLAN 20. Additionally, configure PortFast and BPDU Guard on interface GigabitEthernet0/1, which connects to a workstation. After configuration, the workstation is moved and the port goes err-disabled. Diagnose the cause and recover the port without reloading the switch.

Exhibit

SW1#show spanning-tree vlan 10

VLAN0010
  Spanning tree enabled protocol rstp
  Root ID    Priority    32778
             Address     0001.0001.0001
             This bridge is the root
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

  Bridge ID  Priority    32778  (priority 32768 sys-id-ext 10)
             Address     0001.0001.0001
             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            Desg FWD 4         128.2    P2p

SW1#show running-config | section interface GigabitEthernet0/1
interface GigabitEthernet0/1
 switchport mode access
 switchport access vlan 10
 spanning-tree portfast
 spanning-tree bpduguard enable

SW1#show interfaces status err-disabled
Port         Name               Status       Reason
Gi0/1                           err-disabled bpduguard

SW1#show spanning-tree vlan 20

VLAN0020
  Spanning tree enabled protocol rstp
  Root ID    Priority    32788
             Address     0002.0002.0002
             This bridge is the root
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

  Bridge ID  Priority    32788  (priority 32768 sys-id-ext 20)
             Address     0002.0002.0002
             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            Desg FWD 4         128.2    P2p
Question 9hardScenario
Open the full STP breakdown →

You are connected to R1, a multilayer switch acting as the STP root bridge. Configure Root Guard on the designated port toward R2 (G0/1), Loop Guard on the uplink port G0/2, and BPDU Guard on PortFast-enabled access port G0/3. After configuration, a superior BPDU is received on G0/1, causing it to be blocked by Root Guard; later, an unauthorized BPDU on G0/3 triggers err-disable. Troubleshoot and verify the expected port states.

Exhibit

R1# show running-config | section interface
interface GigabitEthernet0/0
 no switchport
 ip address 192.0.2.1 255.255.255.252
!
interface GigabitEthernet0/1
 switchport mode trunk
 spanning-tree guard root
!
interface GigabitEthernet0/2
 switchport mode trunk
 spanning-tree loopguard default
!
interface GigabitEthernet0/3
 switchport mode access
 switchport access vlan 10
 spanning-tree portfast
 spanning-tree bpduguard enable
!
R1# show spanning-tree root
 VLAN0001
  Root ID    Priority    32769
             Address     0001.1111.1111
             This bridge is the root
R1# show interfaces status | include err-disabled
GigabitEthernet0/3    err-disabled
Question 10hardmultiple choice
Open the full STP breakdown →

An administrator sees high interface utilization through SNMP graphs but wants to identify which conversations are responsible. Which addition best closes that visibility gap?

Question 11mediumdrag order
Open the full STP breakdown →

Drag and drop the following steps into the correct order to configure Root Guard on designated ports, Loop Guard on non-designated ports, and BPDU Guard on PortFast ports, and to recover a port that enters err-disabled due to a BPDU guard violation.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4
5Step 5
Question 12hardScenario
Open the full STP breakdown →

You are connected to SW1 via the console. The network has three switches connected in a triangle: SW1 (G0/1 to SW2 G0/1), SW1 (G0/2 to SW3 G0/1), and SW2 (G0/2 to SW3 G0/2). SW1 is the root bridge. A PC is connected to SW3's G0/3 port, which should be an edge port. However, the PC has been sending BPDUs, causing the port to go err-disabled. Configure SW3 to prevent this in the future: enable PortFast and BPDU Guard on G0/3. Then, verify that the port recovers from err-disabled state and that a specific blocked port on SW2 is identified. Use the provided show output to determine the current state and necessary commands.

Exhibit

SW3# show interfaces status
Port      Name               Status       Vlan    Duplex  Speed Type
Gi0/1                        connected    1       a-full  a-1000 10/100/1000BaseTX
Gi0/2                        connected    1       a-full  a-1000 10/100/1000BaseTX
Gi0/3                        err-disabled 1       auto    auto   10/100/1000BaseTX

SW3# show spanning-tree
  VLAN0001
    Spanning tree enabled protocol ieee
    Root ID    Priority    24577
               Address     0001.1111.1111
               This bridge is the root
               Hello Time  2 sec  Max Age 20 sec  Forward Delay 15 sec

    Bridge ID  Priority    32769  (priority 32768 sys-id-ext 1)
               Address     0001.1111.1111
               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            Desg FWD 4         128.2    P2p
Gi0/3            Desg BKN*4         128.3    P2p *PVID_Inc

SW2# show spanning-tree
  VLAN0001
    Spanning tree enabled protocol ieee
    Root ID    Priority    24577
               Address     0001.1111.1111
               This bridge is the root
               Hello Time  2 sec  Max Age 20 sec  Forward Delay 15 sec

    Bridge ID  Priority    32769  (priority 32768 sys-id-ext 1)
               Address     0002.2222.2222
               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            Altn BLK 4         128.2    P2p
Question 13hardScenario
Open the full STP breakdown →

You are connected to a multilayer switch MLS1. Configure Root Guard on the designated port facing another switch SW2 to prevent it from becoming root, configure Loop Guard on the uplink port to the core, and configure BPDU Guard on a PortFast-enabled access port. After configuration, a superior BPDU arrives on the designated port—confirm it is blocked by Root Guard. Then, simulate a BPDU on the access port to verify it goes err-disabled due to BPDU Guard.

Exhibit

MLS1# show spanning-tree

VLAN0001
  Spanning tree enabled protocol ieee
  Root ID    Priority    32769
             Address      aabb.cc00.0100
             This bridge is the root

  Bridge ID  Priority    32769  (priority 32768 sys-id-ext 1)
             Address      aabb.cc00.0100

  Interface        Role Sts Cost      Prio.Nbr Type
  ------------------- --- --- --------- -------- --------------------------------
  Gi0/0             Desg FWD 4         128.1    P2p
  Gi0/1             Desg FWD 4         128.2    P2p
  Gi0/2             Desg FWD 4         128.3    P2p

Gi0/2 is connected to SW2. Gi0/1 is uplink to core. Gi0/0 is access port with PortFast enabled.

MLS1# show running-config | section interface
interface GigabitEthernet0/0
 switchport mode access
 spanning-tree portfast
!
interface GigabitEthernet0/1
 switchport mode trunk
!
interface GigabitEthernet0/2
 switchport mode trunk
!
Question 14mediummultiple choice
Open the full STP breakdown →

Which pairing is correct?

Question 15easymultiple choice
Open the full STP breakdown →

Which STP port state on a classic 802.1D switch listens for BPDUs and prepares to participate in the topology, but does not yet learn MAC addresses?

Question 16mediummulti select
Open the full STP breakdown →

Which TWO of the following statements accurately describe the configuration and behavior of Root Guard, Loop Guard, and BPDU Guard in Rapid PVST+ environments?

You are connected to a multilayer switch MLS1. The network has two other switches: SW2 and SW3. The interface GigabitEthernet0/1 already has PortFast and BPDU Guard enabled. Configure MLS1 as the root bridge for VLAN 10 and VLAN 20 using the root primary command. After configuration, verify that the interface is not in err-disabled state and that the root bridge role is correctly assigned.

Exhibit

MLS1# show running-config | include hostname|spanning-tree|interface GigabitEthernet0/1
hostname MLS1
!
spanning-tree mode rapid-pvst
!
interface GigabitEthernet0/1
 switchport mode access
 switchport access vlan 10
 spanning-tree portfast
 spanning-tree bpduguard enable
!
MLS1# show spanning-tree vlan 10

VLAN0010
  Spanning tree enabled protocol rstp
  Root ID    Priority    32769
             Address     aabb.cc00.0100
             This bridge is the root
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

  Bridge ID  Priority    32769  (priority 32768 sys-id-ext 1)
             Address     aabb.cc00.0100
             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 Edge

MLS1# show interfaces gigabitEthernet 0/1 status
Port      Name   Status       Vlan       Duplex Speed Type
Gi0/1            connected    10         a-full a-100 10/100/1000BaseTX
Question 18mediummulti select
Open the full STP breakdown →

Which two statements accurately describe DNS in everyday network use?

Question 19hardmultiple choice
Open the full VLAN trunking answer →

Exhibit: Users on SW2 in VLAN 30 can reach local devices but not hosts in VLAN 30 on SW1. What is the most likely reason?

Exhibit

SW1 Gi0/1 trunk allowed vlan 10,20
SW2 Gi0/1 trunk allowed vlan 10,20
Both switches have VLAN 30 configured and access ports assigned correctly.
Question 20mediumdrag order
Open the full STP breakdown →

Drag and drop the following steps into the correct order to configure and recover from a BPDU guard violation on a PortFast-enabled access port in RSTP.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4
5Step 5

Free account

Track your progress over time

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

Focused STP sessions

Start a STP only practice session

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

Related practice questions

Related 200-301 topic practice pages

Move into related areas when this topic feels solid.

Frequently asked questions

What does the 200-301 exam test about STP?
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 STP questions in a focused session?
Yes — the session launcher on this page draws every question from the STP 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 200-301 topics?
Use the topic links above to move to related areas, or go back to the 200-301 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 200-301 exam covers. They are not copied from any real exam or dump site.