System Design · Junior · Question 42 of 75

Why can't you trust data that comes from the client?

Explanation

Via DevTools, curl or a proxy, anyone can send any values: a product price, someone else's ID, an admin role. The server must check permissions, validate input and recompute important values (an order total) itself.

Further reading

Problem with a question

System Design · Junior · question 42

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