Limited-Time Offer: Enjoy 50% Savings! Coupon code: 50OFF Use it at checkout
Skip to content

Free CompTIA PenTest+ Exam PT0-003 Exam Questions

Last updated: · 13 practice questions with answers and explanations

Page: 1 / 25 Total 365 questions

Want more questions? Get Premium Access.

Question 1

New Single answer

Topic: Engagement Management

Skill tested: Defines rules of engagement and escalation controls for high-risk testing.

A penetration testing team is authorized to assess a retailer's internet-facing services and internal corporate network. The signed authorization excludes payment processing systems, but a discovered public-facing host appears to proxy traffic to that environment. The test window is overnight, and the client has stated that any suspected access to excluded systems must stop immediately. The technical lead wants to continue validating the proxy path to establish impact. What should the team do FIRST?

Correct Answer: D. Stop the activity, preserve relevant evidence, and escalate through the agreed client contact path for written scope clarification.
Explanation:

The apparent path into an expressly excluded environment creates a scope boundary issue. The team should halt activity that could reach that environment, retain only evidence gathered within authorization, and use the engagement's escalation process to obtain written direction before proceeding. Continuing with supposedly non-destructive requests still risks unauthorized access. The hosting provider is not the engagement authority, and waiting until the report to disclose access would violate the client's stop condition and responsible testing practice.

Question 2

New Single answer

Topic: Engagement Management

Skill tested: Prioritizes actionable risk findings and remediation guidance in penetration test reporting.

A financial services client receives a draft report containing 42 findings from a test of a customer portal. Several low-risk issues have extensive screenshots, while a confirmed unauthenticated SQL injection exposes customer records but appears briefly in the technical appendix. Executives need to decide whether to disable the affected feature before the next business day; engineers need enough detail to reproduce the defect. The report must distinguish validated findings from scanner output. Which revision best meets these needs?

Correct Answer: A. Lead with a concise executive summary of business impact and urgent action, then provide a validated technical finding with evidence, reproduction context, and specific remediation guidance.
Explanation:

A useful penetration test report serves distinct audiences: executives need a clear risk decision and business impact, while engineers need reproducible evidence and practical remediation guidance. The confirmed exposure should be prominent and clearly distinguished from unvalidated scanner results. A scanner export does not replace analyst validation, and an informal message or omission weakens traceability and governance. Prioritizing minor findings ahead of a verified data-exposure issue obscures the decision the client must make promptly.

Question 3

New Multiple answers

Topic: Engagement Management

Skill tested: Coordinates peer review and escalation for potentially disruptive test activity.

During an authorized internal assessment, a tester identifies an exploit that may provide access to a domain controller but could trigger an endpoint containment response. The rules of engagement permit exploitation only after client notification for actions likely to disrupt operations. The assigned client contact is temporarily unavailable, and a backup contact and a designated technical peer reviewer are listed in the engagement plan. The test window has 40 minutes remaining. Which TWO actions are most appropriate before attempting exploitation? Select TWO.

Correct Answer: B. Have the technical peer review the exploit plan, expected impact, and rollback or stop conditions.; C. Contact the designated backup client contact and obtain the required approval or direction.
Explanation:

The plan requires notification before potentially disruptive exploitation, so the tester must reach the named backup contact rather than infer approval from general authorization. A peer review helps assess technical risk, safeguards, and stopping criteria before execution. Proceeding immediately disregards the specific engagement control; reducing speed does not make an unapproved action acceptable. Disabling containment without documented client direction creates additional operational and accountability risks.

Question 4

New Single answer

Topic: Reconnaissance and Enumeration

Skill tested: Uses DNS records and zone-transfer behavior to guide authorized DNS enumeration.

A tester is mapping a company's authorized external domain. Public DNS queries reveal several hosts, and the team wants to determine whether the authoritative name server exposes additional records through a misconfigured zone transfer. The client has explicitly authorized DNS enumeration but prohibits broad scanning of third-party infrastructure. Which approach best tests this exposure while respecting the scope?

Correct Answer: A. Request an AXFR transfer from the domain's authoritative name server and assess whether it returns the zone.
Explanation:

An AXFR request to the authoritative name server directly tests whether that server improperly permits a DNS zone transfer, and the action is within the stated DNS-enumeration scope. A recursive resolver is not the authoritative target for this test. Broad scanning of registrar or provider infrastructure could affect or probe third parties outside authorization. The goal is to test the company's DNS configuration, not expand the target set based on hosting relationships.

Question 5

New Multiple answers

Topic: Reconnaissance and Enumeration

Skill tested: Combines passive OSINT and scoped service discovery without exceeding authorization.

A consulting team must prepare an external attack-surface inventory for a client before active testing begins. The rules of engagement authorize passive collection against public sources and active service discovery only against a supplied list of client-owned IP ranges. A Shodan search shows a possible staging host on a cloud provider's shared address space, while certificate transparency records reveal several subdomains not on the initial list. Which TWO actions best support safe, accurate reconnaissance? Select TWO.

Correct Answer: B. Correlate public DNS and certificate transparency data with client ownership records, then flag unconfirmed assets for client validation.; E. Use passive public-source data to identify candidate hosts and document the source and confidence of each observation.
Explanation:

Passive sources can identify candidate assets without directly probing them, but ownership and current operation must be validated before active testing. Correlating DNS and certificate data with client records and documenting confidence preserves useful context while respecting the supplied active-scope boundary. A shared cloud IP must not be scanned merely because a search engine associates it with the client. A domain name alone does not authorize active probing, and third-party banner data may be stale or misattributed.

Question 6

New Single answer

Topic: Reconnaissance and Enumeration

Skill tested: Modifies a reconnaissance script to safely normalize and validate target inputs.

An analyst adapts a Python script that checks HTTP response headers for a supplied list of authorized hostnames. Results are inconsistent because input lines may include whitespace, blank entries, or a URL scheme, and the script sometimes constructs malformed requests. The engagement allows requests only to an explicit hostname allowlist, and the analyst must not turn this utility into a crawler or port scanner. Which change is the best fit?

Correct Answer: D. Strip whitespace, parse each input as a URL or hostname, normalize to a hostname, validate it against the allowlist, and make only the intended HTTP request.
Explanation:

Input normalization and strict scope validation address the stated inconsistency without expanding the script's behavior. Parsing optional schemes and whitespace prevents malformed URL construction, while an allowlist check ensures requests remain within authorization. Scanning ports changes the tool's function and exceeds the requested task. Removing the allowlist and following redirects could send traffic to out-of-scope destinations, while indefinite retries can create unnecessary load and do not correct parsing errors.

Question 7

New Single answer

Topic: Vulnerability Discovery and Analysis

Skill tested: Chooses authenticated scanning to assess patch and configuration exposure accurately.

A company is assessing 300 managed Linux servers for missing security updates and insecure local configurations. A prior unauthenticated scan reported few issues, but administrators suspect the scanner could not inspect installed packages or local configuration files. The test team has been given a dedicated, least-privilege scanning account and must avoid installing persistent agents. Which scanning approach will provide the strongest evidence for the requested assessment?

Correct Answer: A. Run an authenticated vulnerability scan using the supplied account and verify that credentialed checks succeed.
Explanation:

Authenticated scanning can inspect local package and configuration state that an external probe cannot reliably infer. The team should use the provided least-privilege account and confirm that credentialed checks actually succeeded; otherwise, results may silently resemble an unauthenticated scan. Increasing network scan intensity does not provide local visibility. DAST assesses runtime application behavior, while SAST examines source code or related artifacts; neither substitutes for host patch and configuration assessment.

Question 8

New Single answer

Topic: Vulnerability Discovery and Analysis

Skill tested: Validates scanner findings by reproducing the suspected issue and checking configuration evidence.

A vulnerability scanner reports that an internal web server permits directory listing on a sensitive path. The application team says the path returns a custom error page, and the scanner's evidence shows a 200 response containing the site's standard template but no file names. The report is due today, and the team must avoid labeling a false positive as exploitable. What is the most appropriate next step?

Correct Answer: C. Validate the path manually with an authorized request, inspect the response for actual directory contents, and compare behavior with the server configuration.
Explanation:

A 200 response alone does not demonstrate directory listing; the response must expose directory contents or otherwise establish the behavior. Manual validation within scope, alongside configuration review, can distinguish a genuine listing from a generic application template or custom error response. Raising severity does not validate the issue. Conversely, dismissing the finding solely on the application team's assertion would be premature; the evidence should determine whether it is confirmed, downgraded, or closed.

Question 9

New Single answer

Topic: Attacks and Exploits

Skill tested: Identifies and safely validates VLAN hopping exposure caused by switch-port configuration.

During an authorized test in a branch office, a tester finds a user access switch port connected to an employee workstation. The port is intended to carry only the workstation's access VLAN, but a lab-approved assessment indicates that the switch may negotiate trunking. The team must confirm the risk without disrupting production traffic or attempting to access other departments' systems. Which action is the best next step?

Correct Answer: A. Review the port configuration with the network owner and use a controlled, approved validation on the designated test port to determine whether trunk negotiation is enabled.
Explanation:

The suspected weakness is an access port that may negotiate trunking, so configuration review and controlled validation on a designated test port establish the condition while limiting operational impact. A live unauthorized switch or broad double-tagging activity can disrupt service and cross the stated boundary. The access-port label alone does not prove the configuration is safe; dynamic negotiation settings and the actual switch configuration must be checked. The test should not expand into probing other departments.

Question 10

New Multiple answers

Topic: Attacks and Exploits

Skill tested: Assesses SQL injection impact using controlled, non-destructive validation techniques.

A web application assessment identifies a search parameter that appears to alter a database query. The client authorizes testing against a staging copy containing synthetic records and prohibits data modification, extraction of real customer data, or denial-of-service activity. The tester needs to establish whether the issue is SQL injection and provide reproducible evidence for remediation. Which TWO actions are appropriate? Select TWO.

Correct Answer: C. Validate against the authorized staging copy using synthetic data and retain the minimal evidence needed to demonstrate the behavior.; E. Use benign, controlled input variations that test query behavior and document a reproducible differential response without modifying records.
Explanation:

Controlled input variations can show that user input changes query behavior without altering data, and using the authorized staging copy with synthetic records honors the engagement constraints. Minimal reproducible evidence is sufficient to support remediation. Destructive production tests, high-concurrency delays, and bulk data extraction exceed the authorization and create unnecessary impact. Demonstrating exploitability does not require collecting real customer records or degrading service.

Question 11

New Single answer

Topic: Attacks and Exploits

Skill tested: Recognizes credential-stuffing indicators and selects controls that mitigate account takeover.

A consumer service sees a sharp increase in failed logins followed by successful access to accounts from many residential IP addresses. The attempts use valid username-password pairs found in earlier credential dumps, and the attacker rotates IPs to evade simple per-address limits. The security team is authorized to test the login workflow but must not lock out real users during peak hours. Which defensive recommendation most directly addresses the observed attack while limiting user disruption?

Correct Answer: D. Require multifactor authentication for risky sign-ins, detect password reuse patterns across accounts, and apply adaptive rate controls based on account and behavior signals.
Explanation:

Credential stuffing relies on reused valid credentials and distributed attempts, so layered controls should evaluate risk and account behavior rather than depend on source IP alone. Multifactor authentication can prevent password-only account takeover, while adaptive rate controls and detection of correlated login patterns address rotation and reduce reliance on disruptive blanket lockouts. Blocking a few IPs is easily evaded. A sudden authentication shutdown is impractical, and password length or account lockout alone does not stop attackers using already-compromised credentials.

Question 12

New Single answer

Topic: Attacks and Exploits

Skill tested: Evaluates cloud metadata exposure and least-privilege IAM controls in a workload.

A security assessment of a cloud-hosted application finds that a server-side request feature can reach the instance metadata service. Testing is limited to a dedicated assessment instance, and the client prohibits retrieving production secrets. The workload's attached identity role has broad permissions across several storage buckets. The client asks for the most important corrective actions to reduce both the immediate exposure and potential impact if it recurs. Which recommendation is best?

Correct Answer: A. Restrict server-side requests to approved destinations, apply the cloud platform's metadata-service protections, and reduce the workload role to the minimum required permissions.
Explanation:

The finding combines a path to metadata with an over-privileged workload identity. Restricting server-side request destinations and enforcing the platform's available metadata protections reduce access to the metadata service; least-privilege permissions limit consequences if access is obtained. Credential rotation alone does not remove the vulnerable path or excessive authorization. Disabling logs harms detection, and subnet placement or network ACLs alone are not a substitute for application-layer request controls and scoped identity permissions.

Question 13

New Multiple answers

Topic: Attacks and Exploits

Skill tested: Explains prompt-injection risks and evaluates controls that separate untrusted input from model instructions.

A company's internal support assistant uses a language model to summarize retrieved tickets and can call an approved ticketing API. During an authorized assessment, a crafted ticket causes the model to ignore its summarization task and request ticket exports beyond the user's permissions. The application team cannot retrain or replace the model this quarter, and the assistant must retain its API integration. Which TWO changes most directly reduce the risk? Select TWO.

Correct Answer: D. Treat retrieved ticket text as untrusted input and constrain the model's instructions and tool-use policy accordingly.; E. Enforce authorization in the API independently of model output, using the requesting user's allowed scope.
Explanation:

Prompt injection can make a model treat hostile retrieved content as instructions, so the application should treat that content as untrusted and constrain tool use. More importantly, the API must independently enforce authorization for the requesting user; model-generated intent must never grant access. Broad service-account access magnifies the impact. Hiding prompts is not a reliable security boundary, and disabling audit logs removes an important way to detect and investigate misuse.