shieldCISSP Practice Domain 8 — Software Development Security Q114 of 120

Which secure coding practice mitigates buffer overflow attacks?

A CISSP practice question covering Domain 8: Software Development Security. Try answering before reading the explanation below.

Show options & answer
A
Bounds checking and using memory-safe languages or libraries
✓ Correct answer
B
Increased stack size only
C
Fast CPU clock speeds
D
Larger RAM
Why "Bounds checking and using memory-safe languages or libraries" is the right answer

Bounds checking, memory-safe languages (Rust, Go, Java), or hardened APIs (snprintf instead of strcpy) prevent overflow at the source. Stack guards (canaries), DEP, and ASLR are exploit-mitigation defenses.

Take the full CISSP practice test
120 questions, instant explanations, study-video links on every miss. No account.
Start full test →