CompTIA SecurityX (CAS-005) — Question 219

A security architect wants to prevent security impacts from input into data fields, such as the following:

'AND 1=1#

Which of the following would best accomplish this objective?

Answer options

Correct answer: B

Explanation

The correct answer is B, as coding standards can help ensure that data input is properly validated and sanitized to prevent injection attacks. The other options do not directly address the need for secure input validation; APIs can still be vulnerable, Base64 encoding is not a security measure for input, and sandboxing is more about isolating environments than securing input fields.