Something easily accomplished, as in
I had no trouble finding your house-a piece of cake. This expression originated in the Royal Air Force in the late 1930s for an easy mission, and the precise reference is as mysterious as that of the simile
easy as pie. Possibly it evokes the easy accomplishment of swallowing a slice of sweet dessert.