When does vindictive prosecution usually happen?

A. When the accused admits guilt.
B. During the initial investigation phase.
C. As a response to a public outcry.
D. When the prosecutor is motivated by revenge or personal animosity.