nerdexam
ExamsSY0-301Questions#478
CompTIA

SY0-301 · Question #478

SY0-301 Question #478: Real Exam Question with Answer & Explanation

The correct answer is A: Input validation. The common coding error described - where boundary checking is not performed - is the failure to implement proper input validation. When code does not validate that input stays within expected boundaries (e.g., checking that a string doesn't exceed a buffer's length), it leads to

Question

Which of the following is a common coding error in which boundary checking is not performed?

Options

  • AInput validation
  • BFuzzing
  • CSecure coding
  • DCross-site scripting

Explanation

The common coding error described - where boundary checking is not performed - is the failure to implement proper input validation. When code does not validate that input stays within expected boundaries (e.g., checking that a string doesn't exceed a buffer's length), it leads to vulnerabilities like buffer overflows. Input validation is the secure coding practice that prevents this; its absence is the error. Fuzzing (B) is a testing technique that sends unexpected input to find bugs. Secure coding (C) is the overall practice. Cross-site scripting (D) is a specific vulnerability type, not a category of coding error related to boundary checking.

Community Discussion

No community discussion yet for this question.

Full SY0-301 Practice
Which of the following is a common coding error in which boundary... | SY0-301 Q#478 Answer | NerdExam