Duolingo's sentence is a bit unnatural, but it's not wrong. Yours is the correct translation.
"Igen, ez lámpa" makes as much sense as "Yes, this is lamp" does in English... Could it be that someone who goes by the name 'lamp' is answering his/her phone?