Home / CompTIA PenTest+ (PT0-003) / Mock exam
CompTIA PenTest+ (PT0-003) Exam-style mock test

CompTIA PenTest+ (PT0-003)|Practice test

Full explanations Exam format Pass line 70%
33 USD One-time · lifetime access
Enroll →

Sample questions

Example1 · Engagement Management
A multinational retail bank is drafting the scope for a penetration test of its new online banking portal. The bank hosts the portal on a third-party cloud provider under a shared-responsibility model. Before any testing begins, which pre-engagement action most directly determines whether the testers may lawfully assess the cloud-hosted infrastructure?
・Running an initial unauthenticated Nmap sweep of the portal's publicly reachable IP ranges beforehand to confirm which specific hosts respond
Incorrect. Scanning before authorization is confirmed could itself be an unauthorized act against assets the bank does not own.
・Asking the bank's marketing team to confirm the portal's brand name and public launch date for the report cover page
Incorrect. Branding details are cosmetic report metadata and have no bearing on legal authority to test.
・Deciding internally that cloud assets are always out of scope because the provider is a separate legal entity
Incorrect. Cloud assets can be in scope, but only with proper authorization; a blanket internal exclusion is an assumption, not a determination.
✓Obtaining written authorization from the cloud provider in addition to the bank, since the provider owns the underlying infrastructure
Correct. Under a shared-responsibility model the provider owns the underlying infrastructure, so lawful testing of it requires the provider's written authorization alongside the client's.
Explanation
In a shared-responsibility cloud model, the client controls only part of the stack. Authorization to test provider-owned infrastructure must come from the provider, which is why many providers require explicit permission requests before assessment.
Example2 · Reconnaissance and Enumeration
During an authorized engagement against a multinational retail bank, the tester must map the target's externally facing subdomains and third-party infrastructure without sending any packets to the client's own systems. Which approach best satisfies the scoping constraint for this phase?
✓Query certificate transparency logs and public DNS records for the bank's domains
Correct. Certificate transparency logs and public DNS records are third-party passive OSINT sources that reveal subdomains without touching client systems.
・Launch a full Nmap TCP connect scan across the bank's published netblocks during this specific engagement phase.
Incorrect. A TCP connect scan sends packets directly to the client's hosts, which is active reconnaissance and violates the passive-only constraint.
・Perform active banner grabbing against each discovered web host and port
Incorrect. Banner grabbing requires establishing connections to the target services, making it an active technique rather than passive collection.
・Run an authenticated vulnerability scan against the bank's load balancers
Incorrect. An authenticated vulnerability scan directly interrogates the client's load balancers and is well beyond passive reconnaissance.
Explanation
Passive reconnaissance gathers data from third-party sources without interacting with the target. Certificate transparency logs and public DNS/WHOIS data expose subdomains and infrastructure while keeping zero packets flowing to client-owned assets.
Example3 · Vulnerability Discovery and Analysis
During an authorized engagement against a global retail bank's internal payment-processing servers, the tester must enumerate missing OS patches and insecure local service configurations that are invisible from an unauthenticated network perspective. Which scan approach best meets this requirement?
・An unauthenticated network scan that only fingerprints service banners on open listening ports
Incorrect. Banner fingerprinting alone infers versions from the outside and cannot read installed packages or local settings reliably.
✓A credentialed scan that logs in to inspect installed packages and local configuration state
Correct. Supplying valid credentials lets the scanner log in and read patch levels and local configuration directly, surfacing issues an external view cannot see.
・A discovery-only sweep that merely maps which hosts respond across the subnet
Incorrect. A discovery sweep only confirms which hosts are alive and does not assess patch or configuration state at all.
・A passive scan that only observes mirrored traffic arriving from the switch span port interface
Incorrect. Passive observation detects only what appears on the wire and will miss dormant local misconfigurations and uninstalled patches.
Explanation
Credentialed (authenticated) scanning logs into the target to inspect packages, registry or config files, and patch status, revealing issues not observable from the network. Unauthenticated, discovery, and passive methods lack that internal visibility.
Example4 · Attacks and Exploits
During an authorized internal assessment of a regional hospital network, a tester observes that clinical workstations resolve a legacy imaging server hostname using NetBIOS and LLMNR broadcasts because the DNS record was decommissioned. The tester wants to capture authentication material from these workstations to demonstrate the exposure to the security team. Which technique best fits this scenario?
✓Responding to the broadcast name queries to coerce clients into authenticating to the tester and capturing the hashes
Correct. LLMNR/NetBIOS poisoning answers the fallback name queries, causing clients to authenticate to the tester and exposing captured hashes.
・Launching a SYN flood against the imaging subnet to force clients onto a backup resolution path
Incorrect. A SYN flood is a denial-of-service action and does not capture authentication material.
・Submitting a full zone transfer request to the internal DNS server to enumerate every decommissioned clinical hostname record in one pass
Incorrect. A zone transfer enumerates DNS records but does not exploit the broadcast fallback or collect credentials.
・Deploying an ARP cache timeout adjustment on the core switch to redirect imaging traffic
Incorrect. Changing ARP timeouts is not the mechanism; the exposure here is name-resolution poisoning, not ARP manipulation.
Explanation
When DNS resolution fails, Windows clients fall back to LLMNR and NetBIOS broadcasts, which an attacker can answer to coerce authentication. Poisoning these responses lets the tester capture hashes and demonstrate the risk of the decommissioned record.
Example5 · Post-exploitation and Lateral Movement
During an authorized engagement at a hospital, a tester gains an initial foothold on a Windows workstation in the clinical network. Before attempting any privilege escalation, which post-exploitation enumeration activity most directly helps the tester understand the local environment and identify viable escalation paths?
・Immediately encrypting every sensitive patient record found on the host to demonstrate ransomware impact to stakeholders
Incorrect. Encrypting production patient data is destructive, out of scope for enumeration, and would harm clinical operations rather than reveal escalation paths.
・Deleting the Windows event logs so defenders cannot reconstruct the initial access
Incorrect. Clearing logs is a covering-tracks action, not enumeration, and it destroys evidence the client needs for its detection review.
✓Enumerating local users, group memberships, running services, scheduled tasks, and installed patches on the compromised host
Correct. Situational-awareness enumeration of accounts, privileges, services, tasks, and patch level reveals misconfigurations and missing updates that constitute local escalation opportunities.
・Launching a broad, high-rate port scan against every reachable subnet to map the entire hospital enterprise all at once
Incorrect. An aggressive enterprise-wide scan is noisy lateral reconnaissance that risks disruption and does not characterize the local host for escalation.
Explanation
Post-exploitation begins with local situational awareness: identifying users, privileges, services, tasks, and patch status to find escalation vectors. Destructive or noisy actions fall outside enumeration and can damage a sensitive clinical environment.
Example6 · Engagement Management
A regional hospital network hires a tester for an authorized assessment of its patient-portal web application. During scoping, the hospital insists that the production electronic health record (EHR) database, which holds live patient records, be explicitly listed as out of scope and that testing occur only against a mirrored staging portal. Which pre-engagement concern most directly justifies this scoping decision?
✓Protecting the confidentiality and integrity of regulated patient health data governed by compliance obligations
Correct. Live EHR data is regulated protected health information, so scoping testing to a mirror preserves confidentiality and integrity and keeps the engagement within legal and compliance bounds.
・Reducing the host count so the Nmap discovery sweep finishes inside the allotted testing window
Incorrect. Scan duration is an operational convenience and does not explain excluding the live clinical database from scope.
・Ensuring the tester can reuse the exact same Burp Suite project file across the staging and production tiers
Incorrect. Tool-project reuse is a tester workflow preference and has no bearing on why live patient data must be excluded.
・Letting the hospital avoid buying a separate liability insurance rider for the work
Incorrect. Scope boundaries do not remove the need for liability coverage, and insurance is unrelated to the clinical data protection rationale.
Explanation
Healthcare engagements must protect regulated patient data, so testing against a staging mirror while excluding the live EHR limits risk to confidentiality and integrity. The other options describe convenience or unrelated contractual matters rather than the compliance-driven scoping reason.
Example7 · Engagement Management
A tester is defining the rules of engagement for an assessment of a manufacturing plant's operational technology network, which includes legacy PLCs that control a bottling line. The client is concerned about availability of production systems. Which rule-of-engagement provision most directly addresses this concern?
✓Prohibiting all intrusive scans and exploit attempts against the live PLC segment and instead routing every active test to an approved mirrored lab or a scheduled maintenance window
Correct. Fragile OT devices can crash under aggressive scans or exploits, so restricting active testing to a lab replica or maintenance windows directly preserves production availability.
・Requiring the tester to submit a detailed final report within ten business days of completing all testing activities on this production segment
Incorrect. A reporting deadline governs deliverable timing and does nothing to protect fragile production systems during active testing.
・Limiting the engagement to an external perimeter review of the corporate firewall rule sets and the public-facing web applications only
Incorrect. Scoping only the perimeter avoids the OT network entirely rather than providing a controlled way to test it safely as requested.
・Mandating that all discovered vulnerabilities be rated using CVSS base scores before any of them are shared with the client team
Incorrect. A scoring standard shapes how findings are prioritized later but places no constraint on the testing techniques that could disrupt the PLCs.
Explanation
Legacy OT devices such as PLCs are notoriously fragile and can fail under standard scanning or exploitation. The ROE should constrain intrusive activity against live production segments by routing it to lab replicas or approved windows to protect availability.
Example8 · Engagement Management
During scoping for a logistics company, the client states that its warehouse management application and shipping data are processed by a third-party cloud provider under a separate contract. Before the tester can assess assets hosted by that provider, which action is most essential?
・Confirm the cloud provider's historical uptime figures by reviewing the service-level reports published on its public status page
Incorrect. Reviewing uptime statistics is unrelated to the legal right to test and provides no authorization for assessment activity.
✓Obtain written authorization from the provider or verify the contract grants testing rights
Correct. Testing assets owned or controlled by a third party requires that party's explicit permission or contractual authority, or the engagement becomes unauthorized against systems the client does not own.
・Run a passive port scan against the provider's public address ranges to enumerate exposed internet services
Incorrect. Even a passive scan directed at the provider's infrastructure may be unauthorized and must not precede obtaining the right to test those assets.
・Draft the remediation recommendations for the shipping application in advance so findings can be delivered more quickly
Incorrect. Preparing remediation text early does not establish any legal basis to assess systems the client does not control.
Explanation
Cloud-hosted and third-party assets are frequently outside the client's authority to authorize. The tester must confirm written permission from the provider or that the client's contract extends the right to test before touching those systems.
Example9 · Engagement Management
A tester performing threat modeling for a smart-factory IoT deployment wants to systematically reason about how sensor gateways could be abused across categories such as spoofing, tampering, and denial of service. Which threat-modeling approach best fits this category-driven analysis?
・Executing a timed red-team exercise that measures how quickly the plant's blue team detects simulated intrusions against the gateway
Incorrect. A detection-timing exercise measures defensive response rather than enumerating threat categories against the design.
・Compiling an asset inventory spreadsheet that lists every firmware version running on the deployed fleet
Incorrect. A firmware inventory supports asset management but does not model how threats act against the system.
・Issuing a client questionnaire that asks staff to rank the costliest past outages
Incorrect. Ranking past outages by revenue impact is business-impact analysis, not a structured enumeration of threat categories.
✓Applying the STRIDE model to decompose the gateway's data flows and map components to defined threat categories
Correct. STRIDE maps system components and data flows to defined threat categories including spoofing, tampering, and denial of service, matching the category-driven reasoning described.
Explanation
STRIDE is a category-based threat-modeling framework whose letters correspond to spoofing, tampering, repudiation, information disclosure, denial of service, and elevation of privilege. It directly supports decomposing an IoT gateway and mapping components to threat categories.
Example10 · Engagement Management
A multiplayer gaming studio hires a tester to assess its tournament matchmaking service. The signed scope lists two production IP ranges. During reconnaissance the tester discovers an unlisted staging subdomain owned by the same company that clearly handles player accounts. What is the correct action before touching it?
・Test the staging subdomain immediately, since it already belongs to the very same corporate parent organization that is covered under the current signed engagement
Incorrect. Shared ownership does not grant authorization; testing assets outside the documented scope exceeds the agreed authorization and can create legal liability.
・Add the subdomain to the final report as an unverified finding and move on without any testing
Incorrect. Reporting it as a finding without authorization misrepresents work that was never permitted and still skips the required scope approval step.
・Treat it as out of scope permanently and omit any mention of its existence from all deliverables
Incorrect. The tester should surface the discovery to the client, not silently omit it, so the client can decide whether to expand scope.
✓Pause and request a written scope amendment or explicit client authorization before assessing the subdomain
Correct. Discovered assets outside the written scope require an amendment or explicit client authorization before any testing, preserving legal authorization boundaries.
Explanation
Authorization is bounded by the written scope, not by asset ownership. Newly discovered targets require a formal scope change or explicit client sign-off before testing to keep the engagement legally defensible.
Example11 · Engagement Management
A B2B SaaS provider's rules of engagement specify a strict testing window of 02:00 to 05:00 and prohibit any denial-of-service techniques. Which document element most directly governs whether the tester may run a sustained credential-stuffing burst against the login API during that window?
✓The rules of engagement constraints on permitted techniques and timing
Correct. The rules of engagement define permitted techniques, timing windows, and prohibited actions such as denial-of-service, which directly governs this activity.
・The statement of work's payment milestones and invoicing schedule
Incorrect. Payment milestones address billing, not which attack techniques or timing windows are permitted during testing.
・The master service agreement's clause on intellectual-property ownership
Incorrect. IP ownership clauses determine who owns deliverables and tooling, not whether a specific technique is allowed.
・The separately executed non-disclosure agreement covering the client's confidential business data
Incorrect. The NDA controls confidentiality of information, not the scope of allowed testing techniques or timing.
Explanation
Rules of engagement codify the operational boundaries: allowed and forbidden techniques, timing windows, and target constraints. A sustained burst that risks resource exhaustion falls squarely under the ROE's technique and timing provisions.
Example12 · Engagement Management
A penetration testing firm is scoping an engagement for a regional electric utility. The client's SCADA network controls live grid operations, and leadership is concerned that active scanning could disrupt power delivery. During pre-engagement scoping, which action BEST addresses this concern while still allowing meaningful assessment of the operational technology environment?
・Add the SCADA control network to the authorized target list with no special handling so the assessment mirrors a realistic external attacker's approach.
Incorrect. Treating fragile OT hosts like ordinary targets with no safeguards risks disrupting live grid operations, which is the exact outcome scoping must prevent.
・Exclude all industrial systems entirely and limit the engagement to the corporate IT network, since OT testing is never permitted under any professional engagement.
Incorrect. OT can be assessed responsibly; a blanket claim that such testing is never allowed is false and would leave a critical attack surface unexamined.
✓Define the SCADA segment as a restricted zone, limiting it to passive techniques and testing against a mirrored lab replica.
Correct. A documented restricted zone with passive-only methods plus a mirrored lab replica lets testers evaluate the OT environment without endangering live grid control.
・Run full-rate automated vulnerability scans against the SCADA hosts after business hours when demand is low.
Incorrect. Full-rate automated scanning can still crash sensitive control devices, and a low-demand window does not remove the risk.
Explanation
Safety-critical OT environments require scoping safeguards such as restricted zones, passive techniques, and lab replicas rather than standard active testing. This preserves assessment value while protecting live operations and is a core pre-engagement scoping decision.
Example13 · Engagement Management
A tester is finalizing the rules of engagement with a public university before an authorized assessment of its student records system. The university operates under FERPA and warns that some test data may contain real student education records. Which rules-of-engagement provision MOST directly reduces the compliance exposure created by this situation?
・A clause letting the tester copy discovered records to a personal cloud account for later analysis.
Incorrect. Copying real education records to a personal cloud account increases exposure and likely violates FERPA.
✓A handling clause requiring accessed student records to be masked, never exfiltrated, and stored encrypted under a defined schedule.
Correct. Masking records, prohibiting exfiltration, and requiring encrypted storage with scheduled destruction directly limits FERPA exposure from accessed student data.
・A provision shifting all legal responsibility for any FERPA violation onto the university regardless of how the tester chooses to handle the records.
Incorrect. A liability-shift clause does not reduce the actual handling risk, and testers remain accountable for how they treat regulated records.
・A statement that FERPA does not apply during security testing, so the tester may process records freely without any special precautions whatsoever.
Incorrect. FERPA protections are not suspended during testing; asserting otherwise invites the very compliance violation the ROE should prevent.
Explanation
When regulated data such as student education records is in scope, the ROE should mandate data minimization, masking, no exfiltration, and secure retention and destruction. These handling controls reduce compliance exposure under regimes like FERPA.
Example14 · Engagement Management
A regional travel-booking platform contracts a firm to test its reservation API. During scoping, the client states that the booking database runs on a managed cloud provider that the travel company does not own. What is the MOST important pre-engagement action the tester should take regarding that database?
・Proceed with testing because the travel company's signed authorization fully covers every system it uses
Incorrect. A client's authorization cannot legally extend to systems owned and operated by a separate cloud provider.
・Add the database to scope silently and rely on the existing contract later
Incorrect. Silently expanding scope without the asset owner's consent exposes the tester to serious legal liability and breaches engagement ethics.
✓Obtain written third-party authorization from the cloud provider before testing the managed database
Correct. Assets hosted by a third party require that party's separate written authorization, since the client cannot grant permission to test infrastructure it does not legally control.
・Scan the database first and seek permission afterward if needed
Incorrect. Testing a third-party system before obtaining its owner's permission is unauthorized access regardless of whether findings emerge.
Explanation
Managed or hosted systems belong to the provider, so the client's authorization does not reach them. The tester must secure written third-party authorization before any activity touches those assets.
Example15 · Engagement Management
An insurance company's rules of engagement specify a daily testing window of 01:00 to 05:00 to avoid disrupting policy-quote traffic. Midway through the engagement the tester finds a promising injection path but needs more time to confirm it safely. What should the tester do?
・Continue testing past 05:00 since the vulnerability is nearly confirmed and stopping would waste progress
Incorrect. Exceeding the agreed window without approval violates the rules of engagement even when a finding looks imminent.
✓Request a formal documented amendment to the approved testing window from the client point of contact before continuing any further testing
Correct. The testing window is a binding constraint, so any change requires the client's explicit approval through a documented amendment to the rules of engagement.
・Switch to a faster automated tool so confirmation finishes within the remaining minutes
Incorrect. Accelerating a tool to beat the clock risks disruptive load and still may breach the window.
・Quietly extend the window and document the extra time in the final report for transparency later
Incorrect. Extending the window unilaterally and disclosing it only afterward breaches the agreement and erodes client trust.
Explanation
Testing windows in the rules of engagement are binding operational limits. When circumstances call for more time, the tester must obtain a documented amendment rather than act unilaterally.
▶ Try 10 free questions (graded)
Measure your readiness with a full mock exam
All questions · full explanations · lifetime access
Enroll(33 USD)