Validate formats and invariants at the first responsible boundary so later code can rely on the data honestly. This is one of the clearest beginner-to-mid interview signals because it reveals system thinking.
The strongest answers connect the feature to reasoning and tradeoffs instead of reciting syntax.
Additional Notes
How should you explain input validation in an interview?