The job was a piece of cake. What kind of figurative language is this? What is the author trying to say?

This is an example of a simile, as it is comparing the job to a piece of cake. The author is trying to say that the job was very easy or simple to do.