Which best describes onomatopoeia?

It contains a hidden meaning that is different from its literal meaning.
It imitates the sound it is describing.
It compares two dissimilar things.
It ascribes human characteristics to inanimate objects.