All jobs / Backend developer / API Development

Backend developer interview question · 0–1 years

The interviewer asks: “Do you return the database entity as JSON?” Strongest answer?

The strongest answer

No. I return a DTO I control. Entities hide lazy loads, circular references, and columns the client must not see.

Why it works

Exactly. The persistence model is not the HTTP contract. Map it. That's how you avoid over-posting and surprise columns.

What a good answer covers

Answers that fall short

Who gets asked this

More API Development questions