CS FundamentalsHardProduct-company security interview

A team builds a hiring form. QA notices the form can be submitted with all fields blank; developers say 'validation is the back-end's job', back-end developers say 'the form should prevent it'. Which principle settles this most robustly?

  1. A. Validate only on the client because it is faster
  2. B. Validate only in the database
  3. C. Never validate input
  4. D. Validate on the server as the authoritative check, since client-side checks can be bypassed; client-side validation is only a usability aid

Correct answer: D. Validate on the server as the authoritative check, since client-side checks can be bypassed; client-side validation is only a usability aid

Anything sent by a client can be forged, so security and integrity checks must live on the server. Client checks add fast feedback but are not a control.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic