Skip to content
Sharp

HTTP JSON APIs · interview question

What should the DTO-to-domain translation step usually do?

Multiple choiceMediumchapter-11-curatedpremiumhttp-json-apisjackson-objectmapper
Choose one answer
Answer and explanation

Correct answer

C. Validate required fields, normalize units, and reject incomplete responses

Why

A boundary translator is the right place to validate nullability, convert units like cents into money objects, and decide how to handle incomplete or surprising payloads before the data reaches domain logic.

Test yourself on HTTP JSON APIs

A free test with instant, explained results. No account needed.

Start free test
All HTTP JSON APIs questions →