You need a minimum of 5 switches to master STP. With 2 switches, you cannot create loops, root bridge elections, or UDLD scenarios.
To truly master these concepts, you must balance deep theoretical knowledge with rigorous hands-on practice. 1. Master the Core Switching Pillars
CCNA teaches you what commands do. CCNP mastery teaches you how the switch CPU and ASIC work together.