Job Switch Kit: Everything you need to crack your next ServiceNow interview Get Job Switch Kit →
Get the complete ServiceNow interview prep system — 500+ Q&A, mock interviews & more Get Job Switch Kit →

ServiceNow ITOM Discovery Interview Questions

Master ServiceNow ITOM Discovery — MID Server architecture, Probes, Sensors, Patterns, ECC Queue, IRE, credential management, Cloud Discovery, and real-world troubleshooting scenarios — so every Discovery question in your interview feels familiar.

High Frequency Starter

Discovery is a specialist topic that carries heavy weight in ITOM and platform engineering interviews. Know the MID Server role, credential types, and the probe-and-sensor pattern before the interview starts. Candidates who cannot explain the basic architecture do not get far.

What is ServiceNow ITOM Discovery and what problem does it solve?

ServiceNow ITOM Discovery is an automated process that scans the network to find IT infrastructure components — servers, applications, network devices, databases — and automatically creates or updates CI records in the CMDB without manual data entry.

The Problem It Solves

Before Discovery, CMDB data was entered manually — a process that is slow, error-prone, and never current. By the time a spreadsheet was populated, half the data was already stale. Discovery eliminates this by scanning infrastructure on a schedule and keeping the CMDB continuously updated.

What Gets Discovered

Operating systems (Windows, Linux, AIX), hardware details, IP addresses, installed software, running processes, network gear (routers, switches, firewalls), storage arrays, databases, and — with Service Mapping — the relationships between them.

Strong opener for any Discovery interview: "Discovery converts a static, manually maintained CMDB into a continuously refreshed, authoritative source of truth. The CMDB is only as accurate as its last Discovery run."
Easy
Frequently Asked
Must Know

What are the four phases of Discovery? Walk through each one.

Phase 1 - Scanning

Discovery sends a ping (ICMP) to every IP address in the configured Discovery Schedule range. IPs that respond are identified as active and passed to the next phase. IPs that do not respond are skipped.

Phase 2 - Classification

Discovery determines what type of device is at each active IP — is it a Windows server, a Linux host, a Cisco router, a printer? It does this by checking which ports are open and attempting initial banner grabs. The result is a device class (e.g., cmdb_ci_win_server).

Phase 3 - Identification

Discovery compares the discovered device against existing CMDB records using Identification Rules (part of IRE). If a matching CI is found, Discovery updates it. If no match is found, a new CI is created.

Phase 4 - Exploration

Discovery dives deep into the device — collecting hardware specs, installed software, running processes, network interfaces, storage, and dependent services — using Probes, Sensors, and Patterns specific to that device class.

Candidates often confuse Identification (phase 3) and Exploration (phase 4). Identification is about matching to existing CIs. Exploration is about collecting detailed attribute data. They are distinct phases with separate mechanisms.
Easy
Must Know
Frequently Asked

What is a MID Server? Why can’t Discovery run without one?

A MID Server (Management, Instrumentation, and Discovery Server) is a Java application that runs on a Windows or Linux server inside the customer’s network. It acts as a bridge between the ServiceNow instance (which lives in the cloud) and the internal network that needs to be discovered.

Why Discovery Requires One

The ServiceNow instance cannot reach internal IP addresses directly — your data center servers are behind firewalls, VPNs, and private subnets that are inaccessible from the internet. The MID Server lives inside that network, so it can reach those devices. Discovery instructions travel from ServiceNow → MID Server → target device, and results travel back the same path.

Key Characteristics

The MID Server initiates an outbound HTTPS connection to ServiceNow. No inbound ports need to be opened on the firewall for ServiceNow to reach the MID Server — this is a common interview point. All communication is initiated by the MID Server.

When asked "how does the MID Server communicate with ServiceNow?", always say it initiates an outbound connection. Many candidates incorrectly say ServiceNow pushes instructions down to the MID Server. The correct direction is MID Server polls ServiceNow for work.
Easy
Must Know
Frequently Asked

What is the difference between a Probe, a Sensor, and a Pattern?

Probe

A Probe is an instruction set that the MID Server executes against a target device to collect raw data. A Probe tells the MID Server: "go to this IP, use WMI/SSH/SNMP, and run these commands". The MID Server executes the Probe and returns raw output.

Sensor

A Sensor is a JavaScript script that runs on the ServiceNow instance to parse the raw output returned by the Probe. The Sensor reads the raw command output and translates it into structured CI attribute values that get written to the CMDB.

Pattern

A Pattern is a newer, more powerful alternative that combines Probe and Sensor logic into a single declarative definition. Patterns run on the MID Server itself (not split between MID Server and instance) and can discover complex multi-layer application stacks. Patterns are the recommended approach for application discovery on modern ServiceNow versions.

The Probe-Sensor split exists for historical reasons — Probes collected data at the network edge, Sensors processed it on the instance. Patterns collapsed that split for efficiency. For the interview: Probes collect, Sensors parse, Patterns do both.
Easy
Must Know
Frequently Asked

What types of Discovery does ServiceNow support?

IP-Based Discovery (Horizontal)

Scans a range of IP addresses to find and catalog all devices on the network — servers, routers, switches, virtual machines, storage devices. This is what most people mean when they say “Discovery.”

Top-Down Discovery (Service Mapping)

Starts from a known entry point (a URL or IP) and maps all the infrastructure components that support that service — web servers, app servers, databases, load balancers. Builds Application Service maps in the CMDB.

Cloud Discovery

Discovers resources in public cloud environments (AWS, Azure, GCP) using cloud APIs rather than network scanning. Finds VMs, storage buckets, databases, load balancers, and cloud-native services.

Agent-Based Discovery

A lightweight agent installed on each target machine that reports its own configuration data to ServiceNow. Used when network-based scanning is blocked or for deep OS-level data collection.

Interviewers at enterprise clients often ask about Cloud Discovery specifically — especially how it differs from on-premises scanning. Have a clear answer ready on why cloud uses APIs instead of ICMP/WMI/SSH.
Easy

What is the ECC Queue? What role does it play in Discovery?

The ECC Queue (External Communication Channel Queue) is the message bus that connects ServiceNow and the MID Server. Every instruction sent to the MID Server (Probe execution, scan job) and every result coming back from the MID Server (raw discovery data) passes through the ECC Queue.

Key Fields in the ECC Queue

agent — the MID Server this message is for.
topic — the type of message (e.g., “Command”, “Output”).
queue — direction: “input” (ServiceNow to MID), “output” (MID to ServiceNow).
state — lifecycle: Ready → Processing → Processed / Error.
payload — the actual data (probe instructions or collected output).

Why It Matters

If Discovery is hanging or not creating CIs, the ECC Queue is the first place to check. Rows stuck in “Ready” state mean the MID Server is not picking up work. Rows stuck in “Processing” mean the MID Server is working but not completing. “Error” state rows contain the failure reason.

Memorize the state progression: Ready → Processing → Processed. Anything that is not “Processed” after a reasonable time is a problem. Start troubleshooting at the ECC Queue and work outward.
Medium
Must Know
Frequently Asked

What credentials does Discovery need and why?

Discovery requires credentials to log in to target devices and collect detailed configuration data. Without credentials, Discovery can only identify that a device exists (from ping response) but cannot read hardware details, installed software, or running processes.

Windows Targets

Windows credentials (domain or local admin account) are needed for WMI queries. The account needs sufficient permissions to query WMI namespaces — typically local administrator or a purpose-built read-only discovery account.

Linux / Unix Targets

SSH credentials (username/password or SSH key pair) are used to run remote commands. The account typically needs read access and, in some cases, limited sudo rights for specific commands.

Network Devices

SNMP community strings (v1/v2c) or SNMP v3 credentials (username, auth protocol, priv protocol) are used for routers, switches, and firewalls.

Where Credentials Are Stored

In ServiceNow under Discovery Credentials records. The MID Server retrieves them at runtime and uses them against target devices. Credentials are never stored on the MID Server itself.

Best practice: create a dedicated, read-only discovery service account rather than using domain admin. This limits blast radius if credentials are compromised and satisfies security audits.
Easy

What is a Discovery Schedule and what can you configure in it?

A Discovery Schedule defines what to discover, when to discover it, and which MID Server to use. It is the primary configuration record for triggering Discovery runs.

Key Configuration Options

IP Ranges — The CIDR blocks or IP ranges to scan (e.g., 10.0.0.0/8).
MID Server — Which MID Server (or MID Server cluster) handles the scan.
Timing — How often to run: hourly, daily, weekly, or a custom cron expression.
Behaviors — Rules that modify how specific device types are handled during this schedule.
IP Exclusions — Specific IPs or ranges to skip even if they fall inside the IP Range.

Discovery Status Record

Every time a Discovery Schedule runs, a Discovery Status record is created. This record tracks how many IPs were scanned, how many CIs were created or updated, how many errors occurred, and the overall run duration.

Discovery Schedules should be tuned to match the change rate of the environment. A development lab might run daily; a production data center typically runs weekly to avoid performance impact. Running too frequently wastes MID Server resources and increases ECC Queue volume.
Easy

What are Discovery Behaviors and when do you use them?

A Discovery Behavior is a named configuration that controls how Discovery handles a specific category of device during a schedule run. Think of it as a policy override for certain device types.

What Behaviors Control

Which Probes to run for a given device type.
Whether to discover specific application stacks (e.g., Oracle, SAP, Apache).
Whether to follow network relationships during exploration.
Timeout and retry settings for slow-responding devices.

Common Use Cases

Restricting Discovery of sensitive servers to read-only OS-level data only (no application discovery).
Enabling deep SAP or Oracle application discovery for specific IP ranges without enabling it globally.
Reducing scan depth for network segments where Discovery is permitted but must be lightweight.

Behaviors give you fine-grained control without creating separate Discovery Schedules for every variation. One schedule + multiple behaviors = clean, manageable configuration. Without behaviors, you would need dozens of schedules.
Medium

What is CI Identification during Discovery? How does IRE fit in?

CI Identification is the process of determining whether a discovered device already exists in the CMDB or needs to be created as a new CI. Getting this right prevents duplicate records.

How IRE Is Involved

IRE (Identification and Reconciliation Engine) is the framework that runs Identification on every CI write. When Discovery collects data about a server, it does not write directly to cmdb_ci. Instead, it submits the data to IRE, which applies configured Identification Rules to find a matching CI.

Identification Rule Tiers

Primary Identifier — The most reliable, unique attribute (e.g., serial number). If this matches, IRE considers it a definitive match.
Secondary Identifier — Used when the primary is not available (e.g., UUID + MAC address).
Tertiary Identifier — A fallback, usually name + IP. Less reliable, can cause false matches.

The #1 cause of duplicate CIs from Discovery is weak or missing primary identifiers. Serial number is the gold standard for physical hardware. For VMs, use VM UUID. Never rely on hostname alone — hostnames change and are not globally unique.
Medium
Must Know
Frequently Asked

What ports does Discovery use? How do firewall rules affect it?

MID Server to ServiceNow

Port 443 (HTTPS) — outbound from the MID Server to the ServiceNow instance. This is the only port that needs to be opened toward the internet.

MID Server to Target Devices

Port 445 / 135 — WMI (Windows targets).
Port 22 — SSH (Linux / Unix targets).
Port 161 — SNMP (network devices, printers).
Port 80 / 443 — HTTP/HTTPS (web servers, application discovery).
Port 1433 / 1521 / 3306 — SQL Server / Oracle / MySQL (database discovery).

Firewall Implications

The MID Server must be placed in a network segment with firewall access to all target IP ranges. If the MID Server cannot reach a device on the required port, Discovery silently skips that device or returns a “Connection refused” error in the ECC Queue. No firewall rules need to be opened inbound to the MID Server itself.

In large enterprises, the common failure mode is: Discovery runs, no errors visible, but devices from a specific subnet are never discovered. Always check whether the MID Server has network connectivity to that subnet before assuming a Discovery configuration issue.
Medium

What is the difference between Discovery and Service Mapping?

Discovery (Horizontal)

Scans entire IP ranges looking for all devices. The goal is broad inventory coverage — find every server, device, and application in a subnet and create CI records for each. Discovery does not care about relationships between CIs — it just creates them.

Service Mapping (Top-Down)

Starts from a known service entry point (e.g., a URL for the Banking Portal) and maps all dependencies — load balancers, web servers, app servers, databases — building a complete Application Service map. Service Mapping is relationship-focused: it creates the dependency links that make impact analysis and CSDM meaningful.

When to Use Each

Discovery first — build the CI inventory. Service Mapping after — build the service map on top of that inventory. Both run in parallel in mature implementations: Discovery keeps CIs current, Service Mapping keeps relationships current.

Senior interview answer: “Discovery gives you the puzzle pieces. Service Mapping assembles the picture. You need both — Discovery without Service Mapping gives you an unrelated pile of CIs. Service Mapping without Discovery gives you relationships pointing to stale or missing CIs.”
Medium
Must Know
Frequently Asked

What happens when Discovery finds a device that already exists in CMDB?

When Discovery finds a device that matches an existing CI (via IRE Identification Rules), it does not create a new record. Instead, it runs the discovered attributes through IRE’s Reconciliation process before writing any updates.

Reconciliation Step

Reconciliation Rules define which data source is authoritative for each attribute. If Discovery is the authoritative source for ip_address and os_version, those fields are updated. If a field is owned by “Manual Entry” or another source, Discovery’s values are blocked from overwriting it.

The Source Tracking

ServiceNow tracks which source wrote each attribute via the sys_object_source table. This allows Reconciliation to enforce authority and allows admins to audit which source last modified a field.

When the question is “what happens when Discovery overwrites manual data?”, the answer is always: configure Reconciliation Rules to set the manual source as authoritative for those fields. Discovery will then respect those fields and skip them.
Medium
Frequently Asked

What is the Discovery Status record and what information does it contain?

Every Discovery Schedule run creates a Discovery Status record on the discovery_status table. It is the audit log and health check for a Discovery run.

Key Fields

state — Running, Complete, Cancelled, Error.
start_time / end_time — Duration of the run.
ips_discovered — How many IPs responded to scanning.
cis_created — New CI records created in this run.
cis_updated — Existing CIs updated with fresh data.
errors — Count of errors encountered.
mid_server — Which MID Server processed this run.

Related Records

Each Status record links to individual Device History records, showing exactly what happened for each IP address — which Probes ran, which CI was created or updated, and any errors that occurred at the device level.

Discovery Status is your first diagnostic stop after a run. Low cis_created + high errors means credential or connectivity issues. Zero ips_discovered means scanning never reached the network — check the MID Server status and IP range configuration.
Medium
🔒 Concept Deep Dive Premium
Walk through the full Discovery-to-CMDB lifecycle using IRE. What happens between a device responding to ping and a CI record appearing in CMDB?
Patterns vs Probe-Sensor architecture — what is the fundamental difference and which should you prefer?
What are Reconciliation Rules and how do they protect CMDB data during Discovery?
Unlock with Premium
🔒 Scenario Based Questions Premium
Discovery ran successfully but no CIs were created in CMDB. Walk through your troubleshooting approach.
Discovery is creating duplicate CI records for the same physical server after every run. What is the root cause and how do you fix it permanently?
You need to design Discovery for 15,000 devices across 50 office locations. Walk through your architecture decisions.
Unlock with Premium

Most candidates who fail weren't underskilled.
They were underprepared.

These free questions cover the basics. But interviews go deeper. Discovery, ITOM, SecOps, Flow Designer, Now Assist, AI Agents. The Job Switch Kit gives you the full 15-day roadmap, 500+ structured Q&A across every module, a LinkedIn profile optimisation guide so recruiters find you before you even apply, and an interview bot that practices with you until you're ready. Most candidates walk in under-prepared. Don't be one of them.

500+ Q&A — Technical & Behavioral, Every Module

Battle-tested questions with structured answers across every high-frequency topic — ITOM, SecOps Vulnerability Response, Discovery, Flow Designer, AI Agents, Generative AI, and Now Assist. Plus a dedicated Behavioral round covering HR questions, STAR method answers, salary negotiation, and career direction — because technical prep alone is not enough to get the offer

15-Day Structured Roadmap

Day-by-day curriculum in the right order — scripting fundamentals, ITSM & CMDB, integrations, AI modules, and behavioral prep — so you peak exactly on interview day

Unlimited Interview Bot

Two modes: system-guided sessions with curated ServiceNow questions, and self-practice where you bring your own questions. Every session is recorded — download your Q&A transcript, review your answers, and pinpoint exactly where you need to improve

Salary Negotiation Playbook

Proven strategies for counter-offers, CTC decoding & in-hand salary strategy

Job Switch Strategy

Notice period tactics, BGV prep, resignation playbook & offer comparison

Progress Tracker + Notes

Track completion per topic, rate your confidence per question, add private notes at question level and page level. Only you see them. Always know exactly what to tackle next

LinkedIn Profile Optimisation

Step-by-step guide to rank in recruiter searches before you apply. Module-specific keyword lists, role-based headline and About section templates, experience bullet formulas, and certification display guidance built specifically for ServiceNow professionals

Get Job Switch Kit →

🔒 Secure payment via Razorpay · Instant access after payment

10 days free — for your honest review

Your story could be the reason someone else lands their next ServiceNow role

If this content made a real difference in your prep, sharing that experience with your network helps other professionals discover it — and we'd love to say thank you with 10 days of premium access, completely on us.

Real Interview Questions & Answers

Questions shared by ServiceNow professionals and reviewed for clarity, relevance, and interview usefulness.

Share a Question

🚀 Power Up Your ServiceNow Career

Join a growing community of smart ServiceNow professionals to stay ahead in interviews, sharpen your development skills, and accelerate your career.

📱

ServiceNow Buddy App

Get the free Android app for a smoother experience.

Install
Comments

No comments yet — be the first to share your thoughts!

📝 My Topic Notes 🔒 Only visible to you
Log in or sign up free to save notes
Previous CMDB Questions Next Now Assist Questions

Found these questions helpful?

Share your experience — it helps other ServiceNow professionals know what to prepare.

Share Your Story →