Explain a brute force attack and its defense mechanisms.
A brute force attack involves trying all possible password combinations to gain unauthorized access. Using complex passwords, implementing account lockouts, and employing multi-factor authentication can deter such attacks.