I believe the answer is Simile.
A simile is distinguished by comparing a certain thing with another on a different type/ or kind. ( in this case , it compared moon and light bulb)
The purpose of simile is to give the readers a more vivid description on a certain occurence.