Courseiva

SERVICENOW-CIS-DISCOVERY · domain

Discovery Pattern Design

This domain covers building and debugging ServiceNow Discovery Patterns in the Pattern Designer: steps, operations, variables, and scripts that turn raw probe output into CIs. Questions present realistic parsing scenarios and ask you to choose the correct step type, script hook, or designer feature rather than recall trivia.

68 questions12 easy36 medium20 hard

Focused practice

Practice Discovery Pattern Design questions

Scored sessions drawing only from this domain — pick a length below.

Start 20-question practice test →

What this domain covers

What to know about Discovery Pattern Design

Build a working pattern: add steps, choose the right parse operation, wire variables, and use Pre-sensor/Post-sensor scripts correctly. The most important thing is knowing which operation and variable path actually extracts the value you need from the raw payload.

Purpose and execution timing of Pre-sensor and Post-sensor scripts within a pattern step

Selecting parsing operations such as Parse JSON, Parse XML, or regex for structured data

Referencing nested JSON array properties like servers[].id using pattern variable syntax

Using Pattern Designer features including Search, Debug, and step-level test execution

Why learners struggle

Why Discovery Pattern Design questions are commonly missed

NAT questions are missed when learners confuse the four address types (inside local, inside global, outside local, outside global) or misapply the interface direction. A translation rule can look correct but still fail if the ACL, interface, or direction is wrong.

  • ·Inside local vs inside global — inside local is the private source, inside global is the translated public address
  • ·PAT overloads — many sources share one public IP using unique port numbers
  • ·Interface direction — ip nat inside and ip nat outside must be on the correct interfaces
  • ·Static NAT vs dynamic NAT vs PAT — each serves a different use case
  • ·The NAT ACL identifies traffic to translate, not traffic to permit or deny
  • ·A missing translation can look like a routing problem if the interfaces are misconfigured

Watch out for

Common Discovery Pattern Design exam traps

  • ▸Confusing Pre-sensor scripts with Post-sensor scripts, or assuming Pre-sensor runs before the probe rather than before the step's parsing logic
  • ▸Trying to extract nested JSON values with a single regex instead of Parse JSON plus correct array indexing
  • ▸Treating Pattern Designer Search as a global CI search rather than a way to locate steps, variables, or text within the pattern

Question index

All Discovery Pattern Design questions (68)

Click any question to see the full explanation, or start a practice session above.

1

Which TWO steps are essential for parsing a command output that contains key-value pairs formatted as 'key = value'?

Medium
2

You are building a pattern for a network device that exposes data only through an SSH session requiring a non-standard prompt and a two-step authentication exchange. Your pattern must run several commands after login and parse each result. Which approach correctly addresses the interactive login and command execution within the pattern?

Hard
3

What is the primary role of the MID Server during pattern execution?

Easy
4

You are creating a custom pattern to identify a new type of load balancer. You need to verify that the identification section correctly maps the serial number to the cmdb_ci_lb_device table. Which debugging tool within the Pattern Designer should you use to validate the identification section without running a full Discovery schedule?

Medium
5

What happens to the data extracted by a pattern if it is not mapped to an attribute?

Medium
6

What is the purpose of 'Discovery' patterns?

Easy
7

A pattern designer is creating a pattern to discover a Linux server. The pattern needs to extract the operating system version from the output of the 'uname -a' command. The output format varies slightly across distributions. Which parsing strategy should be used to reliably extract the version?

Hard
8

Which TWO of the following can be configured in a Pattern step?

Medium
9

When should you use the 'Lookup' step in a pattern?

Medium
10

Which TWO of the following are valid parsing strategies available in the Pattern Designer when processing data retrieved from a device?

Medium
11

When configuring a 'Set Parameter' step, where is the value retrieved from if you select 'Variable'?

Medium
12

You are designing a pattern to discover Windows servers. You need to collect the installed software list. The command output is a large text block with multiple lines, each containing a software name and version separated by a tab. Which parsing strategy in the Pattern Designer is best suited for this data?

Medium
13

You are creating a pattern to capture a version number from a command line output. The output is 'Version: 1.2.3.4'. Which parsing strategy is most efficient for this specific string?

Medium
14

A pattern designer wants to reuse a set of steps that are common across multiple patterns, such as steps to gather basic system information. What should the designer do to avoid duplicating these steps in each pattern?

Easy
15

Which field in the Pattern Designer is used to define the criteria for identifying a CI based on specific attributes like serial number or name?

Easy
16

Which TWO of the following are valid ways to debug a pattern?

Hard
17

You are creating a new Discovery pattern and need to extract data from a command output where lines are separated by a consistent delimiter. Which parsing strategy should you use to map these specific values to table attributes?

Medium
18

Which action allows you to test a pattern against a specific Discovery status record without running a full Discovery scan?

Easy
19

You are creating a new Discovery pattern for a custom application. You need to define the pattern's entry point and specify which CI type it will discover. Where in the Pattern Designer do you configure the CI type that the pattern will create or update?

Easy
20

When debugging a pattern that fails to parse a JSON response, which tool in the Pattern Designer provides the most granular view of the variable state after a 'Parse JSON' step?

Hard
21

You are parsing a multi-line string containing key-value pairs separated by colons. Which tool is most appropriate for a single step extraction?

Hard
22

When using the 'Parse Variable' step to extract data, which component is required to capture a specific substring from a larger variable using a capture group?

Medium
23

When debugging a pattern that fails during the identification phase, which TWO areas should you inspect in the Pattern Designer?

Medium
24

Which THREE common challenges arise when using Regex to extract data from command outputs in patterns?

Hard
25

Which of the following parsing strategies is best for a response formatted as a list of key-value pairs separated by equal signs?

Medium
26

You are designing a pattern to discover Linux servers. You need to ensure that the pattern only runs the 'Identify' step if the server's hostname matches a specific naming convention (e.g., starts with 'prod-'). Which Pattern Designer feature should you use to implement this conditional logic?

Hard
27

When a pattern step fails, how can you determine which step caused the failure?

Medium
28

While validating a newly built pattern in the Pattern Designer, you need to confirm that a step extracting the 'hostname' attribute from a device's command output is capturing the correct value before you commit changes to production. Which action best validates the extraction without deploying the pattern to a full discovery schedule?

Medium
29

When dealing with a nested XML response from an API, which parsing method should be used to drill down into a specific child node?

Medium
30

If you have a pattern that identifies a CI but fails to update its attribute, which log should you check first?

Hard
31

Which THREE of the following are valid ways to handle command output in a pattern?

Medium
32

Which functionality allows a pattern to call another pattern, thereby promoting modularity and reuse of common identification logic?

Medium
33

During pattern debugging, you notice that a specific step is failing to run on a MID Server. You want to see the exact input and output of that step. Where should you look?

Hard
34

If a pattern step fails due to a timeout, where should you investigate the specific output of the command that was executed just before the failure occurred?

Hard
35

A pattern designer is testing a new pattern for a network switch. The pattern includes a step that runs a command and parses the output. During testing, the designer notices that a specific attribute is not being populated even though the command output contains the expected value. The parsing step uses a regular expression. What is the most likely cause?

Medium
36

When a pattern step needs to run as root, where is this configuration set?

Medium
37

You are designing a pattern to discover virtualization hosts and their guest virtual machines. You need the pattern to correctly associate each guest VM with its parent host so the CMDB reflects the containment relationship. Which TWO pattern design practices support building this relationship correctly? (Choose two.)

Hard
38

When using 'Parse JSON' for a complex structure, how do you access a nested property named 'id' inside an array 'servers'?

Hard
39

Which type of credential is primarily used by Discovery patterns to execute commands on a Linux-based target via SSH?

Easy
40

Which of the following is the correct order of operations in a horizontal pattern?

Medium
41

You are designing a Discovery pattern that runs a command on a Linux host and then parses the output to populate the 'CPU core count' field on the CI. The command's output contains multiple lines, and the relevant number appears on the same line as the label 'CPU(s):'. Which Pattern Designer step configuration should you use to reliably extract the numeric value?

Medium
42

Which action must you perform before a pattern can be used in Discovery?

Easy
43

What is the difference between 'Identification' and 'Connection' in terms of CI ownership?

Hard
44

Which TWO of the following steps are required when adding a new CI relationship in a pattern?

Hard
45

Which THREE factors influence the successful identification of a CI in a pattern?

Hard
46

You are writing a pattern that requires data from a REST API endpoint that returns a nested JSON array. Which step type is most appropriate to extract a specific attribute from an object located at the third index of the nested array?

Hard
47

You are designing a Discovery pattern for a network switch. You need to create a CI Relationship between the switch and its connected devices. In the Pattern Designer, which step type should you use to create this relationship?

Medium
48

Which THREE of the following are common parsing strategies used in pattern design?

Medium
49

When a pattern step executes an external script (e.g., Python), how can you ensure the pattern waits for the script to finish before proceeding to the next step?

Hard
50

What is the benefit of using an Extension section in a pattern?

Easy
51

What is the purpose of the 'Table' attribute in the 'Identification' step?

Medium
52

A pattern you authored is producing CI records, but a required attribute named 'serial_number' is sometimes populated and sometimes left blank depending on the device model. You want the pattern to attempt one command and, if it yields no serial number, automatically try a fallback command before finalizing the CI. Which pattern design construct should you use?

Easy
53

What is the purpose of the 'Pre-sensor' script?

Medium
54

Which of the following correctly describes the use of the 'Pattern Designer's' 'Search' feature?

Hard
55

Which TWO of the following are key components of the Pattern Designer?

Medium
56

When using the 'Parse Delimited' step, what is the 'Separator' attribute used for?

Hard
57

What does the 'Debug' mode in the Pattern Designer require to function?

Easy
58

What is the result of using a 'Delimiter' of '\n' in a 'Parse Delimited' step?

Medium
59

You want to run a command only if a previous step was successful. How is this configured?

Medium
60

Which TWO of the following are considered 'best practices' for pattern design?

Medium
61

You need to store the result of a WMI query in a variable that can be accessed across different sections of the pattern. Which step type should you use?

Medium
62

A discovery pattern must ensure that a CI is only created (not updated) when the identification process cannot find an existing record. The pattern currently has an Identification step that runs successfully. You need to configure the next step to execute only if the CI was not found. Which condition should you use in the step's 'Run if' condition?

Medium
63

Which UI tool is used to visualize the pattern execution flow?

Easy
64

A pattern includes a step that runs a command to retrieve a list of installed software. The command output is large and needs to be processed to create multiple CI records. Which pattern step type should be used to iterate over each line of output and create a CI for each?

Medium
65

What happens if a pattern execution encounters an error in a step that is marked as 'Continue on error'?

Hard
66

You are building a ServiceNow Discovery pattern for a Linux server that hosts multiple network interfaces. During pattern execution, you need to populate the CI's 'IP Address' field with the IP address of the interface that has the default route. The pattern step that runs the command 'ip route get 8.8.8.8' returns output similar to: '8.8.8.8 via 192.168.1.1 dev eth0 src 192.168.1.100'. You want to reliably extract only the source IP (192.168.1.100) and assign it to the CI attribute. Which pattern step type and configuration should you use?

Medium
67

If you need to extend an existing pattern for a network switch, which action ensures that your custom logic is executed during the Discovery process while maintaining the original functionality?

Medium
68

You are modifying a pattern and need to extract a specific attribute from a JSON response returned by an API. Which step type is most appropriate for this task?

Medium

Frequently asked questions

What does the Discovery Pattern Design domain cover on the SERVICENOW-CIS-DISCOVERY exam?
Build a working pattern: add steps, choose the right parse operation, wire variables, and use Pre-sensor/Post-sensor scripts correctly. The most important thing is knowing which operation and variable path actually extracts the value you need from the raw payload.
How many questions are in this domain?
This page lists all 68 Discovery Pattern Design questions in the SERVICENOW-CIS-DISCOVERY question bank. The actual exam draws from this domain proportionally to its weighting in the official exam blueprint.
What is the best way to practise this domain?
Start with a short focused session (10 questions) to identify gaps, then work through explanations. Repeat with a longer session once the weak areas feel solid.
Can I practise only Discovery Pattern Design questions?
Yes — the session launcher on this page filters questions to this domain only. Choose any session length for inline explanations and scoring.
ServiceNow Certified Implementation Specialist - Discovery (CIS-Discovery / CIS-DISCO) (SERVICENOW-CIS-DISCOVERY) Discovery Pattern Design Practice Questions