0% found this document useful (0 votes)
33 views53 pages

ServiceNow Test Framework Questions

Uploaded by

agarwalvarsha632
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views53 pages

ServiceNow Test Framework Questions

Uploaded by

agarwalvarsha632
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Question 1: Incorrect

Which module creates a user for a Automated Test Framework?

Create Group

(Incorrect)

Create a User

(Correct)

Create Role

User Creation
Explanation

Question 2: Incorrect
Which Script Debugger feature helps filter debugging searches to quickly narrow down
script problems?

Script Filter

(Incorrect)

Script Tracer

(Correct)

Session Tracer

Script Search
Explanation
Question 3: Correct
When managing global application files, you can NOT:

Move application files into or out of scoped application

(Correct)

Remove files from a global application

Move an application file between global applications

Add files from global scope to a global application


Question 4: Incorrect
When ServiceNow receives an inbound email it attempts to match the sender to a user
record. Which one of the following is NOT true?

If automatic user creation is disabled, the Guest user is impersonated

(Incorrect)

Inbound Action scripts can reference the user using methods such as
[Link]()

If a match is found, the user is impersonated for the execution of the Inbound
Actions

If no match is found the email is sent to the Inbox Junk folder

(Correct)

Explanation
Cause

If an email is ignored it will be sent to the junk folder. The reasons for an email to be
ignored can vary.

1. The email is not in the Trusted Domains in the email properties.


• Go to Email Properties and check if the domain is added in the trusted
domain fields.
2. The message is ignored by an inbound email action.
3. SPAM protection: If the email headers have "X-ServiceNow-Spam-Flag:YES", it
indicates the email may be spam.
4. Email Filters: Enabling the email filter plugin brings the filter like;
• Ignore header: Ignores the message if the mentioned headers are present.
• Ignore sender: Ignores the message received from the mentioned sender.
• Ignore subject: Ignores the message when it's received with a specified
subject.
• Move to Junk: Sends the message to the junk on a specified condition.
5. The email sender passed all the above and the user is locked out or inactive.
Question 5: Incorrect
Which of the following is NOT a type of authentication used by REST APIs?

CIM

(Correct)

JDBC

(Correct)

Basic Auth

Mutual authentication using protocol profiles

OAuth 2.0
Explanation
Question 6: Incorrect
Which of the following can be used to place a report on a Homepage?

Catalog

(Incorrect)

Gauge

(Correct)

Tag

Gadget
Question 7:
Skipped
As it relates ServiceNow reporting, which of the following statements describes what a
metric can do?

A metric is a time measurement used to report the effectiveness of workflows


and SLAs

A metric is a comparative measurement used to report the effectiveness of


workflows and SLAs

A metric is a report gauge used on homepages to display real-time data

A metric is used to measure and evaluate the effectiveness of IT service


management processes

(Correct)

Explanation

Question 8:
Skipped
What one of the following is the correct syntax for adding dynamic content to a
notification's HTML message field?

$current.short_description

${short_description}

(Correct)

$short_description

${current.short_description}

current.short_description
Explanation

Question 9:
Skipped
Which of the following statements is true for managing applications purchased from
the Store?

Applications that belong to other organizations can be customized.

There are separate entitlements for application-customizations.

Customizations cannot revert back to the base system application.

(Correct)


Applications that belong to other organizations can be changed.
Question 10:
Skipped
How is access to Application menus and modules controlled?

Roles

(Correct)

Access controls

Client Scripts

Application Rules
Explanation
Question 11:
Skipped
Which utility is used to determine if field names in an Import Set match the field names
on the target table when importing data into ServiceNow?

Auto Map Matching Fields

(Correct)

Transform Maps

Business Service Management Map

CI Relationship Builder
Explanation

Question 12:
Skipped
In Form Designer, when you edit the label of a field on a child table, the label is updated
on?

Base table


Child table

(Correct)

Parent table

All tables
Question 13:
Skipped
Which of the following variables are NOT available in all Business Rules? (Select All
That Apply)

previous

(Correct)

GlideSystem

g_scratchpad

(Correct)

current
Explanation
Display business rules do not have access to previous, before after and async do not
have access to g_scratchpad.
Question 14:
Skipped
What are the UX (user experience) options available in Guided Application Creator?


Desktop

Classic

(Correct)

Tablet

Mobile

(Correct)

Workspace
Explanation
Question 15:
Skipped
Which of the following pops out a special field messages?

g_form.showFieldMessage()

g_form.showFieldMsg()

(Correct)

g_form.addErrorMessage()


g_form.addFieldMessage()

g_form.addInfoMessage()
Explanation

Question 16:
Skipped
What is the main purpose of Integration Hub in ServiceNow?

Enables execution of third-party APIs as part of a flow when a specific event


occurs in ServiceNow

(Correct)

Activity in workflow designer to integrate 3rd party applications


Custom application from ServiceNow store used for importing data into
ServiceNow
Explanation

Question 17:
Skipped
Which of the following is NOT report type in ServiceNow reports?

Trend

Chart

(Correct)

List

Line
Explanation
Question 18:
Skipped
Identify the way(s) an application can respond to an Event generated by the
[Link]() method.

UI Policy

Scheduled Job

(Correct)

Script Action

(Correct)

Email Notification

(Correct)

Question 19:
Skipped
When evaluating Access Controls, ServiceNow searches and evaluates:

Only for matches on the current field

From the most generic match to the most specific match

From the most specific match to the most generic match

(Correct)

Only for matches on the current table


Explanation
Question 20:
Skipped
How can a developer extract data from the response body after calling a REST web
service?

Use the XMLDocument2 Script Include to parse the XML.

Click the Convert Response Body button to convert the response.


Use the JSON API to convert JSON formatted responses to a JavaScript object

(Correct)

Use the XMLDocument2 API to extract data from XML formatted responses.

(Correct)

Use the Convert Response Body wizard to translate the response into an object.
Question 21:
Skipped
Which of the following objects does a before business rule have access to?

current

previous

All the above

(Correct)

GlideRecord
Explanation
Question 22:
Skipped
Which of the following API methods are used when working with datetime in a privately
scoped application?

GlideDateTime

(Correct)

[Link]()

GlideRecord

GlideSystem
Question 23:
Skipped
Which of the following scripts do not always run on the server side?

Business Rule

UI Action

(Correct)

Script Includes

Script Action

Explanation
For using UI Action as server and client both, there is a check box named as client, tick
that one and then in your script you can write client side code and a function named as
gsftSubmit() is used to call server end and after that you can put server side code.

Below link will help you to understand more!!

[Link]
action/
Also there is one out of the box UI Action named as 'Reopen Incident' used as both
client and server side, you can go through it.

Question 24:
Skipped
Which protects applications by identifying and restricting access to application files and
data?

ACLs

Application Scope

(Correct)

Roles
Explanation

Question 25:
Skipped
Which one of the following is true about the Client side scripted security?

Client side scripts have access to the GlideUser(g_user) user methods


(Correct)

Client side scripts have access to the GlideSystem(gs) user methods

Client side scripts have access to both GlideSystem(gs) and GlideUser(g_user)


methods
Question 26:
Skipped
Which of the following are NOT methods from the GlideRecord API?

addAndQuery()

(Correct)

addQuery()

addOrQuery()

(Correct)

addEncodedQuery()

query()
Explanation
[Link]
plans/quebec/new_to_servicenow/app_store_learnv2_scripting_quebec_gliderecord
Question 27:
Skipped
Which of the following actions is not supported by Studio?

Download only the required session logs.

Integrate with source control

Enable context menu options to modify data

(Correct)

Format code indentation with JS Beautify


Explanation
[Link]
development/page/build/applications/concept/c_ServiceNowStudio.html
Question 28:
Skipped
The option in Table configuration that allows this table to be extended from?

Extensible

(Correct)

Extended By

Can be Extended
Explanation
Question 29:
Skipped
Which of the following are steps in the generalized process for working with events?

Respond to the event

(Correct)

Write a Business Rule

Create a Scheduled Script Execution

Add an event to the Event Registry

(Correct)

Generate the event

(Correct)

Question 30:
Skipped
Which of the following modules enables security rule debugging?

System Diagnostics > Debugging > Debug Security Rules

Access Control > Debugging > Debug Security Rule

System Security > Debugging > Debug Security Rules

(Correct)

System Security > Session Debug > Debug Security Rules

System Diagnostics > Session Debug > Debug Security Rules


Explanation

Question 31:
Skipped
If the Create module field is selected when creating a table, what is the new module’s
default behavior?

Open an empty form so new record can be created

Display an empty homepage for the application

Display a list of all records from the table

(Correct)

Open a link to wiki article with instructions on how to customize the behavior of
the new module
Explanation

Question 32:
Skipped
When debugging a script a developer can log breakpoints or conditional log points to
log messages to the console at specific lines, and remove log points when they are
done debugging them. which system property must be set to true to enable log points?

[Link].log_point

(Correct)

[Link]

[Link].js_can_debug


[Link].index_suggestion.debug
Explanation

Question 33:
Skipped
Which of the below is the best practice for adding instructions to a form?

Context menu or UI Action

Related links to wiki pages


Form Annotations

(Correct)

Populated read only field


Explanation

Question 34:
Skipped
Which of the following would not be good fit for an application to run on the ServiceNow
instance?

Virtual Reality Gaming application

(Correct)

Facilities Management application

A meeting room scheduling application

Billing & Cost Management application


Question 35:
Skipped
An application has a table named MyTable with the following three fields: field1, field2,
field3. [Link] is set for READ for the Admin and Itil roles. Table.field3 is set for the
READ by the Admin role only. What with the Itil role be able to read? (select one)


field1, field2, field3

field1, field2

(Correct)

field1, field3

field2, field3
Question 36:
Skipped
What is the name of the intuitive development interface for building applications?

ServiceNow Creator

Guided Application Creator

(Correct)

App Engine Studio

ServiceNow Studio
Explanation

Question 37:
Skipped
What does the code search feature do in the studio?

Searching in a business rule

(Correct)

Searching in all applications

(Correct)

Search from a list of applications

Searching in your application

(Correct)

Question 38:
Skipped
Which method is used to retrieve system property?

[Link]()

(Correct)

[Link]()

g_form.getAppProperty()


g_form.getProperty()
Explanation

Question 39:
Skipped
What is the name of the guided application creator plugin?

[Link]-guided-creator-app

[Link]-guided-app-creator


[Link]-guided-app-creator

(Correct)

[Link]-app-creator
Explanation

Question 40:
Skipped
What is true about homepages on mobile?

Same as desktop homepages without the delete option

Same as desktop homepages with the delete option

There are no homepages on mobile

(Correct)

Same as desktop homepages in every way


Question 41:
Skipped
Which one of the following is NOT a GlideUser (g_user) method?

userName
(Correct)

getFullName()

hasRole()

hasRoleExactly()
Question 42:
Skipped
While debugging security rules, what does the blue color code indicate?

Passed

Access granted

Indicates the ACL is already in the cache and does not need to be re-evaluated

(Correct)

Failed

Access denied
Explanation
Question 43:
Skipped
Which of the following statements must evaluate to true to grant a user access to
application table’s record?

a) Conditions configured in the access controls must evaluate to true

b) Scripts configured in the access control must evaluate to true

c) The user has one of the roles specified in the required roles related list

d) Оther matching access controls for the records evaluate to true

a and b

a, b, c

a and c

a, b, c and d

(Correct)

Explanation

Question 44:
Skipped
What are the 2 core base tables from which all other tables are extended in
ServiceNow?

incident and cmdb_ci

incident and cmdb_rel_ci

task and cmdb_model

task and cmdb

(Correct)

Question 45:
Skipped
When creating an application via Guided Application Creator, which of the following
is NOT a user experience options?

Portal

(Correct)

Classic

Workplace

(Correct)

Mobile
Question 46:
Skipped
How are flow variables access in the flow designer data panel?

New tabs

Scratchpad variables

Newly generated icons

Data pills

(Correct)
Explanation
The visual representation of a variable in the Flow Designer user interface is a data pill.
Each variable has its own data pill that developers can use to add the variable to action
inputs.
Question 47:
Skipped
Which one of the following best describes what a flow is?

A sequence of activities to automate processes on the platform

A sequence of steps to automate processes on the platform

A sequence of actions to automate processes on the platform

(Correct)

A script that defines the steps to automate processes on the platform


Question 48:
Skipped
You are writing an Async Business Rule for a table in a different scope than the
Business Rule record. Which one of the following database operations CANNOT be part
of the Async Business Rule's configuration?

Query

(Correct)

Update

Delete

Insert
Question 49:
Skipped
Which method is used in emulating mobile for testing?

$[Link]

$[Link]

$[Link]

(Correct)

$[Link]
Question 50:
Skipped
What debugging method you use in the server side scripting in a scoped application?

[Link]()

[Link]()

(Correct)

[Link]()


[Link]()
Question 51:
Skipped
The getCurrentDomainID() method is part of which scoped class?

GlideRecord

ScopedDCManager

Scoped Domain

Scoped GlideSession

(Correct)

Explanation

Question 52:
Skipped
Which of the following is NOT an example of when an application might use a
Scheduled Script Execution(Scheduled Job)?

The application needs to send weekly email remainders

The application needs to run a client-side script at the same time every day
(Correct)

The application needs to query the database every day to look for a unassigned
records

The application needs to run a clean up script on the last day of every month
Question 53:
Skipped
What is not true about email notifications? (select one)

What

Who

When

How

(Correct)

Explanation
Question 54:
Skipped
What are the core activities of a Workflow?

Service Catalog

(Correct)

Timers

(Correct)

Notifications

(Correct)

Utilities

(Correct)

Conditions

(Correct)

Approvals

(Correct)

Test

Subflows

(Correct)

Explanation

Question 55:
Skipped
Which role is required to access Guide Application Creator?

sn_gac.app_creator

sn_g_app_creator.app_creator

(Correct)

sn_developer.app_creator

sn_app_creator.app_creator
Explanation

Question 56:
Skipped
Which of the following is NOT a type of annotation?

Section Details

Info Box Yellow

(Correct)

Info Box Red

Info Box Blue

Text

Line Separator

Section Separator
Explanation
Question 57:
Skipped
Which of the below is not a valid state for a scheduled job in ServiceNow instance?

Waiting for approval

(Correct)

Running

Queued

Error

Ready
Explanation

Question 58:
Skipped
In a business rule which of the following returns the sys_id of the current logged in
user?

[Link]()

g_form.getUserID()

[Link]()

(Correct)


g_form.getUserSysID()
Explanation

Question 59:
Skipped
How does ServiceNow match inbound email to existing records?

Subject Line

Record link


Watermark

(Correct)

sys_id
Explanation

Question 60:
Skipped
Which of the following function is NOT available in the ServiceNow REST API?

PATCH

COPY

(Correct)

POST

DELETE

GET

PUT
Explanation

Question 61:
Skipped
Application files in a ServiceNow application are:

XML exports of an application export set

csv files containing data imported into an application

An xml export of the applications table records

Artifacts comprising the ServiceNow application

(Correct)
Explanation

Question 62:
Skipped
Which API provides methods to translate text into multiple languages in real life?

Genius Result Answer

Genius Translation

Dynamic Result Answer

Dynamic Translation

(Correct)
Explanation

Continue
Retake test

Common questions

Powered by AI

Client-side scripted security in ServiceNow refers to the ability to use scripts to apply security controls dynamically within the client’s browser, typically employing GlideUser (g_user) methods . Unlike server-side security, which is enforced regardless of the client-side configuration, client-side security can provide immediate feedback and enhance user experience but is not a substitute for server-side enforcement, due to the potential for manipulation on the client side .

The Guided Application Creator influences user experience options by providing templates like 'Classic' and 'Mobile' but not 'Portal' or 'Workplace', offering a tailored approach for developers to structure and customize applications according to specific user needs . This guide-based approach facilitates the development process, ensuring that the applications align with business requirements and user preferences, ultimately enhancing the user experience by providing context-appropriate interfaces .

ServiceNow metrics serve as a comparative measurement to report on the effectiveness of workflows and SLAs, and they are used to measure and evaluate the effectiveness of IT service management processes . They provide real-time data that allows for the assessment of how well IT services are being delivered and managed, contributing to continuous improvement and alignment with business goals .

ServiceNow evaluates access controls by searching from the most specific match to the most generic match . This approach ensures that the most explicit rules, which are usually the most restrictive, take precedence. It prevents broad and potentially insecure access by enforcing more stringent conditions if found earlier in the evaluation process. This hierarchical evaluation is critical for maintaining high security and ensuring that access levels align with users' specific roles and responsibilities .

GlideDateTime is advantageous for date/time manipulations in privately scoped applications due to its comprehensive set of methods that integrate seamlessly with ServiceNow's platform . It allows developers to perform complex date/time operations, including calculations and conversions, in a consistent manner across the platform. This integration reduces the likelihood of errors that might arise from using external date/time libraries, offering a unified approach to handling temporal data within different scopes .

The Integration Hub in ServiceNow enhances its capability to interact with third-party applications by enabling the execution of third-party APIs as part of a flow when specific events occur. This allows ServiceNow to seamlessly integrate processes with external systems and services, facilitating automation and extending its functionality beyond native applications .

ServiceNow facilitates debugging for security rules through the 'System Security > Debugging > Debug Security Rules' module, which allows developers to track and analyze security rule evaluations . This approach helps identify and resolve issues in security configurations by making the security flow visible and understandable, ultimately improving the security posture by ensuring that rules work as expected and unauthorized access is prevented .

Using incorrect syntax when adding dynamic content to notifications can lead to improper rendering or errors in the notification message. The correct syntax as suggested is '${short_description}', which ensures the dynamic content is correctly interpreted and displayed in the notification . Using other incorrect options such as '$current.short_description' might result in unresolved variables and ineffective communication .

Using gs.getUserID() in business rules is significant because it reliably retrieves the sys_id of the current logged-in user without relying on client-side input, which could be manipulated . This function allows developers to implement secure and personalized logic, such as access control and user-specific process flows, ensuring that actions and data retrieval are tailored specifically to the authenticated user, thus enhancing both security and user experience .

Customizations cannot be reverted to the base system because they create a unique instance of the application that may have significantly altered configurations, potentially integrating additional scripts or APIs that are inconsistent with the base system . Reverting such changes could disrupt the application’s functionality and cause dependencies issues. This limitation emphasizes the importance of strategic planning before embarking on significant customizations .

You might also like