View Full ServiceNow CAD Exam Dumps and Practice Test Dumps.
Question 121
Which ServiceNow feature allows developers to define conditions that determine when a Business Rule should execute?
- UI Action
- Business Rule Condition
- Dictionary Override
- Form View
Correct Answer: 2
Explanation
A Business Rule Condition determines whether a Business Rule should execute for a particular record operation. Developers can configure conditions based on field values so that the script runs only when the required criteria are met. This is important for performance because unnecessary Business Rule execution can increase server processing. For example, a rule might run only when a record’s state changes to a particular value. UI Actions provide user interface controls, Dictionary Overrides modify inherited field behavior, and Form Views control presentation. Carefully designed conditions help keep server-side application logic efficient, predictable, and easier to maintain.
Question 122
Which method is commonly used to check whether a GlideRecord field value has changed?
- changes()
- isChanged()
- hasChanged()
- valueChanged()
Correct Answer: 1
Explanation
The changes() method can be used in appropriate server-side Business Rule contexts to determine whether a field value has changed during the current transaction. This is particularly useful when a Business Rule should perform an action only when a specific field changes. For example, logic may need to execute only when the state or priority of a record is modified. Developers can also use methods such as changesTo() and changesFrom() for more specific comparisons. Using these methods helps avoid unnecessary processing when unrelated fields are updated and makes Business Rule behavior more precise.
Question 123
Which API is commonly used to access information about the current user in server-side scripts?
- GlideDateTime
- GlideAggregate
- GlideUser
- GlideRecord
Correct Answer: 3
Explanation
GlideUser provides functionality for working with information about the current user and user-related context. Through the gs.getUser() interface, developers can access information such as roles, user identity, and other user properties. This can be useful when application logic needs to behave differently depending on the current user’s context. GlideDateTime handles date and time values, GlideAggregate performs aggregate database operations, and GlideRecord is primarily used for querying and manipulating records. Developers should distinguish between checking user information for application behavior and enforcing security, which should generally be handled through ACLs.
Question 124
Which ServiceNow feature is designed to allow a user to create a record through a simplified form?
- Record Producer
- Transform Map
- Script Action
- Scheduled Job
Correct Answer: 1
Explanation
A Record Producer provides a simplified interface that allows users to create records in a target table. Record Producers are commonly used in Service Catalog scenarios where users should provide a limited set of information rather than interact directly with a full table form. The supplied values can be mapped to fields on the target record, and additional scripts or logic can be used when necessary. Transform Maps handle imported data, Script Actions respond to events, and Scheduled Jobs execute code at configured times. Record Producers are useful for creating user-friendly entry points into application processes.
Question 125
Which ServiceNow feature allows developers to define custom REST endpoints that external systems can call?
- REST API Explorer
- Script Include
- Scripted REST API
- REST Message
Correct Answer: 3
Explanation
A Scripted REST API allows developers to create custom REST endpoints in ServiceNow. Developers can define resources, HTTP methods, request parameters, authentication requirements, and server-side scripts that determine how requests are processed. This is useful when external systems need access to application-specific functionality that is not provided by standard ServiceNow APIs. A REST Message is primarily used for outbound communication from ServiceNow to external systems, while REST API Explorer helps developers test and explore available APIs. Script Includes store reusable server-side logic and may be used internally by Scripted REST API resources.
Question 126
Which HTTP status code generally indicates that a REST request was successful and returned a resource?
- 404
- 201
- 500
- 401
Correct Answer: 2
Explanation
HTTP status code 201 generally indicates that a request successfully created a resource. It is commonly returned by APIs after successful POST operations that create a new record or resource. Status 404 indicates that the requested resource could not be found, 500 represents a server-side error, and 401 generally indicates that authentication is required or failed. The exact response codes depend on the API implementation, but understanding standard HTTP status codes is important when developing ServiceNow integrations. Developers should inspect both the response status and response body when troubleshooting REST integrations.
Question 127
Which ServiceNow feature allows developers to configure reusable logic that can be called from a Client Script using GlideAjax?
- Client Callable Script Include
- UI Action
- Data Policy
- Business Rule
Correct Answer: 1
Explanation
A Client Callable Script Include is specifically configured so that client-side scripts can communicate with server-side logic through GlideAjax. This allows the browser to request information or processing from the server without exposing the complete server-side implementation to the client. The Script Include can receive parameters, perform server-side processing, and return an appropriate response. Business Rules execute based on record operations, UI Actions provide interactive controls, and Data Policies enforce data requirements. Client Callable Script Includes should be designed carefully so that only necessary functionality is exposed and user-provided parameters are properly validated.
Question 128
What is the primary purpose of an application menu in ServiceNow?
- Define database indexes
- Group related modules for navigation
- Execute Business Rules
- Store integration credentials
Correct Answer: 2
Explanation
An Application Menu groups related modules and provides an organized navigation area for users. Modules can point to lists, forms, reports, dashboards, or other application functionality. Proper application navigation makes it easier for users to find the features relevant to their responsibilities. Application Menus do not execute Business Rules, define database indexes, or store integration credentials. Access to modules can also be restricted using roles and other configuration options. When developing a custom application, developers should organize modules logically so users can navigate the application efficiently without being exposed to unnecessary functionality.
Question 129
Which ServiceNow feature allows an administrator to restrict access to a module based on user roles?
- Application Menu module roles
- Transform Map
- Dictionary Entry
- Script Action
Correct Answer: 1
Explanation
Application modules can be configured with roles that determine which users can access them through the application navigator. This helps control the visibility of navigation options for different user groups. However, module visibility should not be treated as the primary security mechanism for protecting data. ACLs must still enforce access to tables, records, and fields. Transform Maps process imported data, Dictionary Entries define field metadata, and Script Actions respond to events. Proper ServiceNow security generally uses navigation restrictions for usability while relying on server-side ACLs for actual authorization and data protection.
Question 130
Which feature is used to define a condition that filters records available in a reference field?
- UI Action
- Reference Qualifier
- Scheduled Script
- Notification
Correct Answer: 2
Explanation
A Reference Qualifier filters the records that users can select in a reference field. It can be configured with conditions or scripted logic depending on the complexity of the requirement. For example, a reference field might be configured to display only active users or records associated with a specific department. Reference Qualifiers improve usability by reducing irrelevant choices. They should not be considered a complete security control because filtering choices does not necessarily prevent access to records through other methods. UI Actions create interactive controls, Scheduled Scripts perform scheduled processing, and Notifications communicate information to users.
Question 131
Which ServiceNow API is commonly used to retrieve a record’s field value as stored in the database?
- getDisplayValue()
- getValue()
- getLabel()
- getStoredValue()
Correct Answer: 2
Explanation
The getValue() method is commonly used to retrieve the underlying stored value of a field. This is particularly important for reference fields, where the stored value is typically a sys_id while the display value may be a user’s name or another human-readable value. Developers can use getDisplayValue() when they need the value shown to users. Understanding the difference between stored and display values is important for scripting, integrations, and database operations. Using the appropriate method prevents problems when scripts require an internal identifier rather than the human-readable value displayed on a form.
Question 132
Which feature allows developers to create a custom action that can be used within Flow Designer?
- Custom Action
- Dictionary Override
- Client Script
- Form Section
Correct Answer: 1
Explanation
A Custom Action extends Flow Designer by providing specialized functionality that can be called from flows. Developers can define inputs, processing logic, and outputs for the action, allowing it to become a reusable building block for automation. This is useful when standard Flow Designer actions cannot meet a particular application requirement. Dictionary Overrides modify inherited field behavior, Client Scripts control browser-side behavior, and Form Sections organize fields on forms. Custom Actions can help maintain clean architecture by encapsulating specialized logic rather than embedding large amounts of custom code directly into individual flows.
Question 133
Which ServiceNow component is most appropriate for executing logic when a record is inserted or updated on the server?
- Business Rule
- Client Script
- UI Policy
- Form Layout
Correct Answer: 1
Explanation
Business Rules are designed for server-side logic that runs when database operations occur, including inserts and updates. Developers can configure a Business Rule to execute Before, After, or Async depending on the requirement. This makes Business Rules suitable for enforcing business logic, calculating values, creating related records, or responding to changes. Client Scripts and UI Policies execute primarily in the browser and are focused on form behavior, while Form Layout controls presentation. Developers should avoid using server-side Business Rules for logic that only needs client-side interaction because unnecessary server processing can affect application performance.
Question 134
Which method is used to initialize a GlideRecord for creating a new record?
- prepare()
- initialize()
- create()
- newRecord()
Correct Answer: 2
Explanation
The initialize() method prepares a GlideRecord object for creating a new record. After initializing the object, developers can assign values to fields and then call insert() to create the record in the database. A typical pattern is to create a GlideRecord for the target table, call initialize(), set the required fields, and then call insert(). The other listed methods are not the standard GlideRecord method used for this purpose. Developers should distinguish between creating a new record and retrieving an existing one because the appropriate GlideRecord workflow differs.
Question 135
Which ServiceNow feature is used to organize reusable application components such as tables, scripts, and modules into an application?
- Application scope
- Notification
- Transform Map
- Data Policy
Correct Answer: 1
Explanation
Application scope provides boundaries around application components and helps organize related tables, scripts, modules, and other application files. Scoped applications can control how their resources interact with components belonging to other scopes. This helps create modular applications and reduces unintended dependencies. Notifications handle communication, Transform Maps process imported data, and Data Policies enforce data requirements. Scope is particularly important when building applications intended to be maintained independently or distributed through application mechanisms. Developers should understand cross-scope access because scoped applications may require explicit privileges when interacting with resources outside their own scope.
Question 136
Which feature can be used to automatically send an email when a specified record condition is met?
- Notification
- Dictionary Entry
- Form Layout
- Reference Qualifier
Correct Answer: 1
Explanation
A Notification can be configured to send email when specified record conditions or events occur. Developers or administrators can define recipients, conditions, message content, and other notification settings. Notifications can use record fields to personalize the message and can also respond to events generated by application logic. Dictionary Entries define field metadata, Form Layout controls presentation, and Reference Qualifiers filter records available in reference fields. Notifications should be designed carefully to avoid excessive messages, particularly for records that are frequently updated. Appropriate conditions and event-driven designs can make notifications more useful and manageable.
Question 137
Which ServiceNow feature is intended to provide a visual interface for building and configuring application logic with minimal scripting?
- Flow Designer
- GlideRecord
- Script Include
- Business Rule
Correct Answer: 1
Explanation
Flow Designer provides a visual, low-code environment for creating application automation with triggers, actions, conditions, and subflows. It allows developers and administrators to automate business processes without writing custom JavaScript for every step. For example, a flow can respond to a record event, perform updates, request approval, and send notifications. GlideRecord is a server-side database API, Script Includes store reusable server-side logic, and Business Rules execute server-side logic based on record operations. Flow Designer is especially useful when an automation requirement can be implemented using standard actions and supported integrations.
Question 138
Which API is commonly used to format and manipulate date and time values?
- GlideDateTime
- GlideRecord
- GlideAjax
- GlideUser
Correct Answer: 1
Explanation
GlideDateTime is designed for working with date and time values in ServiceNow server-side scripts. It provides methods for comparing dates, adding or subtracting time, formatting values, and handling date-time calculations. This API is useful for applications that calculate deadlines, durations, schedules, or timestamps. GlideRecord is used for database operations, GlideAjax provides client-to-server communication, and GlideUser handles user-related information. Developers should use the platform’s date and time APIs rather than manually manipulating date strings whenever possible because ServiceNow has specific time-zone and date storage behavior that can otherwise lead to incorrect calculations.
Question 139
Which security mechanism should be used to enforce access to a specific field regardless of how the user accesses the data?
- Form Layout
- Field-level ACL
- UI Policy
- Client Script
Correct Answer: 2
Explanation
A field-level ACL is the appropriate mechanism for enforcing access to a specific field at the platform security level. It can determine whether a user is allowed to read or modify a field based on roles, conditions, or scripts. This protection is stronger than simply hiding a field with a UI Policy or removing it from a Form Layout because those are primarily presentation mechanisms. Client Scripts also operate in the browser and should not be relied upon for security. Developers should test field-level ACLs carefully to ensure that protected information remains inaccessible through supported access paths.
Question 140
Which deployment approach allows developers to move application configuration changes while preserving a record of those changes?
- Update Set
- UI Policy
- Reference Qualifier
- Client Script
Correct Answer: 1
Explanation
Update Sets provide a mechanism for capturing supported configuration changes and moving them between ServiceNow instances. They also provide a record of the configuration changes included in the deployment package. This is useful in development environments where changes need to move through testing before reaching production. Developers should review Update Sets carefully for dependencies and captured records before deployment. UI Policies, Reference Qualifiers, and Client Scripts are individual application components rather than deployment mechanisms. Depending on the development model and ServiceNow version, source control and application repository capabilities may also be used for managing application development and deployment.