What’s the difference between a penetration tester and a security analyst?

A penetration tester focuses on actively testing systems for vulnerabilities, while a security analyst monitors and defends against cyber threats.