Free practice · No sign-up required

PenTest+ free practice test

15 questions with answer explanations. Choose an answer below to begin.

Question 1 of 15

What is the primary purpose of reconnaissance in a penetration test?

Show hint

Given a scenario, determine the appropriate phase of a penetration test

0/15 answered · Bookmark questions to review later. Focus the practice area to use keys 1–9 and Enter.

Learn by doing

Put your answers into practice

Use official documentation and hands-on labs to work through topics you missed.

Explore all study resources →
OWASP Juice Shop

An intentionally vulnerable application for practicing web security in a controlled lab. Useful supplementary work for application-security topics.

Try it: Run a local, isolated instance using the project's instructions. Complete one introductory challenge, explain its root cause, and write the server-side control that would prevent it.

Open-source application; can run locally. Keep the intentionally vulnerable app isolated from public networks.

OWASP Web Security Testing Guide

OWASP's testing methodology adds structure to application-security review. It supplements exam objectives rather than replacing a certification owner's guide.

Try it: Choose one testing category relevant to a missed question. In your own lab, record the test precondition, expected secure behavior, evidence, and remediation.

Free to read. Perform exercises only in your own lab or an explicitly authorized environment.

All questions and explanations

Prefer to read at your own pace? Work through each question below, then open its answer to check your reasoning. You can link directly to a question or print this reference.

  1. What is the primary purpose of reconnaissance in a penetration test?

    1. Gathering preliminary information about the target

    2. Exploiting identified vulnerabilities

    3. Installing persistence mechanisms

    4. Covering tracks after the engagement

    Show answer and explanation

    Correct answer

    • Gathering preliminary information about the target

    Reconnaissance involves collecting publicly available and non-public information to understand the target environment. This phase helps in identifying potential attack vectors before active testing begins.

  2. Which of the following best describes a phishing attack?

    1. Tricking users into revealing sensitive information

    2. Sending high-volume traffic to disrupt services

    3. Exploiting software buffer overflows

    4. Intercepting unencrypted wireless traffic

    Show answer and explanation

    Correct answer

    • Tricking users into revealing sensitive information

    Phishing relies on social engineering to deceive individuals into providing confidential data, often through fraudulent emails or websites. It does not rely on technical system vulnerabilities.

  3. Why is it important to define the scope of a penetration test?

    1. To limit the testing area and reduce legal risk

    2. To ensure all systems are compromised

    3. To increase the duration of the engagement

    4. To avoid using automated tools

    Show answer and explanation

    Correct answer

    • To limit the testing area and reduce legal risk

    A clearly defined scope protects both the tester and the organization by outlining what is authorized. It helps prevent unintended impacts and legal issues during the assessment.

  4. What does the principle of least privilege aim to achieve?

    1. Minimize the attack surface for user accounts

    2. Maximize system performance

    3. Ensure all users have administrative access

    4. Simplify password management

    Show answer and explanation

    Correct answer

    • Minimize the attack surface for user accounts

    Least privilege restricts user and application access to the minimum necessary to perform their tasks. This reduces the potential impact of a compromised account.

  5. Which tool is commonly used for network mapping during a penetration test?

    1. Nmap

    2. Wireshark

    3. Burp Suite

    4. John the Ripper

    Show answer and explanation

    Correct answer

    • Nmap

    Nmap is widely used to discover hosts and services on a network, providing a map of the target environment. Other tools serve different functions such as packet analysis or vulnerability scanning.

  6. What is a common goal of post-exploitation activities?

    1. Maintaining access for future operations

    2. Announcing the compromise publicly

    3. Restoring all modified systems

    4. Disabling all logging mechanisms immediately

    Show answer and explanation

    Correct answer

    • Maintaining access for future operations

    Post-exploitation focuses on maintaining control, gathering additional evidence, and understanding the depth of access. This phase helps in assessing the true impact of the compromise.

  7. Which practice helps in identifying insecure storage of credentials in an application?

    1. Checking for hardcoded secrets in source code

    2. Monitoring network latency

    3. Increasing session timeout values

    4. Enabling multi-factor authentication

    Show answer and explanation

    Correct answer

    • Checking for hardcoded secrets in source code

    Hardcoded or poorly stored credentials can be discovered through code review and configuration analysis. This is a common finding during security assessments of web applications.

  8. What is the purpose of using a proxy tool during web application testing?

    1. To intercept and modify HTTP requests

    2. To increase server processing speed

    3. To encrypt database connections

    4. To generate random user agents

    Show answer and explanation

    Correct answer

    • To intercept and modify HTTP requests

    Proxy tools allow testers to inspect, modify, and replay web traffic between the client and server. This helps in identifying logic flaws and input validation issues.

  9. Which activity is most likely to be performed during the enumeration phase of a network assessment?

    1. Identifying live hosts and open ports

    2. Installing a rootkit on compromised systems

    3. Destroying logs to avoid detection

    4. Encrypting exfiltrated data

    Show answer and explanation

    Correct answer

    • Identifying live hosts and open ports

    Enumeration involves gathering detailed information about network resources, such as user accounts, shares, and services. Identifying live hosts and open ports is typically part of discovery and enumeration.

  10. Question 10

    Link to question

    What is a common mitigation for SQL injection vulnerabilities?

    1. Using parameterized queries

    2. Increasing session timeouts

    3. Disabling JavaScript in browsers

    4. Allowing unrestricted file uploads

    Show answer and explanation

    Correct answer

    • Using parameterized queries

    Parameterized queries ensure that user input is treated as data rather than executable code, effectively preventing SQL injection. Other options do not address the root cause of SQL injection.

  11. Question 11

    Link to question

    Which statement best describes the role of a pivot in a penetration test?

    1. Using a compromised system to access additional network segments

    2. Encrypting all traffic to avoid detection

    3. Reporting findings to stakeholders immediately

    4. Replacing default credentials on all devices

    Show answer and explanation

    Correct answer

    • Using a compromised system to access additional network segments

    Pivoting allows testers to leverage a compromised host as a gateway to reach otherwise inaccessible systems within the target network. It is a common technique to expand access during internal or post-exploitation phases.

  12. Question 12

    Link to question

    What is a typical outcome of a vulnerability scan?

    1. A list of identified weaknesses with severity ratings

    2. Exploitation of all discovered vulnerabilities

    3. Permanently blocking all network traffic

    4. Automatic patching of affected systems

    Show answer and explanation

    Correct answer

    • A list of identified weaknesses with severity ratings

    Vulnerability scanners identify potential weaknesses and often assign severity ratings to help prioritize remediation. They do not automatically exploit or patch systems.

  13. Question 13

    Link to question

    Which practice is recommended to reduce the risk of credential theft?

    1. Implementing multi-factor authentication

    2. Using the same password across multiple systems

    3. Storing passwords in plain text configuration files

    4. Sharing accounts among team members

    Show answer and explanation

    Correct answer

    • Using the same password across multiple systems

    Multi-factor authentication adds an additional verification layer, making it significantly harder for attackers to use stolen credentials. The other options increase risk.

  14. Question 14

    Link to question

    What is the purpose of documenting findings during a penetration test?

    1. To provide clear evidence and remediation guidance

    2. To increase the complexity of the assessment

    3. To avoid communicating with the client

    4. To reduce the time spent in the reporting phase

    Show answer and explanation

    Correct answer

    • To provide clear evidence and remediation guidance

    Well-documented findings help stakeholders understand the issues, their impact, and how to remediate them. Clear documentation supports effective risk management and follow-up validation.

  15. Question 15

    Link to question

    Which technique is commonly used to evade basic network-based intrusion detection systems?

    1. Fragmenting packets to avoid signature detection

    2. Sending traffic only during business hours

    3. Using strong encryption for all communications

    4. Increasing the TTL value on packets

    Show answer and explanation

    Correct answer

    • Fragmenting packets to avoid signature detection

    Packet fragmentation can break up malicious payloads across multiple packets, helping evade signature-based detection mechanisms that rely on inspecting complete packets.

Read all flashcards

Recall the answer before opening each card.

What is the primary goal of reconnaissance in a penetration test?

To gather preliminary information about the target without direct interaction, identifying potential attack vectors before active testing begins.

How does phishing obtain sensitive information?

By tricking users into revealing sensitive data through deceptive emails or websites, exploiting social engineering rather than technical vulnerabilities.

Why is scoping a penetration test important?

To limit the testing area and reduce legal risk by clearly defining authorized targets, preventing unintended impact during the assessment.

What does the principle of least privilege achieve?

Minimizes the attack surface for user accounts by restricting access to only what is necessary, reducing the impact of a compromise.

Which tool is commonly used for network mapping?

Nmap is used to discover hosts and services on a network, providing a map of the target environment.

What is a common goal of post-exploitation?

Maintaining access for future operations and gathering additional evidence to assess the depth of compromise.

How can insecure credential storage be identified?

By checking for hardcoded secrets in source code through code review and configuration analysis.

What is the purpose of a proxy tool in web testing?

To intercept and modify HTTP requests to inspect, modify, and replay traffic for identifying logic flaws and input validation issues.

What activity is typical during enumeration?

Identifying live hosts and open ports to gather detailed information about network resources like user accounts and services.

What is a common mitigation for SQL injection?

Using parameterized queries to treat user input as data, not executable code, preventing injection attacks.

What is the role of a pivot in a penetration test?

Using a compromised system to access additional network segments, expanding reach to otherwise inaccessible systems.

What is a typical outcome of a vulnerability scan?

A list of identified weaknesses with severity ratings to prioritize remediation.

Which practice reduces the risk of credential theft?

Using multi-factor authentication adds an additional verification layer, making stolen credentials harder to use.

Why document findings during a penetration test?

To provide clear evidence and remediation guidance, supporting effective risk management and follow-up validation.

How does packet fragmentation help evade IDS?

By breaking up malicious payloads across multiple packets, avoiding signature detection that relies on inspecting complete packets.

What is the difference between reconnaissance and enumeration?

Reconnaissance collects preliminary info without direct interaction; enumeration is active extraction of detailed data from discovered hosts.

Why is parameterized query the best defense against SQL injection?

It separates code from data, ensuring user input is treated as data only, so it cannot alter SQL command structure.

What does a vulnerability scanner not do?

It does not automatically exploit or patch systems; it only identifies potential weaknesses and assigns severity.

What makes phishing different from other social engineering?

Phishing specifically uses deceptive electronic communications (email, websites) to trick users into revealing sensitive info.

How does least privilege limit damage from a compromised account?

By granting only necessary permissions, an attacker cannot access sensitive resources beyond the account's scope.

Active recall deck

Practice PenTest+ with real flashcards

Read the prompt, commit to an answer, then flip the card. Move through the deck at your own pace and repeat any topic that does not come back quickly.

20 free cards

Card 1 of 20

1 reviewed this session

Connect the concepts

Your PenTest+ study mind map

Open a branch to connect a topic with its practice questions and explanations. Use the map to choose your next review topic.

PenTest+15 questions in this practice set
Given a scenario, determine the appropriate phase of a penetration test(1)
Compare common social engineering techniques and their methods(1)
Given a scenario, determine the importance of scoping and planning activities(1)
Given a scenario, select the security principle that addresses excessive privileges(1)
Given a scenario, select the appropriate tool for network discovery(1)
Given a scenario, identify objectives of post-exploitation phases(1)
Given a scenario, identify techniques to discover authentication weaknesses(1)
Given a scenario, identify the use of intermediary tools in web testing(1)
Given a scenario, determine activities associated with the enumeration phase(1)
Given a scenario, select appropriate controls for injection flaws(1)
Given a scenario, identify techniques used to move laterally within a network(1)
Given a scenario, interpret the results of a vulnerability scan(1)
More practice connections(3)
Exam-focused analysis

What this PenTest+ practice set measures

This is an analysis of the practice bank, not a claim about the vendor's live exam blueprint. Use it to identify the knowledge, judgment, and recall patterns exercised here, then verify your coverage against the current official exam guide.

Penetration Testing Phases and Scoping

This practice bank emphasizes understanding the sequence and objectives of penetration testing phases. Reconnaissance (Question 1) is about gathering preliminary information. Enumeration (Question 9) involves identifying live hosts and open ports. Post-exploitation (Question 6) aims to maintain access. Scoping (Question 3) limits testing area to reduce legal risk. Each phase has distinct activities and goals; misidentifying a phase can lead to incorrect subsequent decisions.

  • Reconnaissance is the initial information-gathering step; it does not involve active interaction with the target.
  • Enumeration follows scanning; it extracts detailed data like user accounts and services from discovered hosts.
  • Post-exploitation focuses on maintaining access and assessing impact after initial compromise.
  • Scope definition protects both tester and client by setting authorized boundaries.

Social Engineering and Security Principles

Social engineering attacks like phishing (Question 2) exploit human psychology to trick users into revealing sensitive information. The principle of least privilege (Question 4) minimizes attack surface by granting only necessary access. Both concepts require testers to recognize deceptive techniques and recommend access controls. Understanding why phishing works (trust manipulation) and how least privilege reduces damage from compromised accounts is critical.

  • Phishing relies on social engineering, not technical flaws; it deceives users via email or websites.
  • Least privilege restricts user rights to the minimum needed for their role, limiting potential breach impact.
  • Multi-factor authentication is a strong credential theft mitigation (Question 13), not a social engineering technique.

Network and Web Application Testing Tools

Tools like Nmap (Question 5) are used for network mapping to discover hosts and services. Proxy tools (Question 8) intercept and modify HTTP requests to test web applications. Lateral movement via pivoting (Question 11) uses a compromised system to access other network segments. Evasion techniques such as packet fragmentation (Question 15) help avoid detection by intrusion detection systems. Selecting the correct tool for each task is essential.

  • Nmap is the standard tool for network discovery; it identifies live hosts and open ports.
  • Proxy tools like Burp Suite allow testers to inspect and modify web traffic for vulnerability analysis.
  • Pivoting expands access by routing traffic through a compromised host to internal networks.
  • Packet fragmentation splits payloads across multiple packets to evade signature-based IDS.

Vulnerability Identification and Secure Development

Identifying vulnerabilities like hardcoded credentials (Question 7) requires code review and configuration checks. SQL injection (Question 10) is mitigated by parameterized queries, which separate data from code. Vulnerability scans (Question 12) produce lists of weaknesses with severity ratings. Thorough documentation (Question 14) provides evidence and remediation guidance. These practices help in reporting and fixing security flaws.

  • Hardcoded secrets in source code indicate poor credential storage; code review can uncover them.
  • Parameterized queries prevent SQL injection by ensuring user input is data, not executable code.
  • Vulnerability scanners output prioritized lists of weaknesses but do not exploit or patch them.
  • Clear documentation supports effective risk management and follow-up validation.

Study workflow

Turn one PenTest+ attempt into a study plan

  1. 1

    Define Scope and Rules of Engagement

    Before testing, collaborate with stakeholders to outline targets, exclusions, testing windows, and legal boundaries. Document signed authorization to avoid legal issues. This step ensures all parties agree on the assessment's boundaries and reduces risk of unintended damage.

  2. 2

    Perform Passive Reconnaissance

    Collect publicly available information using OSINT techniques: search engines, DNS records, social media, job postings. Avoid direct interaction with target systems during this phase. Document all findings for later use in active tests.

  3. 3

    Scan and Enumerate Network Services

    Use tools like Nmap to identify live hosts, open ports, and running services. For each service, enumerate versions and configurations. Perform additional enumeration for user accounts, shares, and other details. Record all data to plan exploitation.

  4. 4

    Conduct Controlled Exploitation and Pivoting

    Attempt to exploit discovered vulnerabilities in a safe manner. After gaining initial access, use pivoting to move laterally through the network. Maintain access while documenting each step. Avoid destructive actions unless authorized.

  5. 5

    Document and Report Findings

    Compile all findings into a clear report: executive summary, technical details, risk ratings, and remediation recommendations. Include evidence like screenshots and logs. Present to stakeholders and validate fixes in a follow-up assessment.

FAQ

Questions about this exam practice page

Clear boundaries on what the bank covers, how to use it, and where official vendor information still matters.

What is the difference between a vulnerability scan and a penetration test?+

A vulnerability scan is an automated process that identifies potential weaknesses and assigns severity ratings. A penetration test simulates actual attacks to exploit flaws, assess real risk, and test defenses. Scans are broader but less thorough; pen tests are deeper and manual.

How does pivoting work during a penetration test?+

Pivoting uses a compromised host as a proxy to access other systems that are not directly reachable. The tester routes traffic through the controlled machine, effectively expanding the attack surface within the target network. It is essential for assessing internal security.

What are common evasion techniques to avoid intrusion detection systems?+

Common evasion techniques include packet fragmentation (splitting payloads), encoding payloads (e.g., base64), using SSL encryption, and varying timing to avoid signature detection. These methods help evade signature-based IDS but may not bypass advanced behavior-based systems.

Why is the principle of least privilege important in penetration testing?+

Least privilege limits accounts to minimal necessary permissions, reducing the blast radius if compromised. During a pen test, understanding this principle helps testers identify excessive privileges and recommend access controls to mitigate potential lateral movement or privilege escalation.

What should be included in a penetration test report?+

A penetration test report should include an executive summary, scope, methodology, detailed findings with severity ratings, evidence (screenshots, logs), and actionable remediation steps. It must be clear for both technical and non-technical stakeholders to support risk management decisions.

Keep studying

Build the next review session

Browse another free bank or use the study strategy guide to turn your misses into spaced review.