Free CAD Exam Braindumps
Certified Application Developer - ServiceNow Training and Certification Questions 56–60 (page: 13)

Updated On: 10-Feb-2026

Which of the following methods are useful in Access Control scripts?

  1. g_user.hasRole() and current.isNewRecord()
  2. gs.hasRole() and current.isNewRecord()
  3. g_user.hasRole() and current.isNew()
  4. gs.hasRole() and current.isNew()

Answer(s): B

Explanation:

Access Control scripts are server-side scripts that run when an Access Control rule is evaluated. They can use the gs and current objects to access the GlideSystem and GlideRecord methods, respectively. Some of the useful methods in Access Control scripts are:

gs.hasRole() - This method checks if the current user has a specified role. It returns true if the user has the role, and false otherwise. For example, gs.hasRole(`admin') will return true if the user is an administrator, and false otherwise.
current.isNewRecord() - This method checks if the current record is a new record that has not been inserted into the database yet. It returns true if the record is new, and false otherwise. For example, current.isNewRecord() will return true if the record is being created, and false if the record is being updated or deleted.
The methods g_user.hasRole() and current.isNew() are not part of the server-side scripting API. They are part of the client-side scripting API, which is used in Client Scripts and UI Policies. They cannot be used in Access Control scripts.


Reference:

[Access Control scripts]

[GlideSystem methods]
[GlideRecord methods]


http://servicenowmypath.blogspot.com/2017/



Which one of the following client-side scripts apply to Record Producers?

  1. Catalog Client Scripts and Catalog UI Policies
  2. UI Scripts and UI Actions
  3. UI Scripts and Record Producer Scripts
  4. Client Scripts and UI Policies

Answer(s): A

Explanation:

Catalog Client Scripts and Catalog UI Policies are the client-side scripts that apply to Record Producers. Catalog Client Scripts allow you to add or modify functionality on a catalog item or record producer form. Catalog UI Policies dynamically change information on a catalog item or record producer form. UI Scripts, UI Actions, Client Scripts, and UI Policies do not apply to Record Producers.


Reference:

Catalog client scripts, Catalog UI policies


https://docs.servicenow.com/bundle/orlando-application- development/page/script/client-scripts/ concept/c_CatalogClientScriptCreation.html



When a ServiceNow instance requests information from a web service, ServiceNow is the web service:

  1. Publisher
  2. Specialist
  3. Provider
  4. Consumer

Answer(s): D

Explanation:

When a ServiceNow instance requests information from a web service, ServiceNow is the web service consumer. A web service consumer is an application that sends requests to a web service provider and receives responses from it. A web service provider is an application that exposes its functionality as web services. A web service publisher is a person or organization that publishes web services for others to use. A web service specialist is a person who has expertise in developing or using web services.


Reference:

Web services


https://docs.servicenow.com/bundle/orlando-application- development/page/integrate/web-services/ reference/r_AvailableWebServices.html



Which one of the following is the fastest way to create and configure a Record Producer?

  1. Create a Catalog Category, open the category, and select the Add New Record Producer button
  2. Use the Record Producer module then add and configure all variables manually
  3. Open the table in the Table records and select the Add to Service Catalog Related Link
  4. Open the table's form, right-click on the form header, and select the Create Record Producer menu item

Answer(s): C

Explanation:

The fastest way to create and configure a Record Producer is to open the table in the Table records and select the Add to Service Catalog Related Link. This will automatically create a Record Producer with the same fields as the table and add it to the Service Catalog. You can then modify the Record Producer as needed. The other options require more steps and manual configuration.


Reference:

Create a record producer



Which objects can you use in a Scheduled Script Execution (Scheduled Job) script?

  1. GlideRecord and current
  2. GlideUser and GlideRecord
  3. GlideSystem and GlideRecord
  4. GlideSystem and current

Answer(s): C

Explanation:

https://developer.servicenow.com/dev.do#!/learn/learning- plans/quebec/servicenow_administrator/app_store_learnv2_automatingapps_quebec_scheduled_s cript_execution_scripts
The objects that you can use in a Scheduled Script Execution (Scheduled Job) script are GlideSystem and GlideRecord. GlideSystem provides methods for performing system operations, such as logging, running background scripts, or getting system information. GlideRecord provides methods for working with records in the database, such as querying, updating, inserting, or deleting records. The current object is not available in Scheduled Script Execution scripts, as it refers to the current record on a form or list. The GlideUser object is also not available, as it refers to the current user session.


Reference:

Scheduled Script Execution, GlideSystem, GlideRecord



Viewing page 13 of 57
Viewing questions 61 - 65 out of 285 questions


Post your Comments and Discuss ServiceNow CAD exam prep with other Community members:

AI Tutor AI Tutor 👋 I’m here to help!