PT0-002 Exam Details

  • Exam Code
    :PT0-002
  • Exam Name
    :CompTIA PenTest+
  • Certification
    :CompTIA Certifications
  • Vendor
    :CompTIA
  • Total Questions
    :455 Q&As
  • Last Updated
    :May 31, 2026

CompTIA PT0-002 Online Questions & Answers

  • Question 181:

    A penetration tester is reviewing the logs of a proxy server and discovers the following URLs: https://test.comptia.com/profile.php?userid=1546 https://test.cpmptia.com/profile.php?userid=5482 https://test.comptia.com/profile.php?userid=3618 Which of the following types of vulnerabilities should be remediated?

    A. Insecure direct object reference
    B. Improper error handling
    C. Race condition
    D. Weak or default configurations

  • Question 182:

    A penetration tester runs the following command:

    nmap -p- -A 10.0.1.10

    Given the execution of this command, which of the following quantities of ports will Nmap scan?

    A. 1,000
    B. 1,024
    C. 10,000
    D. 65,535

  • Question 183:

    A penetration tester discovered a code repository and noticed passwords were hashed before they were stored in the database with the following code? salt = `123' hash = hashlib.pbkdf2_hmac(`sha256', plaintext, salt, 10000) The tester recommended the code be updated to the following salt = os.urandom(32) hash = hashlib.pbkdf2_hmac(`sha256', plaintext, salt, 10000).

    Which of the following steps should the penetration tester recommend?

    A. Changing passwords that were created before this code update
    B. Keeping hashes created by both methods for compatibility
    C. Rehashing all old passwords with the new code
    D. Replacing the SHA-256 algorithm to something more secure

  • Question 184:

    A customer adds a requirement to the scope of a penetration test that states activities can only occur during normal business hours.

    Which of the following BEST describes why this would be necessary?

    A. To meet PCI DSS testing requirements
    B. For testing of the customer's SLA with the ISP
    C. Because of concerns regarding bandwidth limitations
    D. To ensure someone is available if something goes wrong

  • Question 185:

    A penetration testing team has gained access to an organization's data center, but the team requires more time to test the attack strategy.

    Which of the following wireless attack techniques would be the most successful in preventing unintended interruptions?

    A. Captive portal
    B. Evil twin
    C. Bluejacking
    D. Jamming

  • Question 186:

    DRAG DROP

    Instructions:

    Analyze the code segments to determine which sections are needed to complete a port scanning script. Drag the appropriate elements into the correct locations to complete the script.

    If at any time you would like to bring back the initial state of the simulation, please click the reset all button.

    During a penetration test, you gain access to a system with a limited user interface. This machine appears to have access to an isolated network that you would like to port scan.

    Select and Place:

  • Question 187:

    A penetration tester is preparing a credential stuffing attack against a company's website.

    Which of the following can be used to passively get the most relevant information?

    A. Shodan
    B. BeEF
    C. HavelBeenPwned
    D. Maltego

  • Question 188:

    A new client hired a penetration-testing company for a month-long contract for various security assessments against the client's new service. The client is expecting to make the new service publicly available shortly after the assessment is complete and is planning to fix any findings, except for critical issues, after the service is made public. The client wants a simple report structure and does not want to receive daily findings.

    Which of the following is most important for the penetration tester to define FIRST?

    A. Establish the format required by the client.
    B. Establish the threshold of risk to escalate to the client immediately.
    C. Establish the method of potential false positives.
    D. Establish the preferred day of the week for reporting.

  • Question 189:

    During a security assessment, a penetration tester decides to write the following Python script:

    import requests x= ['OPTIONS', 'TRACE', 'TEST'l for y in x;

    z - requests.request(y, 'http://server.net') print(y, z.status_code, z.reason)

    Which of the following is the penetration tester trying to accomplish? (Select two).

    A. Web server denial of service
    B. HTTP methods availability
    C. 'Web application firewall detection
    D. 'Web server fingerprinting
    E. Web server error handling
    F. Web server banner grabbing

  • Question 190:

    Given the following script:

    Which of the following BEST characterizes the function performed by lines 5 and 6?

    A. Retrieves the start-of-authority information for the zone on DNS server 10.10.10.10
    B. Performs a single DNS query for www.comptia.org and prints the raw data output
    C. Loops through variable b to count the results returned for the DNS query and prints that count to screen
    D. Prints each DNS query result already stored in variable b

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only CompTIA exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your PT0-002 exam preparations and CompTIA certification application, do not hesitate to visit our Vcedump.com to find your solutions here.