Final answer:
An Intrusion Prevention System (IPS) should be installed instead of an Intrusion Detection System (IDS) when there is a need to detect and prevent unauthorized access in real time.
Step-by-step explanation:
In the context of network security, an Intrusion Prevention System (IPS) is the appropriate choice when the goal is to detect and prevent unauthorized access to the network. Unlike an Intrusion Detection System (IDS), which primarily monitors network traffic and alerts administrators to suspicious activities, an IPS actively analyzes and takes steps to block or prevent malicious activities in real time. To elaborate, an IPS is designed to not only identify potential threats but also to respond immediately to prevent those threats from causing harm.