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.
Start practicing
Discovery Pattern Design — choose a session length
Free · No account required
Domain overview
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.
Exam objectives
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
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
Click any question to see the full explanation and answer options, or start a focused practice session above.
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?
2You 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?
3When debugging a pattern that fails during the identification phase, which TWO areas should you inspect in the Pattern Designer?
4During 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?
5You 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?
6You 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?
7Which action allows you to test a pattern against a specific Discovery status record without running a full Discovery scan?
8When configuring a 'Set Parameter' step, where is the value retrieved from if you select 'Variable'?
9When dealing with a nested XML response from an API, which parsing method should be used to drill down into a specific child node?
10What happens if a pattern execution encounters an error in a step that is marked as 'Continue on error'?
11Which of the following is the correct order of operations in a horizontal pattern?
12What is the benefit of using an Extension section in a pattern?
13When should you use the 'Lookup' step in a pattern?
14Which UI tool is used to visualize the pattern execution flow?
15What is the purpose of the 'Pre-sensor' script?
16When using the 'Parse Delimited' step, what is the 'Separator' attribute used for?
17What happens to the data extracted by a pattern if it is not mapped to an attribute?
18You are parsing a multi-line string containing key-value pairs separated by colons. Which tool is most appropriate for a single step extraction?
19You want to run a command only if a previous step was successful. How is this configured?
20What is the primary role of the MID Server during pattern execution?
21When a pattern step needs to run as root, where is this configuration set?
22What is the purpose of the 'Table' attribute in the 'Identification' step?
23When using 'Parse JSON' for a complex structure, how do you access a nested property named 'id' inside an array 'servers'?
24Which of the following correctly describes the use of the 'Pattern Designer's' 'Search' feature?
25Which action must you perform before a pattern can be used in Discovery?
26What is the result of using a 'Delimiter' of '\n' in a 'Parse Delimited' step?
27What is the purpose of 'Discovery' patterns?
28When a pattern step fails, how can you determine which step caused the failure?
29What is the difference between 'Identification' and 'Connection' in terms of CI ownership?
30If you have a pattern that identifies a CI but fails to update its attribute, which log should you check first?
31What does the 'Debug' mode in the Pattern Designer require to function?
32Which THREE of the following are common parsing strategies used in pattern design?
33Which of the following parsing strategies is best for a response formatted as a list of key-value pairs separated by equal signs?
34Which TWO of the following steps are required when adding a new CI relationship in a pattern?
35Which THREE factors influence the successful identification of a CI in a pattern?
36Which TWO of the following can be configured in a Pattern step?
37Which TWO of the following are valid ways to debug a pattern?
38Which TWO of the following are key components of the Pattern Designer?
39Which TWO of the following are considered 'best practices' for pattern design?
40Which THREE of the following are valid ways to handle command output in a pattern?
41You 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?
42You 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?
43If 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?
44When 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?
45Which field in the Pattern Designer is used to define the criteria for identifying a CI based on specific attributes like serial number or name?
46If 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?
47You 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?
48Which type of credential is primarily used by Discovery patterns to execute commands on a Linux-based target via SSH?
49Which functionality allows a pattern to call another pattern, thereby promoting modularity and reuse of common identification logic?
50When 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?
51Which TWO of the following are valid parsing strategies available in the Pattern Designer when processing data retrieved from a device?
52Which TWO steps are essential for parsing a command output that contains key-value pairs formatted as 'key = value'?
53Which THREE common challenges arise when using Regex to extract data from command outputs in patterns?
54You 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?
55You 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?
56You 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?
57A 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?
58You 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?
59A 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?
60You 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?
61A 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?
62You 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?
63A 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?
64You 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?
65A 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?
66A 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?
67While 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?
68You 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.)
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.
The Courseiva SERVICENOW-CIS-DISCOVERY question bank contains 68 questions in the Discovery Pattern Design domain. Click any question to see the full explanation and answer breakdown.
Start with a 10-question focused session to identify your baseline accuracy in this domain. Read every explanation — even for questions you answer correctly — to understand the reasoning. Once you score consistently above 80%, move to a 20–30 question session to confirm depth before moving to the next domain.
Yes — the session launcher on this page draws questions exclusively from the Discovery Pattern Design domain. Choose 10, 20, 30, or 50 questions for a focused session, or click individual questions to review them one by one.
Save your results, see per-domain analytics, and get readiness scores — free, for every certification.
Sign Up FreeFree forever · Every certification included