MCQ Single Best Answer Difficult

QWhich of the following is not recommended to secure web applications against authenticated users?

ID: #23268 Secure Programming Practices 176 views
Question Info
#23268Q ID
DifficultDifficulty
Secure Programming PracticesTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A Filtering data with a default deny regular expression
  • B Client-side data validation
  • C Using parameterized queries to access a database
  • D Running the application with least privileges
Correct Answer: Option B

Explanation

The correct answer is:

Client-side data validation

Explanation: While client-side data validation can improve user experience and reduce server load, it is not recommended as the sole security measure for web applications. Since client-side validation can be bypassed (e.g., by manipulating the client-side code), it should not be relied upon to secure the application.

Instead, the following measures are more secure:

  • Filtering data with a default deny regular expression: Helps prevent malicious input.
  • Using parameterized queries to access a database: Prevents SQL injection attacks.
  • Running the application with least privileges: Reduces the potential impact of a security breach.

Server-side validation and secure coding practices are essential for proper security.

Share This Question

Challenge a friend or share with your study group.