easymultiple choiceObjective-mapped

A support portal has a search field that accepts customer last names. After a tester enters a single quote, the application returns a database syntax error. Which attack is the tester most likely trying to verify?

Question 1easymultiple choice
Full question →

A support portal has a search field that accepts customer last names. After a tester enters a single quote, the application returns a database syntax error. Which attack is the tester most likely trying to verify?

Answer choices

Why each option matters

Good practice is not just finding the correct option. The wrong answers often show the exact trap the exam wants you to fall into.

A

Distractor review

Cross-site scripting (XSS)

XSS usually involves injecting script that runs in a browser. A database syntax error after a quote points to a backend SQL problem instead.

B

Best answer

SQL injection

SQL injection happens when user input is inserted into a database query without proper validation or parameterization. A single quote causing a syntax error is a common sign that the input is affecting the SQL statement.

C

Distractor review

CSRF

CSRF abuses an authenticated user’s browser to send unwanted requests. It does not usually cause a SQL syntax error from a single quote in a search field.

D

Distractor review

SSRF

SSRF tricks the server into making requests to internal or external resources. The behavior described here is about database query construction, not server-side URL fetching.

Common exam trap

Common exam trap: answer the scenario, not the keyword

Many certification questions include familiar terms but test a specific constraint. Read the exact wording before choosing an answer that is generally true but wrong for this case.

Technical deep dive

How to think about this question

This question should be treated as a scenario, not a definition check. Identify the problem, the constraint and the best action. Then compare each option against those facts.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.
  • Use explanations to understand the rule behind the answer.

TExam Day Tips

  • Underline the problem statement mentally.
  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Related practice questions

Related SY0-701 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

More questions from this exam

Keep practising from the same exam bank, or move into a focused topic page if this question exposed a weak area.

FAQ

Questions learners often ask

What does this SY0-701 question test?

Read the scenario before looking for a memorised answer.

What is the correct answer to this question?

The correct answer is: SQL injection — This is SQL injection because the input is influencing how the database query is built. A single quote often breaks out of a string in SQL, which can trigger a syntax error if the application is not using parameterized queries. On Security+, that is one of the most recognizable clues for SQL injection in a web application test or incident report. Why others are wrong: XSS affects the browser and typically involves script execution, not database syntax errors. CSRF forces a victim to submit an unwanted request while already authenticated. SSRF makes the server contact another system or URL. The error shown in the prompt specifically points to database query manipulation.

What should I do if I get this SY0-701 question wrong?

Then try more questions from the same exam bank and focus on understanding why the wrong options are tempting.

Discussion

Loading comments…

Sign in to join the discussion.