Why do earthquakes occur at plate boundaries?

AThe earth's surface absorbs energy, and earthquakes occur when the energy is released violently.
BFriction between plates creates tension, and earthquakes occur when the tension is released.
CConvection currents cause earthquakes when they release energy to the earth's crust.
DOceanic currents cause earthquakes at plate boundaries when they lose heat.