A direct or indirect pulp cap has the greatest chance of clinical success when there is a

vital pulp

history of spontaneous pain.

prolonged response to cold stimulus.

apical lesion