Courseiva

PEN-200 Buffer Overflow Fundamentals Practice Question

Which TWO of the following statements correctly describe the function of a NOP sled in a buffer overflow exploit?

⚠ Common exam trap

Candidates often believe the NOP sled is the payload itself or that it directly executes code. They fail to understand it is merely a landing pad for the instruction pointer.

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

✓

It provides a wider range of addresses for successful jump redirection.

A NOP sled (No-Operation) is a sequence of instructions that do nothing but pass control to the next instruction. It is critical for increasing the reliability of an exploit by providing a larger landing zone for the instruction pointer. If the exact address of the shellcode fluctuates due to environment variables or minor stack shifts, the NOP sled ensures the CPU eventually slides into the functional payload.

Answer analysis

Option-by-option breakdown

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

  • ✓

    It provides a wider range of addresses for successful jump redirection.

    Why this is correct

    By placing a large NOP sled before the shellcode, the exact memory address required for the redirect becomes less precise. As long as the instruction pointer lands anywhere within the sled, the CPU execution flow will naturally slide down until it reaches the start of the actual functional shellcode payload.

  • ✗

    It acts as a primary payload to bypass antivirus software.

    Why it's wrong here

    A NOP sled is not an evasion technique for antivirus software. In fact, large NOP sleds are frequently flagged by security tools as a signature of malicious activity. It serves a functional role in stabilizing exploitation, not an obfuscation role designed to bypass detection mechanisms or security controls.

  • ✗

    It executes complex arithmetic to prepare registers for shellcode.

    Why it's wrong here

    NOP instructions are defined as doing nothing. They occupy memory space and increment the instruction pointer without modifying any CPU registers or changing the state of the program. They are strictly for movement through memory, not for performing calculations or setting up the environment for the subsequent exploit code.

  • ✓

    It ensures the instruction pointer reaches the shellcode despite offset variances.

    Why this is correct

    Memory addresses can shift due to subtle changes in system state. A NOP sled acts as a buffer zone that compensates for these minor variations. By landing in the sled, the program continues executing harmless instructions until it reaches the payload, ensuring the exploit works even if the target pointer shifts.

  • ✗

    It is required to disable hardware-based stack protections.

    Why it's wrong here

    Hardware protections like DEP or ASLR are handled by the operating system kernel and CPU architecture. A NOP sled has no capability to interact with these security features. It is a user-mode technique used for improving reliability, not a method for disabling system-wide security controls or hardware enforcement.

About these practice questions

Courseiva writes every PEN-200 question from scratch — 285 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official OffSec exam blueprint

This PEN-200 practice question is part of Courseiva's free OffSec 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 PEN-200 exam.