Courseiva

GPEN · topic practice

Scanning and Host Discovery practice questions

This domain covers Nmap-driven host discovery and port scanning: interpreting port states like open|filtered, selecting scan types (SYN, UDP, version detection), and sweeping subnets when ICMP is blocked. GPEN questions present scenarios with exhibits or command output and require you to choose correct Nmap syntax and explain scan behavior and limitations.

Courseiva uses original exam-style practice questions designed for learning and revision. The goal is to understand the concepts, recognise exam patterns, and improve through explanations — not memorise copied exam dumps.

Editorial oversight:Johnson Ajibi· MSc IT Security, IEEE Senior Member
20 questionsDomain: Scanning and Host Discovery

What the exam tests

What to know about Scanning and Host Discovery

You must read Nmap output, pick the right scan flags, and explain port states. The key skill is matching the command to the objective: -sV for versions, -sU for UDP, -Pn to skip host discovery, and knowing open|filtered is ambiguous, not confirmed open.

Interpreting Nmap port states including open, closed, filtered, and open|filtered

Choosing Nmap flags such as -sV, -sU, -sS, and -Pn for specific goals

Performing host discovery sweeps with -sn when ICMP echo is blocked

Understanding UDP scan challenges: no handshake, ICMP rate limiting, slow results

Watch out for

Common Scanning and Host Discovery exam traps

  • ▸Assuming open|filtered means the port is definitely open; it means Nmap cannot distinguish open from filtered, common with UDP or firewalled TCP.
  • ▸Forgetting -sV when the question asks for exact service version; a plain port scan only reports the port state.
  • ▸Using -sn for a sweep but expecting port results; -sn performs host discovery only and does not scan ports.

Practice set

Scanning and Host Discovery questions

20 questions · select your answer, then reveal the explanation

You are tasked with identifying live hosts on a network protected by an aggressive IDS. Which TWO of the following Nmap techniques are considered the most effective for evading detection while performing host discovery?

When conducting a port scan on a target that sits behind a stateless firewall, you notice that all TCP ports return a status of 'filtered'. Which Nmap command-line argument should you use to determine if these ports are actually open but the firewall is just dropping the packets?

You are performing a penetration test and need to discover hosts on a network segment where you suspect the firewall is configured to block all incoming traffic from your source IP address. Which technique would be the most effective way to identify live hosts in this scenario?

You have identified an open port on a target, but the service version detection is returning 'unknown'. Which Nmap option should you use to gain more granular information about the specific service running on that port?

Which THREE of the following are valid reasons to perform a service version scan (-sV) during a penetration test?

You are performing a network discovery scan and want to identify which operating systems are running on your targets. Which TWO Nmap flags or combinations are most appropriate for this task?

During a scan, you receive a 'filtered' status on most ports. You want to determine if this is because of a network-based IPS or a host-based firewall. Which Nmap technique would best assist in differentiating between these two possibilities?

During an internal penetration test, you discover that the target network uses a stateful firewall that blocks TCP SYN packets to most ports but permits TCP ACK packets to any port. You need to enumerate live hosts and open ports while avoiding detection. Which Nmap scan technique should you use to bypass the firewall's filtering and identify accessible services?

Question 9easymultiple choice
Review the full subnetting walkthrough →

You are performing a penetration test and need to discover live hosts on a subnet. The client has requested that you minimize network traffic and avoid triggering intrusion detection systems. Which Nmap host discovery technique is most appropriate?

You are conducting an external penetration test and want to discover live hosts on a target network without performing a full port scan. Which two Nmap options are valid host discovery techniques that can be used with -sn? (Choose two.)

You are conducting a penetration test and need to scan a target host that is protected by a firewall that drops all TCP packets with the SYN flag set, but allows TCP packets with the FIN flag set. You want to identify open TCP ports on the target. Which Nmap scan type should you use to bypass this firewall rule?

You are performing a penetration test against a target that has a firewall configured to drop all incoming TCP packets with the SYN flag set. You need to determine if a specific TCP port is open. Which Nmap scan type is most likely to succeed in this scenario?

Question 13mediummultiple choice
Review the full subnetting walkthrough →

You are performing a network audit and need to identify live hosts across a segmented network while minimizing the risk of triggering IDS alerts. Which Nmap technique is most appropriate for stealthy host discovery in a subnet where ICMP echo requests are filtered by the firewall?

Refer to the exhibit. You executed an Nmap scan against a host and received the output shown. Which scanning technique was most likely used to produce this specific state-based output while avoiding the completion of a full TCP three-way handshake?

Exhibit

Starting Nmap 7.92 at 2023-10-01 10:00 UTC
Nmap scan report for 192.168.1.10
Host is up (0.0012s latency).
PORT   STATE SERVICE
22/tcp open  ssh
80/tcp open  http
443/tcp open https

You are analyzing a target environment and need to identify UDP services. Which THREE of the following are significant challenges associated with performing an accurate UDP scan compared to a TCP scan?

Refer to the exhibit. What is the primary purpose of the Nmap Scripting Engine (NSE) in the context of the output provided, and how does it improve upon standard port scanning?

Exhibit

Starting Nmap 7.92
NSE: Loaded 145 scripts for scanning.
NSE: Script scan: 192.168.1.5:80 -> GET / HTTP/1.0
PORT STATE SERVICE
80/tcp open http
|_http-title: Site under construction

When conducting a network scan, you notice that many hosts are not responding to ping requests, even though they are known to be online. What is the most appropriate Nmap flag to use to ensure these hosts are still scanned for open ports?

Refer to the exhibit. What does the Nmap status 'open|filtered' indicate about the target port, and why does this result commonly occur in penetration testing scenarios?

Exhibit

Nmap scan report for 10.0.0.1
PORT STATE SERVICE
80/tcp open|filtered http

During an internal penetration test, you need to discover live hosts on a flat Layer 2 network segment. The client's IDS is known to alert on TCP SYN packets sent to closed ports. You want to minimize the chance of triggering an alert while still identifying as many hosts as possible. Which Nmap host discovery technique should you use?

Question 20mediummultiple choice
Review the full subnetting walkthrough →

During an internal penetration test, you need to sweep a /24 subnet for live hosts using Nmap. The client's security team has confirmed that ICMP echo requests are blocked at the host firewall on all workstations, but they want you to use a technique that still elicits responses from hosts that are up without relying on ICMP. Which Nmap host discovery option should you use to maximize host detection in this environment?

Free account

Track your progress over time

Create a free account to save your results and see which topics improve across sessions.

Focused Scanning and Host Discovery sessions

Start a Scanning and Host Discovery only practice session

Every question in these sessions is drawn from the Scanning and Host Discovery domain — nothing else.

Related practice questions

Related GPEN topic practice pages

Move into related areas when this topic feels solid.

Frequently asked questions

What does the GPEN exam test about Scanning and Host Discovery?
You must read Nmap output, pick the right scan flags, and explain port states. The key skill is matching the command to the objective: -sV for versions, -sU for UDP, -Pn to skip host discovery, and knowing open|filtered is ambiguous, not confirmed open.
How should I use these practice questions?
Select your answer before revealing the explanation. Then read why each option is right or wrong — this active recall approach builds retention far faster than re-reading notes.
Can I practise just Scanning and Host Discovery questions in a focused session?
Yes — the session launcher on this page draws every question from the Scanning and Host Discovery domain. Use a 10-question session first to gauge your baseline, then move to 20 or 30 once the weak spots are clear.
Where can I practise other GPEN topics?
Use the topic links above to move to related areas, or go back to the GPEN question bank to see all topics.
Are these real exam questions or dumps?
These are original practice questions written to test the same concepts the GPEN exam covers. They are not copied from any real exam or dump site.