nerdexam
CompTIACompTIA

SY0-701 · Question #314

SY0-701 Question #314: Real Exam Question with Answer & Explanation

The correct answer is B: Input sanitization. Input sanitization is a critical security measure to prevent SQL injection attacks, which occur when an attacker exploits vulnerabilities in a website's input fields to execute malicious SQL code. By properly sanitizing and validating all user inputs, developers can prevent malic

Submitted by akirajp· Mar 6, 2026Threats, vulnerabilities, and mitigations

Question

While investigating a recent security breach an analyst finds that an attacker gained access by SOL infection through a company website. Which of the following should the analyst recommend to the website developers to prevent this from reoccurring?

Options

  • ASecure cookies
  • BInput sanitization
  • CCode signing
  • DBlocklist

Explanation

Input sanitization is a critical security measure to prevent SQL injection attacks, which occur when an attacker exploits vulnerabilities in a website's input fields to execute malicious SQL code. By properly sanitizing and validating all user inputs, developers can prevent malicious code from being executed, thereby securing the website against such attacks.

Community Discussion

No community discussion yet for this question.

Full SY0-701 PracticeBrowse All SY0-701 Questions