The correct definition of consonance is:
b. when several words in a short section contain the same consonant sound.
Consonance refers to the repetition of consonant sounds in close proximity, which can occur at the beginning, middle, or end of words.