nerdexam
Cisco

350-701 · Question #785

What is a difference between SQL injection and buffer overflow attacks?

The correct answer is B. SQL injection targets databases, and buffer overflow targets applications. SQL injection attacks target databases by manipulating queries, whereas buffer overflow attacks exploit vulnerabilities in applications to overwrite memory.

Submitted by dimitri_ru· Mar 30, 2026Security Concepts

Question

What is a difference between SQL injection and buffer overflow attacks?

Options

  • ASQL injection reads data from memory, and buffer overflow inserts data into memory.
  • BSQL injection targets databases, and buffer overflow targets applications.
  • CSQL injection targets websites, and buffer overflow targets software.
  • DSQL injection requires only remote access, and buffer overflow needs local access

How the community answered

(37 responses)
  • A
    11% (4)
  • B
    81% (30)
  • C
    3% (1)
  • D
    5% (2)

Why each option

SQL injection attacks target databases by manipulating queries, whereas buffer overflow attacks exploit vulnerabilities in applications to overwrite memory.

ASQL injection reads data from memory, and buffer overflow inserts data into memory.

SQL injection manipulates database queries to extract or modify data, not directly read from the application's memory; buffer overflow involves writing beyond a buffer, which overwrites adjacent memory.

BSQL injection targets databases, and buffer overflow targets applications.Correct

SQL injection attacks exploit vulnerabilities in input fields of web applications to insert malicious SQL code, primarily targeting the underlying database to read, modify, or delete data. Buffer overflow attacks occur when a program writes data beyond the allocated buffer in memory, often leading to execution of arbitrary code within the application's process space.

CSQL injection targets websites, and buffer overflow targets software.

While SQL injection often targets web applications interacting with databases, and buffer overflows can target various software, stating SQL injection targets 'websites' and buffer overflow targets 'software' is less precise than specifying the components they exploit.

DSQL injection requires only remote access, and buffer overflow needs local access

Both SQL injection and buffer overflow attacks can often be executed remotely without needing local access to the target system.

Concept tested: Differences between SQL injection and buffer overflow

Source: https://www.microsoft.com/en-us/security/blog/2023/07/20/understanding-and-mitigating-buffer-overflow-vulnerabilities/

Topics

#SQL injection#buffer overflow#attack types#application attacks

Community Discussion

No community discussion yet for this question.

Full 350-701 Practice