ServiceNow CAD Practice Test Questions and Exam Dumps Part1 Q1-20

View Full ServiceNow CAD Exam Dumps and Practice Test Dumps.

 

Question 1

Which ServiceNow component is primarily used to define the fields and data structure of a record?

  1. Business Rule
  2. Table
  3. UI Policy
  4. Client Script

Correct Answer: 2

Explanation

In ServiceNow, a table defines the structure used to store records. A table contains fields that represent individual pieces of information, such as names, dates, descriptions, references, and status values. Tables can extend other tables, allowing applications to inherit fields and functionality. Business Rules execute server-side logic, Client Scripts execute client-side logic, and UI Policies control form behavior. Understanding tables is fundamental to ServiceNow application development because most application data is ultimately represented through table records. Developers should carefully design table relationships and field types to create maintainable applications.

Question 2

Which scripting object is commonly used in a server-side Business Rule to access the current record?

  1. current
  2. g_form
  3. window
  4. document

Correct Answer: 1

Explanation

The current object is commonly used in server-side ServiceNow scripts to access the record currently being processed. For example, a Business Rule can use current.short_description to read a field or assign a value to a field before the record is saved. The g_form object is primarily used in client-side scripts for manipulating form fields. Browser objects such as window and document are not the standard APIs for server-side ServiceNow scripting. Understanding the difference between client-side and server-side APIs is important when developing reliable ServiceNow applications.

Question 3

Which API is primarily used in a ServiceNow Client Script to manipulate fields on the current form?

  1. GlideRecord
  2. GlideSystem
  3. g_form
  4. GlideAggregate

Correct Answer: 3

Explanation

The g_form API is used by client-side scripts to interact with fields on the current ServiceNow form. Developers can use it to set field values, make fields mandatory, hide or display fields, disable fields, and perform other form-level operations. GlideRecord is primarily a server-side database interaction API, while GlideSystem provides access to various server-side platform functions. GlideAggregate is used for database aggregation operations. Using the correct API for the execution context is important because many server-side APIs are not available in client-side scripts.

Question 4

Which ServiceNow server-side API is commonly used to query and manipulate records in a table?

  1. GlideRecord
  2. g_form
  3. GlideAjax
  4. g_user

Correct Answer: 1

Explanation

GlideRecord is the primary server-side API used to query, insert, update, and delete records in ServiceNow tables. Developers can create a GlideRecord object for a table, add query conditions, execute the query, and iterate through the returned records. For example, a server-side script can use GlideRecord to find incidents matching a particular condition. g_form is a client-side form API, while GlideAjax is used to make asynchronous calls from client-side scripts to server-side Script Includes. g_user provides information about the current user on the client side.

Question 5

Which type of Business Rule executes before a record is written to the database?

  1. Async
  2. Display
  3. Before
  4. Scheduled

Correct Answer: 3

Explanation

A Before Business Rule executes on the server before the current record is written to the database. It is commonly used when a developer needs to modify field values before the record is saved. For example, a Before Business Rule can automatically populate or validate certain values. An After Business Rule runs after the database operation, while an Async Business Rule runs asynchronously after the transaction. Display Business Rules execute when a form is loaded and can prepare server-side data for client-side use. Therefore, Before is the appropriate option when modifying a record before insertion or update.

Question 6

Which ServiceNow feature allows developers to define reusable server-side JavaScript functions and classes?

  1. UI Policy
  2. Script Include
  3. Client Script
  4. Dictionary Entry

Correct Answer: 2

Explanation

Script Includes provide reusable server-side JavaScript code in ServiceNow. Developers can define functions, classes, and application logic inside Script Includes and call them from other server-side components. Script Includes are particularly useful for avoiding duplicated code and organizing reusable business logic. Client Scripts are intended for browser-side form behavior, UI Policies control form field behavior declaratively, and Dictionary Entries define metadata for fields. A well-designed application often places reusable business logic in Script Includes rather than duplicating the same logic across multiple Business Rules or other scripts.

Question 7

Which ServiceNow mechanism can control whether a field is mandatory, visible, or read-only on a form without requiring JavaScript?

  1. UI Policy
  2. Business Rule
  3. Scheduled Job
  4. Script Include

Correct Answer: 1

Explanation

UI Policies allow developers to control form field behavior declaratively. A UI Policy can make a field mandatory, visible, or read-only based on conditions. This can often be accomplished without writing custom JavaScript, making UI Policies easier to maintain for straightforward form behavior. Business Rules execute on the server and are generally intended for server-side processing, while Script Includes provide reusable server-side code. Scheduled Jobs execute tasks at scheduled times. UI Policies are therefore a suitable choice when the requirement is to dynamically control form field behavior based on conditions.

Question 8

Which ServiceNow feature is commonly used to run client-side JavaScript when a form field changes?

  1. Business Rule
  2. Scheduled Script Execution
  3. onChange Client Script
  4. Script Include

Correct Answer: 3

Explanation

An onChange Client Script executes when the value of a specified form field changes. It can be used to dynamically modify other fields, validate user input, display messages, or perform other client-side actions. Because it executes in the user’s browser, it should be used for user-interface behavior rather than trusted server-side security or database processing. Business Rules and Script Includes execute server-side, while Scheduled Script Executions run according to a defined schedule. Therefore, an onChange Client Script is the appropriate mechanism for responding directly to a field value change.

Question 9

Which ServiceNow application development concept allows one table to inherit fields and functionality from another table?

  1. Table extension
  2. Data Policy
  3. Reference qualifier
  4. ACL

Correct Answer: 1

Explanation

Table extension allows one ServiceNow table to inherit fields and functionality from another table. The child table inherits fields, scripts, and other applicable behavior from the parent table while adding its own application-specific fields and functionality. A common example is the Task table and tables that extend it for specialized task records. Data Policies enforce data requirements, reference qualifiers control which records can be selected in reference fields, and ACLs control access to records and fields. Table extension is therefore an important mechanism for creating structured and reusable application data models.

Question 10

Which ServiceNow mechanism is primarily responsible for controlling whether a user can read, create, update, or delete records or fields?

  1. UI Policy
  2. Access Control Rule
  3. Client Script
  4. Data Lookup

Correct Answer: 2

Explanation

Access Control Rules, commonly called ACLs, determine whether users can perform operations such as read, create, write, or delete on ServiceNow records and fields. ACLs can evaluate roles, conditions, and scripted logic to determine whether access should be granted. UI Policies affect how fields appear or behave on forms but should not be considered a replacement for server-side security. Client Scripts run in the browser and are not sufficient for enforcing data security. Data Lookups automate field population based on matching conditions. Therefore, ACLs are the primary mechanism for access control.

Question 11

Which ServiceNow API is commonly used to log informational, warning, or error messages from server-side scripts?

  1. GlideSystem
  2. GlideRecord
  3. GlideAjax
  4. GlideDateTime

Correct Answer: 1

Explanation

GlideSystem, commonly accessed through the gs object, provides many server-side ServiceNow utilities. It can be used to write messages to system logs using methods such as gs.info(), gs.warn(), and gs.error(). GlideRecord is used for database operations, GlideAjax facilitates client-to-server asynchronous calls, and GlideDateTime handles date and time values. Server-side logging is especially useful when troubleshooting Business Rules, Script Includes, Scheduled Jobs, and other server-side components. Developers should use appropriate log levels and avoid excessive logging in production environments.

Question 12

Which ServiceNow feature is designed to enforce data requirements on records regardless of whether the data is entered through a form or another interface?

  1. UI Policy
  2. Data Policy
  3. Client Script
  4. Form Layout

Correct Answer: 2

Explanation

Data Policies are designed to enforce data requirements at the platform level. They can make fields mandatory or enforce other data requirements regardless of whether records are being created or modified through a standard form or other supported interfaces. UI Policies primarily control behavior on forms and therefore should not be relied upon alone for universal data enforcement. Client Scripts also operate in the client browser and can potentially be bypassed by non-form interfaces. Data Policies are therefore more appropriate when the requirement must apply consistently beyond the user interface.

Question 13

Which ServiceNow mechanism is commonly used to filter the records available for selection in a reference field?

  1. Reference qualifier
  2. Business Rule
  3. UI Action
  4. Scheduled Job

Correct Answer: 1

Explanation

A reference qualifier controls which records can be selected in a reference field. It can restrict the available choices based on conditions, scripted logic, or other supported mechanisms. For example, a reference field might be configured to display only active users belonging to a particular department. Business Rules handle server-side processing, UI Actions provide buttons or links that trigger actions, and Scheduled Jobs execute tasks on a schedule. Reference qualifiers improve usability by limiting selections to relevant records and can also help prevent inappropriate references from being selected through the interface.

Question 14

Which ServiceNow component provides a button or link on a form or list that can execute an action?

  1. UI Action
  2. UI Policy
  3. Dictionary Entry
  4. Transform Map

Correct Answer: 1

Explanation

UI Actions provide buttons, links, and other user-interface controls that can execute actions in ServiceNow. A UI Action can be configured for forms or lists and may execute client-side or server-side logic depending on its configuration. They are commonly used for actions such as approving a record, creating a related record, or performing a custom operation. UI Policies control field behavior, Dictionary Entries define field metadata, and Transform Maps are used during data import processes. Therefore, UI Action is the correct component for providing executable buttons or links.

Question 15

Which ServiceNow feature is used to map imported source data fields to target table fields?

  1. Business Rule
  2. Transform Map
  3. UI Policy
  4. Script Include

Correct Answer: 2

Explanation

A Transform Map defines how data from an import set is transformed and mapped into a target ServiceNow table. It can map source fields to target fields and can include transformation scripts for more complex processing. Transform Maps are commonly used with Import Sets when external data needs to be loaded into ServiceNow. Business Rules handle server-side business logic, UI Policies control form behavior, and Script Includes provide reusable server-side code. Therefore, Transform Map is the appropriate component for defining how imported source data is mapped to target records.

Question 16

Which ServiceNow component temporarily stores imported external data before it is transformed into records in a target table?

  1. Import Set table
  2. Task table
  3. Audit table
  4. Knowledge table

Correct Answer: 1

Explanation

An Import Set table temporarily stores data imported from an external source before that data is transformed into records in a target ServiceNow table. Import Sets provide an intermediate staging area where administrators and developers can inspect source data and apply transformation rules. A Transform Map then determines how that source data should be mapped and processed. Task tables are used for task-based records, while audit and knowledge tables serve different purposes. Understanding the Import Set and Transform Map relationship is important when building reliable integrations and bulk-data import processes.

Question 17

Which ServiceNow feature can execute server-side logic automatically at a specified date and time or on a recurring schedule?

  1. Scheduled Script Execution
  2. Client Script
  3. UI Policy
  4. Reference Qualifier

Correct Answer: 1

Explanation

Scheduled Script Executions allow administrators and developers to run server-side JavaScript at defined times or according to recurring schedules. They are useful for maintenance operations, periodic data processing, notifications, integrations, and other background tasks. Because they run on the server, they can interact with records using server-side APIs such as GlideRecord. Client Scripts execute in a user’s browser and depend on form interaction, while UI Policies and Reference Qualifiers control form behavior. Therefore, Scheduled Script Execution is the correct choice for automated time-based server-side processing.

Question 18

Which ServiceNow object can be used to perform database queries from server-side JavaScript?

  1. GlideRecord
  2. g_form
  3. g_user
  4. GlideModal

Correct Answer: 1

Explanation

GlideRecord is the standard server-side object used to query and manipulate records in ServiceNow tables. A developer can create a GlideRecord instance, specify query conditions, execute the query, and process the returned records. It also supports operations such as insert, update, and delete when used appropriately. g_form is a client-side form API, g_user provides information about the current user in client-side contexts, and GlideModal is associated with user-interface interactions. Therefore, GlideRecord is the correct object for server-side database queries.

Question 19

Which ServiceNow feature allows an administrator or developer to define reusable application logic that can be called from multiple server-side scripts?

  1. Script Include
  2. UI Action
  3. UI Policy
  4. Form Section

Correct Answer: 1

Explanation

A Script Include provides reusable server-side application logic. Developers can place functions or classes in a Script Include and then call them from Business Rules, Script Actions, Scheduled Jobs, and other appropriate server-side components. This promotes code reuse and makes applications easier to maintain because common logic can be centralized instead of duplicated. UI Actions are primarily interface controls, UI Policies manage form behavior, and Form Sections organize fields visually on a form. Therefore, Script Include is the appropriate ServiceNow feature for reusable server-side application logic.

Question 20

Which ServiceNow development practice helps prevent unauthorized users from accessing protected data?

  1. Relying only on Client Scripts
  2. Using Access Control Rules
  3. Hiding fields with UI Policies only
  4. Removing fields from the form

Correct Answer: 2

Explanation

Access Control Rules are the primary security mechanism for controlling access to ServiceNow records and fields. ACLs can evaluate the user’s roles, conditions, and scripted requirements before allowing operations such as read, create, write, or delete. Client Scripts and UI Policies operate primarily at the user-interface level and should not be treated as reliable security boundaries because users or integrations may access data through other interfaces. Simply removing a field from a form also does not necessarily prevent access to the underlying data. Therefore, properly configured ACLs are essential for protecting application data.