Question 1,100 of 1,152
Threats, Vulnerabilities, and MitigationshardMultiple ChoiceObjective-mapped

Quick Answer

The answer is time-based blind SQL injection, because the consistent five-second delay triggered by a single quote and a conditional sleep function confirms the database is executing the injected command without revealing errors or output changes. This technique relies on inferring database behavior from response timing, where a true condition (like a valid SQL syntax) causes a deliberate pause, while a false condition returns immediately. On the Security+ SY0-701 exam, this scenario tests your ability to distinguish blind SQLi from error-based or union-based variants, often appearing in questions about web application vulnerabilities and penetration testing techniques. A common trap is mistaking the delay for a network issue or a simple timeout, but the repeatable, exact five-second pause tied to a specific input pattern is the hallmark of time-based injection. Memory tip: think “sleep equals sneak”—if the app sleeps only when your quote is valid, the attacker is sneaking data out one bit at a time through timing.

SY0-701 Threats, Vulnerabilities, and Mitigations Practice Question

This SY0-701 practice question tests your understanding of threats, vulnerabilities, and mitigations. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A tester enters a crafted search term into an internal web application and sees no error message, but the page response always delays by exactly five seconds when the input includes a single quote followed by a conditional sleep function. The returned results look normal, so the tester repeats the request several times and the timing remains consistent. Which attack is most likely being attempted?

Clue words in this question

Noticing these words before you look at the options changes how you read each choice.

  • Clue: "most likely"

    Why it matters: Probability qualifier — the question wants the most probable cause or outcome, not a guaranteed one. Eliminate low-probability options.

  • Clue: "always"

    Why it matters: Absolute qualifier. An answer using 'always' is only correct if there are genuinely no exceptions — absolute statements are often wrong in networking.

Question 1hardmultiple choice
Full question →

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Time-based blind SQL injection, because the attacker is inferring database behavior from delayed responses.

The consistent five-second delay triggered by a single quote followed by a conditional sleep function (e.g., ' OR SLEEP(5)) indicates a time-based blind SQL injection. The tester is inferring database behavior from response timing because the application does not display error messages or output differences, but the database executes a sleep command when the injected SQL is syntactically valid. This technique exploits the database's ability to conditionally pause execution, allowing an attacker to extract data bit by bit based on true/false conditions.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Reflected cross-site scripting, because the tester's input is being echoed back into the response.

    Why it's wrong here

    Reflected XSS would cause script execution in the browser. A timing-based delay without browser script behavior is more consistent with database probing than client-side execution.

  • Command injection, because the application is pausing while executing system-level sleep commands.

    Why it's wrong here

    Command injection would typically affect the operating system or shell. The described behavior matches database response timing driven by crafted SQL conditions, not shell command execution.

  • Time-based blind SQL injection, because the attacker is inferring database behavior from delayed responses.

    Why this is correct

    The timing pattern is the critical clue. When an application does not reveal errors or data directly, an attacker can still infer whether injected SQL changes control flow by measuring response delays. A single quote plus a conditional sleep is a classic sign of time-based blind SQL injection. The normal-looking results and consistent pauses show the query is being influenced even without visible error output.

    Clue confirmation

    The clue words "most likely", "always" in the question point toward this answer.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Session fixation, because the tester is manipulating how the application handles user input over time.

    Why it's wrong here

    Session fixation concerns forcing or preserving a session identifier before authentication. It does not produce repeatable, query-dependent response delays tied to a search field.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates confuse a time-based delay with command injection (Option B) because both involve a pause, but the key differentiator is the single quote syntax and the database-specific sleep function, not an OS-level command.

Trap categories for this question

  • Command / output trap

    Command injection would typically affect the operating system or shell. The described behavior matches database response timing driven by crafted SQL conditions, not shell command execution.

Detailed technical explanation

How to think about this question

Time-based blind SQL injection works by injecting SQL functions like SLEEP(5) or WAITFOR DELAY '0:0:5' into a query; the database pauses only if the injected condition evaluates to true, allowing the attacker to infer boolean results from response time. A subtle behavior is that the delay must be consistent and not affected by network jitter or caching, which is why the tester repeats the request multiple times. In real-world scenarios, attackers use this technique when error-based and UNION-based injections are blocked, often with heavy queries or conditional time delays to extract data character by character.

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.

TExam Day Tips

  • 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.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A security team runs a vulnerability scan on a web application and discovers an unpatched SQL injection flaw. The team prioritises remediation by CVSS score — critical flaws are patched within 24 hours, high within 7 days. Questions like this test whether you understand vulnerability management processes, scanning tools, and remediation prioritisation.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

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.

Practice this exam

Start a free SY0-701 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this SY0-701 question test?

Threats, Vulnerabilities, and Mitigations — This question tests Threats, Vulnerabilities, and Mitigations — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Time-based blind SQL injection, because the attacker is inferring database behavior from delayed responses. — The consistent five-second delay triggered by a single quote followed by a conditional sleep function (e.g., ' OR SLEEP(5)) indicates a time-based blind SQL injection. The tester is inferring database behavior from response timing because the application does not display error messages or output differences, but the database executes a sleep command when the injected SQL is syntactically valid. This technique exploits the database's ability to conditionally pause execution, allowing an attacker to extract data bit by bit based on true/false conditions.

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

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Are there clue words in this question I should notice?

Yes — watch for: "most likely", "always". Probability qualifier — the question wants the most probable cause or outcome, not a guaranteed one. Eliminate low-probability options.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Keep practising

More SY0-701 practice questions

Last reviewed: Jun 11, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This SY0-701 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SY0-701 exam.