Skip to content
Sharp

HTTP JSON APIs · interview question

Why translate external JSON into boundary DTOs before domain objects?

Multiple choiceEasychapter-11-curatedpremiumhttp-json-apisjson-serialization
Choose one answer
Answer and explanation

Correct answer

A. So wire-format quirks stay at the boundary instead of leaking into core domain code

Why

Boundary DTOs absorb naming mismatches, nullability, version drift, and unit quirks from external APIs. That keeps your domain model aligned to business meaning instead of third-party response shape.

Test yourself on HTTP JSON APIs

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

Start free test
All HTTP JSON APIs questions →