Reject bad requests before the workflow invests more state and side effects into them. Interviewers often reward explicit boundary validation because it keeps system layers honest.
The strongest answers connect the feature to reasoning and tradeoffs instead of reciting syntax.
Additional Notes
How should you explain validation in an interview?