Skip to content
Sharp

Domain Modeling · interview question

Which judgment is strongest when choosing a data shape for invariants in __post_init__?

Multiple choiceMediumchapter-7-curatedpremiumdomain-modelinginvariants-in-post-init
Choose one answer
Answer and explanation

Correct answer

B. Pick the structure that matches the business meaning and the operations you need to perform repeatedly.

Why

The right shape makes the rest of the code simpler. The wrong shape forces awkward fixes everywhere else.

Test yourself on Domain Modeling

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

Start free test
All Domain Modeling questions →