nerdexam
National_Instruments

200-500 · Question #225

Which of the following functions will you use as a countermeasure against a SQL injection attack?

The correct answer is D. mysql_escape_string(). See the full explanation below for the reasoning.

Question

Which of the following functions will you use as a countermeasure against a SQL injection attack?

Options

  • Aescapeshellcmd()
  • Bmysql_fetch_array()
  • Cescapeshellarg()
  • Dmysql_escape_string()

How the community answered

(55 responses)
  • A
    5% (3)
  • B
    16% (9)
  • C
    7% (4)
  • D
    71% (39)

Community Discussion

No community discussion yet for this question.

Full 200-500 Practice