Hi @network_geek
In the diagram you showed, if it is configured just as described there, connectivity between PC1 to PC2 will not work.
The flow is like this:
1. PC1 resolves ARP for it's gateway
2. PC1 sends ICMP request to SW1 (SVI-10)
3. SW1 checks the DMAC -> knows it's destined to itself so it forwards the packet to routing engine.
4. SW1 checks the routing table. There is no route to DIP so it drops the packet.
For this to work, you need SW-1 to have a route to VLAN20. You can have that either connected, by configuring SVI20, either have an interconnect between SW1 and SW2 (SVI30 for example) over which you run a routing protocol (can be even static).
Stay safe,
Sergiu