The literary technique that was used to make a comparison such as this is aha moment.
It is known as an eureka effect as t often occurs suddenly. Note that this is very common in human experience of suddenly having a good understanding of a thing.
Note that in the given excerpt above, The literary technique that was used to make a comparison such as this is aha moment.
Learn more about literary technique from
https://brainly.com/question/2183813
#SPJ1