QUESTION 4 OF 10

Why validate model or API inputs server-side?

Reveal the answer and explore the explanation.

04
EasyCore

Why validate model or API inputs server-side?

Answer
Answer

Client checks can be bypassed; the server must enforce types, limits and business rules.

Practical example

Reject an assessment request containing invalid option indexes.

Reference: Further reading ↗

Last 30 min revisionHigh-yield interview Q&As