exam questions

Exam CS0-002 All Questions

View all questions & answers for the CS0-002 exam

Exam CS0-002 topic 1 question 345 discussion

Actual exam question from CompTIA's CS0-002
Question #: 345
Topic #: 1
[All CS0-002 Questions]

While observing several host machines, a security analyst notices a program is overwriting data to a buffer. Which of the following controls will best mitigate this issue?

  • A. Data execution prevention
  • B. Output encoding
  • C. Prepared statements
  • D. Parameterized queries
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
adrian1188
Highly Voted 1 year, 11 months ago
Selected Answer: A
Data Execution Prevention (DEP) is a technology built into Windows that helps protect you from executable code launching from places it's not supposed to. DEP does that by marking some areas of your PC's memory as being for data only, no executable code or apps will be allowed to run from those areas of memory.
upvoted 5 times
...
kumax
Most Recent 1 year, 6 months ago
Selected Answer: D
ChatGPT D. Parameterized queries Parameterized queries are a security control used in database programming to mitigate the risk of SQL injection attacks, which can occur when user input is directly incorporated into SQL statements. When a program is overwriting data to a buffer, it could potentially lead to a buffer overflow or other security vulnerabilities. Parameterized queries help prevent these issues by separating user input from the SQL query, making it difficult for an attacker to inject malicious SQL code. This control is especially important in web applications and other software where user input is involved.
upvoted 1 times
...
JakeH
1 year, 7 months ago
on exam
upvoted 2 times
...
tutita
1 year, 10 months ago
Selected Answer: A
Application developers can prevent buffer overflows by building security measures into their development code, using programming languages that include built-in protection, and regularly testing code to detect and fix errors.
upvoted 1 times
...
CyberCEH
1 year, 12 months ago
Answer A
upvoted 1 times
...
ZUL01
2 years ago
Selected Answer: A
In exactly first article from MS in google about DEP, there is following sentence: "DEM is designed to make it harder for attacks that try to use buffer overflows, or other techniques, to run their malware from those parts of memory that normally only contain data."
upvoted 2 times
...
kiduuu
2 years ago
Selected Answer: C
DEP is not designed to prevent buffer overwriting specifically, and it may not be effective in preventing all types of buffer overwriting attacks. They specifically address the issue of SQL injection attacks, which can be caused by buffer overwriting. By separating SQL code from input data and treating the input data as parameters, prepared statements ensure that the SQL code is properly sanitized and prevent attackers from injecting malicious code into the application.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago