Skip to main content

SY0-701 practice question · Threats, Vulnerabilities, and Mitigations

A program allocates memory in a loop that runs for weeks but never frees it, so the process's memory use grows until it…

A program allocates memory in a loop that runs for weeks but never frees it, so the process's memory use grows until it crashes. Which software issue is this?

  • AA memory leak
  • BA buffer overflow
  • CAn integer overflow
  • DA race condition
Show the answer and explanation

Correct answer: A) A memory leak

Why each option is right or wrong

  • A) Correct. A memory leak is failure to release allocated memory that's no longer needed; over time it exhausts available memory and destabilizes the process or host.
  • B) Incorrect. A buffer overflow writes beyond a buffer's bounds, corrupting adjacent memory — different from steadily failing to free memory.
  • C) Incorrect. An integer overflow is a numeric value exceeding its type's range; it can cause bugs but isn't unbounded memory growth.
  • D) Incorrect. A race condition is a timing-dependent flaw between concurrent operations, not gradual memory exhaustion.
Exam domain
Threats, Vulnerabilities, and Mitigations · 22% of SY0-701
Question type
Multiple choice (one answer)

Practise the full SY0-701 exam

This question is one of a small free sample from the CertRidge SY0-701 bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.

Original question written from the official exam guide. Not affiliated with CompTIA; never copied from the real exam.

Worth reading: Security+ passing score (750/900), 750 on a 100–900 scale for SY0-701, SY0-801 and the retired SY0-601, and why it isn't 83%.