Question 105 of 185
mediumMultiple ChoiceObjective-mapped
PT0-002 Practice Question: A penetration tester is analyzing a Python script…
A penetration tester is analyzing a Python script that uses the 'requests' library to send HTTP POST requests to a target URL with different payloads. The script also implements a retry mechanism with exponential backoff. What is the most likely purpose of this script?
⚠ Common exam trap
Candidates often confuse password spraying with brute-force attacks, but the key distinction is that password spraying uses a small set of passwords across many accounts, while brute-force focuses on many passwords for a single account.
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
✓
Password spraying
The script sends HTTP POST requests with different payloads and implements a retry mechanism with exponential backoff. This behavior is characteristic of password spraying, where an attacker attempts a small number of common passwords against many usernames to avoid account lockouts. The exponential backoff helps evade rate-limiting and intrusion detection systems by gradually increasing delays between attempts.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Directory brute-forcing
Why it's wrong here
Directory brute-forcing is incorrect because it enumerates valid resource paths on a web server using GET requests (e.g., /admin, /backup) and analyzes HTTP status codes (200, 403, 404) to identify existing directories or files. The described script sends POST requests with different payloads to a single URL, which is not how path discovery works—there are no paths to brute-force. Additionally, retry with exponential backoff is an anti-rate-limiting measure for repeated login attempts, not a technique used in directory brute-forcing, where speed is prioritized.
- ✓
Password spraying
Why this is correct
Password spraying is correct because the script sends POST requests to a single endpoint (likely a login form) with different password payloads, while the username remains constant or cycles slowly. The retry logic with exponential backoff is specifically designed to evade account lockout policies and rate limiting, allowing the attacker to try multiple passwords across accounts without triggering defenses. This behavior—iterating passwords slowly against one URL—is the signature of password spraying, which uses a few common passwords against many accounts rather than a brute-force of many passwords per account.
- ✗
SQL injection testing
Why it's wrong here
SQL injection testing is wrong because it sends specialized SQL payloads (e.g., single quotes, UNION SELECT, OR 1=1) to observe differences in server responses, database errors, or timing, not generic password strings. The retry with exponential backoff would actually hinder SQLi testing, as a tester needs rapid, repeated requests to map how the application parses injection vectors and tune payloads in real time. Moreover, SQLi is a single-request-per-payload vulnerability check, not a credential-guessing loop, so the script's POST payloads are more consistent with authentication attacks.
- ✗
Session hijacking
Why it's wrong here
Session hijacking is incorrect because it focuses on stealing, fixing, or predicting session identifiers (e.g., session tokens, cookies) to impersonate an authenticated user, not on sending POST payloads to a login endpoint. Implementing exponential backoff in a hijacking attack is nonsensical—there is no credential to guess or lockout to avoid; instead, an attacker would capture tokens via network sniffing, cross-site scripting, or session fixation. The script's behavior of repeatedly sending different payloads via POST with retry logic clearly aligns with authentication brute-forcing or password spraying, not session-based attacks.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Last reviewed: Jun 11, 2026
This PT0-003 practice question is part of Courseiva's free CompTIA 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 PT0-003 exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.