Which figure of speech is used in this text?
The assassination of John F. Kennedy on November 22, 1963, was as shocking as an earthquake, leaving Americans feeling shaken and vulnerable.

 - simile
 - alliteration
The text includes a simile, using like or as to compare two things that are not actually alike.
As shocking as an earthquake compares the assassination of President Kennedy to an earthquake.