Question 473 of 509
Information Gathering and Vulnerability ScanningmediumMultiple ChoiceObjective-mapped

Quick Answer

The correct choice is discovering open ports and services on public IP ranges, as Shodan functions as a specialized search engine that continuously scans the entire internet and indexes the banners returned by connected devices. This makes it an invaluable tool for the reconnaissance phase of a penetration test, because those banners reveal exactly which ports are open and which services—such as web servers, databases, or industrial control systems—are running on a target’s public-facing infrastructure. On the CompTIA PenTest+ PT0-002 exam, this question tests your understanding of passive reconnaissance tools and their primary purpose; a common trap is confusing Shodan with a vulnerability scanner like Nessus or a social-engineering tool like theHarvester. Remember that Shodan tells you what is exposed, not what is vulnerable—it maps the attack surface, not the weaknesses. A useful memory tip: think of Shodan as a “banner billboard” for the internet, showing you every sign a device posts publicly.

PT0-002 Practice Question: Information Gathering and Vulnerability Scanning

This PT0-002 practice question tests your understanding of information gathering and vulnerability scanning. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. A key principle to apply: shodan is a search engine for internet-connected devices.. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A penetration tester is performing reconnaissance on a target organization and uses Shodan to find internet-facing devices. Which of the following is the BEST use case for Shodan in this context?

Clue words in this question

Noticing these words before you look at the options changes how you read each choice.

  • Clue: "best"

    Why it matters: Signals that multiple options may be partially correct. Choose the option that most directly solves the exact problem described, not the one that sounds most complete.

Question 1mediummultiple choice
Full question →

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Discovering open ports and services on public IP ranges

Shodan is a search engine for internet-connected devices that scans public IP ranges and indexes the banners returned by services. Its primary use in reconnaissance is to discover open ports and running services on target IP ranges, revealing attack surface such as exposed databases, web servers, or industrial control systems. This aligns directly with the information-gathering phase of a penetration test.

Key principle: Shodan is a search engine for internet-connected devices.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Identifying subdomains through DNS brute-forcing

    Why it's wrong here

    DNS brute-forcing is done with tools like dnsrecon or sublist3r, not Shodan.

  • Discovering open ports and services on public IP ranges

    Why this is correct

    Shodan collects banner data from services like HTTP, SSH, FTP, etc., allowing testers to see what is exposed on the internet.

    Clue confirmation

    The clue word "best" in the question point toward this answer.

    Related concept

    Shodan is a search engine for internet-connected devices.

  • Enumerating email addresses from corporate websites

    Why it's wrong here

    Email harvesting is typically performed by tools like theHarvester or scraping, not Shodan.

  • Extracting metadata from documents found on the target's website

    Why it's wrong here

    Metadata extraction is done with tools like FOCA or ExifTool, not Shodan.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates confuse Shodan's banner-gathering capability with active DNS enumeration or web scraping, leading them to select options that describe unrelated reconnaissance tasks.

Detailed technical explanation

How to think about this question

Shodan works by sending probes to every public IPv4 address on common ports (e.g., 80, 443, 22, 21) and capturing the response banners, which often include software versions, device types, and configuration details. This passive reconnaissance technique can reveal legacy services like Telnet or SMBv1 that are not visible through standard port scanning, giving testers a low-noise method to map external attack surface without direct interaction.

KKey Concepts to Remember

  • Shodan is a search engine for internet-connected devices.
  • It collects banner information from services like HTTP, SSH, FTP.
  • Shodan allows searching for devices by IP, port, service, and vulnerability.
  • It is primarily used for passive reconnaissance to identify exposed assets.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Shodan is a search engine for internet-connected devices.

Real-world example

How this comes up in practice

A security team runs a vulnerability scan on a web application and discovers an unpatched SQL injection flaw. The team prioritises remediation by CVSS score — critical flaws are patched within 24 hours, high within 7 days. Questions like this test whether you understand vulnerability management processes, scanning tools, and remediation prioritisation.

What to study next

Got this wrong? Here's your next step.

Review shodan is a search engine for internet-connected devices., then practise related PT0-002 questions on the same topic to reinforce the concept.

Related practice questions

Related PT0-002 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free PT0-002 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this PT0-002 question test?

Information Gathering and Vulnerability Scanning — This question tests Information Gathering and Vulnerability Scanning — Shodan is a search engine for internet-connected devices..

What is the correct answer to this question?

The correct answer is: Discovering open ports and services on public IP ranges — Shodan is a search engine for internet-connected devices that scans public IP ranges and indexes the banners returned by services. Its primary use in reconnaissance is to discover open ports and running services on target IP ranges, revealing attack surface such as exposed databases, web servers, or industrial control systems. This aligns directly with the information-gathering phase of a penetration test.

What should I do if I get this PT0-002 question wrong?

Review shodan is a search engine for internet-connected devices., then practise related PT0-002 questions on the same topic to reinforce the concept.

Are there clue words in this question I should notice?

Yes — watch for: "best". Signals that multiple options may be partially correct. Choose the option that most directly solves the exact problem described, not the one that sounds most complete.

What is the key concept behind this question?

Shodan is a search engine for internet-connected devices.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 11, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This PT0-002 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the PT0-002 exam.