View Full ServiceNow CAD Exam Dumps and Practice Test Dumps.
Question 361
Which ServiceNow feature is used to define a reusable set of fields and behavior that can be inherited by another table?
- Reference Qualifier
- Table Extension
- Transform Map
- UI Policy
Correct Answer: 2
Explanation
Table Extension allows a child table to inherit fields and functionality from a parent table. This supports reuse within the ServiceNow data model and reduces the need to duplicate common fields across related tables. A well-known example is the Task table, which provides common functionality to tables such as Incident and Change Request. A child table can inherit parent functionality while also adding specialized fields and behavior. Reference Qualifiers filter records, Transform Maps process imported data, and UI Policies control form behavior. Table inheritance is therefore an important concept when designing structured and reusable ServiceNow applications.
Question 362
Which method is commonly used to specify a field value on a GlideRecord before inserting or updating it?
- setValue()
- next()
- query()
- deleteRecord()
Correct Answer: 1
Explanation
The GlideRecord setValue() method is used to assign a value to a field. It is commonly used when creating a new record or modifying an existing record before calling insert() or update(). For example, a developer can use gr.setValue(‘short_description’, ‘Example’) to assign a value to a field. Using setValue() can make scripts clear and consistent, particularly when field names or values are handled dynamically. query() retrieves records, next() iterates through query results, and deleteRecord() removes a record. Developers should ensure the assigned value matches the field’s expected data type.
Question 363
Which ServiceNow feature is primarily used to define what happens when a user clicks a custom form button?
- Data Policy
- UI Action
- Dictionary Entry
- Notification
Correct Answer: 2
Explanation
A UI Action defines interactive buttons, links, and menu actions that users can select on ServiceNow forms and lists. A developer can configure conditions that determine when the UI Action is available and can provide client-side or server-side scripts to perform the desired operation. For example, a custom button could update a record’s state or create a related record. Data Policies enforce data requirements, Dictionary Entries define field metadata, and Notifications communicate with users. UI Actions therefore provide the appropriate mechanism for implementing custom user-triggered operations within the ServiceNow interface.
Question 364
Which API is commonly used to log informational messages from server-side scripts?
- GlideRecord
- GlideSystem
- GlideForm
- GlideAggregate
Correct Answer: 2
Explanation
GlideSystem, accessed through the gs object, provides several methods for logging information and interacting with the ServiceNow system. Developers can use methods such as gs.info(), gs.warn(), and gs.error() to record messages that help with troubleshooting and monitoring. GlideSystem also provides functionality related to users, roles, dates, and system-level operations. GlideRecord is used for database records, GlideForm handles client-side form interactions, and GlideAggregate performs aggregate queries. Appropriate logging can make application troubleshooting easier, although developers should avoid excessive logging in production environments when it is not required.
Question 365
Which Client Script type is executed when a ServiceNow form first loads?
- onSubmit
- onChange
- onLoad
- onCellEdit
Correct Answer: 3
Explanation
An onLoad Client Script executes when a form is initially loaded in the user’s browser. It is commonly used to set initial field behavior, display messages, populate information, or make fields visible, hidden, mandatory, or read-only based on conditions. An onChange Client Script responds when a specified field changes, while an onSubmit Client Script executes when the user attempts to save the form. onLoad scripts should be kept efficient because they execute whenever the relevant form is opened. Developers should also avoid unnecessary server calls when the required information is already available on the client.
Question 366
Which ServiceNow feature can enforce field requirements when records are being processed outside the normal form interface?
- Data Policy
- UI Action
- Form Layout
- Application Menu
Correct Answer: 1
Explanation
Data Policies are used to enforce data requirements in a way that can apply beyond a specific user interface. They are useful when an organization needs certain fields to be mandatory or follow specified conditions regardless of how the record is being created or updated through supported mechanisms. UI Policies primarily control behavior on forms, while Form Layout controls presentation. Application Menus provide navigation. Data Policies therefore help maintain data consistency across different data-entry methods. Developers should select Data Policies when the requirement concerns data quality rather than simply how fields appear or behave on a particular form.
Question 367
Which GlideRecord method is used to move to the next record in a result set?
- query()
- get()
- next()
- initialize()
Correct Answer: 3
Explanation
The next() method moves a GlideRecord object to the next record returned by a query. It is commonly used in a loop such as while (gr.next()) to process multiple records. Before using next(), developers normally establish query conditions with methods such as addQuery() and execute the query with query(). The method returns a Boolean value indicating whether another record is available. get() retrieves a specific record, initialize() prepares an object for a new record, and query() executes the database query. Efficient iteration requires appropriately restricted query conditions.
Question 368
Which ServiceNow feature is used to define how incoming data is mapped and transformed into a target table?
- UI Policy
- Transform Map
- Notification
- Script Include
Correct Answer: 2
Explanation
A Transform Map defines how data from an Import Set is processed and mapped into a target ServiceNow table. Developers can specify source-to-target field mappings, transformation scripts, coalesce fields, and other processing rules. The Import Set acts as the staging area, while the Transform Map determines how that staged information becomes target records. Transform Maps are commonly used for data migrations and integrations with external systems. UI Policies manage form behavior, Notifications send communications, and Script Includes store reusable server-side logic. Proper Transform Map configuration helps ensure imported data is accurately processed and avoids unnecessary duplicate records.
Question 369
Which object is commonly used to access variables submitted through a Record Producer?
- current
- producer
- g_form
- gs
Correct Answer: 2
Explanation
The producer object provides access to variables submitted through a Record Producer. Developers can use these values when scripting how the Record Producer populates the target record. This allows users to enter information through a simplified catalog-style interface while the system creates a record in the appropriate table. The current object is commonly associated with Business Rules, g_form is used for client-side form manipulation, and gs provides GlideSystem functionality. Understanding the Record Producer scripting context helps developers correctly transfer user-provided variable values into fields on the newly created record.
Question 370
Which feature is designed to store configuration values that can be changed without modifying application source code?
- System Property
- UI Action
- Import Set
- Reference Field
Correct Answer: 1
Explanation
System Properties provide a way to store configurable values separately from application code. Developers can retrieve these values from server-side scripts, allowing administrators to change configuration without directly editing JavaScript. Properties can be used for thresholds, feature settings, integration configuration, and other application-specific values. This separation between configuration and code makes applications easier to maintain across development, testing, and production environments. UI Actions provide interactive controls, Import Sets stage incoming data, and Reference Fields establish relationships between records. System Properties are therefore useful for flexible and environment-specific application configuration.
Question 371
Which ServiceNow API is used to perform client-to-server communication from a Client Script?
- GlideAggregate
- GlideRecord
- GlideAjax
- GlideSystem
Correct Answer: 3
Explanation
GlideAjax allows a Client Script to communicate with server-side logic. It is commonly used with a client-callable Script Include. The client sends parameters through GlideAjax, the server-side Script Include performs the required operation, and a response is returned to the client. This approach is useful when a client-side script needs information that is only available on the server. GlideRecord should generally be used on the server for database operations, GlideAggregate handles aggregation, and GlideSystem provides server-side system functionality. GlideAjax therefore provides an important bridge between browser-based code and server-side application logic.
Question 372
Which Business Rule timing is generally used to modify a record before it is saved to the database?
- Async
- Display
- After
- Before
Correct Answer: 4
Explanation
A Before Business Rule executes before the database operation takes place. This makes it suitable for modifying field values, setting defaults, performing validations, or calculating information before the record is saved. Changes made to the current object can become part of the same database transaction. After Business Rules execute after the database operation, Async Business Rules process work asynchronously, and Display Business Rules are associated with preparing records for display. Developers should select Before timing when changes need to be made as part of the current transaction before the record is committed to the database.
Question 373
Which component provides a reusable group of automation steps that can be called by multiple flows?
- Action
- Subflow
- Trigger
- Data Pill
Correct Answer: 2
Explanation
A Subflow provides a reusable collection of Flow Designer steps that can be invoked from multiple flows or automation processes. Developers can define inputs, execute a sequence of actions, and produce outputs for the calling flow. Subflows help reduce duplicated automation and make shared business processes easier to maintain. Actions generally perform individual operations, Triggers determine when a flow starts, and Data Pills represent values passed between flow steps. Using Subflows is especially useful when multiple business processes need to perform the same sequence of operations but may start under different conditions.
Question 374
Which GlideRecord method is used to remove an existing record?
- erase()
- deleteRecord()
- remove()
- deleteRow()
Correct Answer: 2
Explanation
The deleteRecord() method is used to delete the record currently represented by a GlideRecord object. Developers can retrieve a specific record or iterate through query results and then call deleteRecord() when deletion is required. Because deletion is destructive, scripts should use precise query conditions and verify that the correct records are targeted. Deleting records may also trigger Business Rules, flows, and other configured platform processing. Methods such as update() and insert() modify or create records instead. Careful testing is particularly important before executing automated deletion logic in a production environment.
Question 375
Which ServiceNow feature provides navigation categories containing modules?
- Application Menu
- Data Policy
- Dictionary Entry
- Transform Map
Correct Answer: 1
Explanation
An Application Menu organizes related modules into a navigation category within ServiceNow. Modules can provide access to lists, forms, reports, and other application functionality. Application Menus make it easier for users to locate features associated with a particular application. Access to menus and modules can also be influenced by roles and configuration. Data Policies enforce data requirements, Dictionary Entries define field metadata, and Transform Maps process imported data. When developing a custom application, creating an appropriate Application Menu and set of modules helps provide a clear and organized navigation experience for users.
Question 376
Which API is specifically designed for retrieving aggregate information from ServiceNow database records?
- GlideUser
- GlideForm
- GlideAggregate
- GlideAjax
Correct Answer: 3
Explanation
GlideAggregate is designed for database aggregation tasks. It can calculate counts, sums, averages, minimums, maximums, and other supported aggregate results. Developers can also group records to produce summarized results. Using GlideAggregate can reduce the need to retrieve every matching record and calculate results manually in JavaScript. GlideUser provides information about the current user, GlideForm handles client-side forms, and GlideAjax provides client-to-server communication. GlideAggregate is especially useful when an application needs summary information rather than complete individual records, such as determining how many records meet a particular condition.
Question 377
Which ServiceNow feature is primarily used to restrict access to records and fields based on security rules?
- ACL
- UI Policy
- Form Layout
- Module
Correct Answer: 1
Explanation
Access Control Lists, or ACLs, define security rules that determine whether users can access tables, records, or fields. ACLs can control operations such as read, create, write, and delete and can evaluate roles, conditions, and scripts. They are the appropriate mechanism for enforcing actual access restrictions. UI Policies can change field behavior on forms but should not be treated as security controls. Form Layout determines field presentation, while Modules provide navigation. Developers should carefully configure ACLs so that sensitive information and operations remain protected regardless of which supported interface is used to access the data.
Question 378
Which ServiceNow feature allows an external system to send HTTP requests to custom application endpoints?
- REST Message
- Scripted REST API
- Scheduled Script
- Notification
Correct Answer: 2
Explanation
A Scripted REST API allows developers to expose custom HTTP endpoints from a ServiceNow instance. External systems can send requests to these endpoints using supported HTTP methods. The associated resource script can process request parameters, interact with ServiceNow records, perform business logic, and construct responses. A REST Message is generally used for outbound communication initiated by ServiceNow toward an external service. Scheduled Scripts automate server-side processing, while Notifications send communications. Scripted REST APIs are therefore particularly useful when an organization needs to provide custom inbound integration capabilities to external applications.
Question 379
Which method retrieves the user-friendly representation of a reference field?
- getDisplayValue()
- getValue()
- setValue()
- addQuery()
Correct Answer: 1
Explanation
The getDisplayValue() method returns the display value of a field rather than its underlying stored value. This is particularly important for reference fields because ServiceNow generally stores the referenced record’s sys_id, while users see a readable value such as a person’s name. getValue() returns the underlying database value instead. setValue() assigns a value to a field, while addQuery() defines database query conditions. Developers should use getDisplayValue() when producing user-facing messages or readable output and getValue() when the underlying database value is needed for programmatic processing.
Question 380
Which ServiceNow framework is used to create automated tests that validate application behavior?
- Update Set
- Flow Designer
- Automated Test Framework
- Import Set
Correct Answer: 3
Explanation
The Automated Test Framework, or ATF, provides tools for creating and executing automated tests in ServiceNow. Developers can define test steps that perform actions and verify expected outcomes. ATF is useful for regression testing, especially after application configuration changes, upgrades, or new development work. Reusable tests can reduce repetitive manual testing and help identify unexpected changes in application behavior. Update Sets are used to transport configuration changes, Flow Designer automates business processes, and Import Sets stage external data. ATF is therefore specifically focused on automated validation and testing of ServiceNow applications.