Allegory is a literary device that uses characters, events, and figures to represent abstract ideas, while the other literary devices are:
Simile
A figure of speech that compares two things using the words "like" or "as". For example, "He is as brave as a lion".
Irony
A contrast between what is said and what is meant. For example, verbal irony is when a writer says one thing but means something else.
Alliteration
The repetition of the same consonant sound at the beginning of multiple words