Skip to content
Sharp

Spring Core · interview question

Why is input validation strongest at the controller boundary?

Multiple choiceHardchapter-9-curatedpremiumspring-corepersistence-and-validation
Choose one answer
Answer and explanation

Correct answer

B. Because invalid requests can be rejected before bad data spreads into the service layer

Why

Validation is most useful where external input first enters the system. Rejecting malformed requests early protects downstream services and keeps the internal model cleaner.

Test yourself on Spring Core

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

Start free test
All Spring Core questions →