Question 80
The test team is analyzing this evidence from a controlled environment: A client asks whether a public search engine has indexed confidential staging pages, and the tester must avoid publishing any harvested content. Which recommendation MOST directly fits this evidence?
- Identify robots.txt as discovery guidance, not authentication or access control.
- Corroborate historical records against current authorized assets before active testing.
- Restrict collection to explicitly authorized hosts and skip external hyperlinks without approval.
- Inspect authorized search-result metadata and report only minimal evidence of sensitive indexing.
Explanation
Correct Answer
D:Search visibility can expose confidential assets without giving assessors permission to redistribute contents. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
A:Identifying robots.txt as discovery guidance, not authentication or access control would not inspect authorized search-result metadata and report only minimal evidence of sensitive indexing.
B:Corroborate historical records against current authorized assets would not inspect authorized search-result metadata and report only minimal evidence of sensitive indexing.
C:Restricting collection to explicitly authorized hosts and skip external hyperlinks without approval would not inspect authorized search-result metadata and report only minimal evidence of sensitive indexing.
Question 81
In a formally authorized penetration test, the team observes: A permitted discovery scan marks a host reachable but the tester does not know which application protocol is listening on its approved ports. Which response is MOST appropriate for this finding?
- Perform a bounded service/version enumeration within the agreed host and port scope.
- Record the ambiguous UDP state and seek approved protocol-specific confirmation.
- Fingerprint the service response instead of inferring its protocol from port number alone.
- Report OS fingerprint uncertainty and corroborate with authorized service evidence.
Explanation
Correct Answer
A:Discovery of a live system does not identify the actual exposed application protocol. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
B:Recording the ambiguous UDP state and seek approved protocol-specific confirmation would not perform a bounded service/version enumeration within the agreed host and port scope.
C:Discovery of a live system does not identify the actual exposed application protocol.
D:Reporting OS fingerprint uncertainty and corroborate with authorized service evidence would not perform a bounded service/version enumeration within the agreed host and port scope.
Question 82
During a customer-approved security assessment, the tester finds: A synthetic retrieval assistant follows hidden text in a document that tells it to ignore the organization's data sharing policy. Which action BEST addresses this specific requirement?
- Identify prompt injection and require independent tool and data authorization checks.
- Identify data poisoning risk and recommend provenance validation and controlled dataset approval.
- Evaluate unnecessary mobile permissions and restrict access to the application's actual needs.
- Record the elevated mobile environment conditions and avoid generalizing without validation.
Explanation
Correct Answer
A:Untrusted retrieved content must not gain authority over the assistant's security boundaries. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
B:Identifying data poisoning risk and recommending provenance validation and controlled dataset approval would not identify prompt injection and require independent tool and data authorization checks.
C:Evaluating unnecessary mobile permissions and restricting access to the application's actual needs would not identify prompt injection and require independent tool and data authorization checks.
D:Recording the elevated mobile environment conditions and avoid generalizing without validation would not identify prompt injection and require independent tool and data authorization checks.
Question 83
A penetration-test report includes the following synthetic observation: A Terraform configuration would create a public object-store bucket, but no cloud resources have been deployed yet. What is the MOST defensible next step?
- Include a supported Kubernetes configuration and RBAC assessment within the agreed cluster scope.
- Run an infrastructure-as-code policy and static configuration review on the planned deployment.
- Scan the built container layers and their installed packages with an appropriate image scanner.
- Use approved secret scanning and revoke confirmed exposed test credentials through the owner.
Explanation
Correct Answer
B:IaC scanning can find an insecure desired state before it becomes a live exposure. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
A:Cluster control-plane and workload permissions are not observable from an unauthenticated network port sweep. IaC scanning can find an insecure desired state before it becomes a live exposure.
C:Container vulnerability analysis must examine the shipped image rather than source commits alone. IaC scanning can find an insecure desired state before it becomes a live exposure.
D:Exposed token values require careful containment, not just a code-quality warning. IaC scanning can find an insecure desired state before it becomes a live exposure.
Question 84
Within an isolated training lab, the analyst identifies: Executives receive a fifty-page penetration report filled with packet traces but cannot determine which business priorities require action. Which recommendation MOST directly fits this evidence?
- State methodology, assumptions, excluded targets and the limitations of the assessment.
- Redact secrets, verify generated statements and document approved AI-assisted reporting controls.
- Provide a concise executive summary identifying significant risks, affected processes and decisions.
- Include a detailed technical finding with affected assets, observed proof and safe reproduction conditions.
Explanation
Correct Answer
C:Leadership needs actionable risk and prioritization information before technical evidence details. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
A:Methodology and exclusions document the assessment, but they do not give executives a concise view of the most important business risks.
B:AI-assisted reporting controls protect the report process; they do not replace a decision-focused executive summary.
D:Detailed technical proof supports individual findings, but executives still need risks and priorities summarized for action.
Question 85
A penetration testing lead reviewing the approved scope learns that: A test web app constructs a database query by concatenating an untrusted search value, and a code review confirms that the value changes SQL syntax. Which response is MOST appropriate for this finding?
- Seek a repeatable safe, low-impact input-handling comparison before confirming injection.
- Recommend prepared statements and structured server-side input validation rather than fragile pattern blocking.
- Classify the weakness as SQL injection and recommend parameterized query execution.
- Identify command-injection exposure and recommend avoiding shell interpolation of user input.
Explanation
Correct Answer
C:Untrusted data merged into SQL structure can alter database commands instead of remaining a search value. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
A:Seek a repeatable safe, low-impact input-handling comparison would not classify the weakness as SQL injection and recommend parameterized query execution.
B:Recommending prepared statements and structured server-side input validation rather than fragile pattern blocking would not classify the weakness as SQL injection and recommend parameterized query execution.
D:Identifying command-injection exposure and recommending avoiding shell interpolation of user input would not classify the weakness as SQL injection and recommend parameterized query execution.
Question 86
During an approved security validation exercise, the following occurs: A test injected a harmless marker into a synthetic database row, but the final report says cleanup succeeded without checking the row state. Which action BEST addresses this specific requirement?
- Reconcile the test data against the baseline and obtain client validation of restoration.
- Apply agreed evidence retention and verified secure-disposal procedures.
- Use approved configuration records to restore and independently verify policy and telemetry state.
- Complete a documented cleanup checklist with artifact, access and service verification.
Explanation
Correct Answer
A:A cleanup command is not evidence that the original application data was restored correctly. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
B:Applying agreed evidence retention and verified secure-disposal procedures would not reconcile the test data against the baseline and obtain client validation of restoration.
C:A cleanup command is not evidence that the original application data was restored correctly.
D:Complete a documented cleanup checklist with artifact, access and service verification would not reconcile the test data against the baseline and obtain client validation of restoration.
Question 87
The customer asks the authorized assessor to evaluate this situation: An authorized lab test confirms an unexpected scheduled task reappears at login after the initial test process has ended. What is the MOST defensible next step?
- Investigate the task definition and creation history as a possible persistence mechanism.
- Review service installation evidence and distinguish tester-created persistence from approved system services.
- Examine the extension's persistence, installed permissions and approved provenance.
- Classify the entry as possible autorun persistence and review its creation and execution evidence.
Explanation
Correct Answer
A:Scheduled execution can reactivate unauthorized code after the original interactive session closes. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
B:Reviewing service installation evidence and distinguishing tester-created persistence from approved system services would not investigate the task definition and creation history as a possible persistence mechanism.
C:Examining the extension's persistence, installed permissions and approved provenance would not investigate the task definition and creation history as a possible persistence mechanism.
D:Classifying the entry as possible autorun persistence and reviewing its creation and execution evidence would not investigate the task definition and creation history as a possible persistence mechanism.
Question 88
The test team is analyzing this evidence from a controlled environment: An analyst finds unexpected access to a regulated payroll dataset while the project owner is unavailable. Which recommendation MOST directly fits this evidence?
- Use the agreed escalation path and share the minimum necessary evidence securely.
- Issue an agreed critical-finding alert with evidence, scope and immediate business risk.
- Arrange peer review and a repeatable authorized evidence-validation session.
- Distribute findings using an approved encrypted repository with role-specific access.
Explanation
Correct Answer
A:Sensitive findings require timely authorized notification without spreading confidential records to unapproved recipients. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
B:Sensitive findings require timely authorized notification without spreading confidential records to unapproved recipients.
C:Independent review helps distinguish an actual authorization failure from an incomplete or misleading observation; sensitive findings require timely authorized notification without spreading confidential records to unapproved recipients.
D:Exploit evidence and sensitive asset details need controlled dissemination that reflects stakeholder responsibilities; sensitive findings require timely authorized notification without spreading confidential records to unapproved recipients.
Question 89
In a formally authorized penetration test, the team observes: An access-control review finds one badge identifier shared among many contractors and no individual entry attribution. Which response is MOST appropriate for this finding?
- Report the observed mechanical exposure and do not attempt an unauthorized lock bypass.
- Recommend individual revocable credentials and appropriate physical access-event logging.
- Document the technology weakness and defer cloning tests pending explicit authorization.
- Recommend protected key custody and role-based physical access procedures.
Explanation
Correct Answer
B:Shared access tokens prevent reliable accountability and incident review after facility entry. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
A:Physical penetration testing remains bounded by signed test techniques and location permissions. Shared access tokens prevent reliable accountability and incident review after facility entry.
C:Recognizing a cloning risk does not justify making duplicate physical credentials without permission. Shared access tokens prevent reliable accountability and incident review after facility entry.
D:A strong lock provides limited security when authorized keys are readily available to anyone nearby. Shared access tokens prevent reliable accountability and incident review after facility entry.
Question 90
During a customer-approved security assessment, the tester finds: A review shows a trunk misconfiguration allowing traffic from an unauthorized VLAN into a protected administrative segment. Which action BEST addresses this specific requirement?
- Report the VLAN isolation weakness and recommend explicit trunk and allowed-VLAN controls.
- Confirm routing and firewall enforcement before claiming a guest-to-finance pivot exists.
- Correlate tested source path, filtering rule and actual endpoint response.
- Stop disruptive packet crafting and coordinate vendor remediation rather than replaying the packet in production.
Explanation
Correct Answer
A:Logical segmentation can fail when switch port negotiation and tagging rules are not constrained. Any follow-up test must stay within the documented engagement authorization.
Incorrect Answers
B:Confirming routing and firewall enforcement would not report the VLAN isolation weakness and recommend explicit trunk and allowed-VLAN controls.
C:Correlating tested source path, filtering rule and actual endpoint response would not report the VLAN isolation weakness and recommend explicit trunk and allowed-VLAN controls.
D:Stopping disruptive packet crafting and coordinate vendor remediation rather than replaying the packet in production would not report the VLAN isolation weakness and recommend explicit trunk and allowed-VLAN controls.
CompTIA PenTest+ (PT0-003) Practice Tests