In which of the following situations should you install an IPS instead of an IDS?
A) When you want to monitor network traffic
B) When you want to detect and prevent malicious activities
C) When you need to analyze security events after they occur
D) When you want to perform vulnerability assessments