System Design · Junior · Question 32 of 75

Where should form data be validated?

Explanation

Client-side validation gives instant feedback but is easily bypassed with a direct request. The server must check everything. A shared schema (e.g. Zod) can be reused on both sides.

Further reading

Problem with a question

System Design · Junior · question 32

Test yourself

Take the System Design · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz