Preventing cavitation in centrifugal pumps involves ensuring that the Net Positive Suction Head Available (NPSHA) is significantly greater than the Net Positive Suction Head Required (NPSHR) by the pump. Measures that increase NPSHA or decrease NPSHR help prevent cavitation.