Free CAD Exam Braindumps (page: 9)

Page 8 of 70

In a Business Rule, which one of the following returns true if the currently logged in user has the admin role?

  1. g_form.hasRoleExactly(`admin')
  2. gs.hasRole(`admin')
  3. g_form.hasRole(`admin')
  4. gs.hasRoleExactly(`admin')

Answer(s): B

Explanation:

Business Rule is server-side, so it uses GlideSystem API. gs.hasRoleExactly doesn't exist

In a Business Rule, the following returns true if the currently logged in user has the admin role:
gs.hasRole(`admin'). This is the correct answer because gs is the GlideSystem object, which provides methods for performing system operations, and hasRole is a method that checks if the current user has the specified role. For example, gs.hasRole(`admin') will return true if the current user has the admin role, and false otherwise.
The following do not return true if the currently logged in user has the admin role in a Business Rule:
g_form.hasRoleExactly(`admin'). This is not correct because g_form is the GlideForm object, which provides methods for manipulating forms, and hasRoleExactly is a method that checks if the current user has exactly the specified role and no other roles. For example, g_form.hasRoleExactly(`admin') will return true if the current user has only the admin role, and false if the current user has the admin role and any other role.
g_form.hasRole(`admin'). This is not correct because g_form is the GlideForm object, which provides methods for manipulating forms, and hasRole is a method that checks if the current user has the specified role or any role that contains the specified role. For example, g_form.hasRole(`admin') will return true if the current user has the admin role or any role that contains the admin role, such as admin_ui or admin_script.
gs.hasRoleExactly(`admin'). This is not correct because gs is the GlideSystem object, which provides methods for performing system operations, and hasRoleExactly is not a valid method of the gs object. There is no method that checks if the current user has exactly the specified role and no other roles in the gs object.


Reference:

Business Rules, GlideSystem, GlideForm



From the list below, identify one reason an application might NOT be a good fit with ServiceNow.

The application:

  1. Needs workflow to manage processes
  2. Requires "as-is" use of low-level programming libraries
  3. Requires reporting capabilities
  4. Uses forms extensively to interact with data

Answer(s): B

Explanation:

From the list below, the following is a reason an application might not be a good fit with ServiceNow:
Requires "as-is" use of low-level programming libraries. This is the correct answer because ServiceNow is a high-level platform that abstracts away the low-level details of the underlying infrastructure and technology stack. ServiceNow provides a rich set of APIs, tools, and features that allow users to develop applications without coding or with minimal coding. However, ServiceNow does not support the direct



Identify the incorrect statement about Delegated Development in ServiceNow.

  1. Administrators can grant non-admin users the ability to develop global applications.
  2. Administrators can specify which application file types the developer can access.
  3. Administrators can grant the developer access to script fields.
  4. Administrators can grant the developer access to security records.

Answer(s): A

Explanation:

Administrators can grant non-admin users the ability to develop global applications. Delegated Development is for the scoped applications only


Reference:

https://docs.servicenow.com/bundle/orlando-application- development/page/build/applications/ concept/c_DelegatedDevelopment.html The incorrect statement about Delegated Development in ServiceNow is that administrators can grant non-admin users the ability to develop global applications. Delegated Development allows administrators to grant non-admin users the ability to develop scoped applications, not global applications. Global applications are accessible by all other applications and do not have a namespace prefix. Scoped applications are isolated from other applications and have a unique namespace identifier. Delegated Development provides more granular control over the developer permissions, application resources, and data access.

[Advantages of Scoped Applications in ServiceNow], [Product Documentation | ServiceNow]



What is the REST API Explorer used to do?

  1. Practice using REST to interact with public data providers
  2. Find resources on the web for learning about REST
  3. Convert SOAP Message functions to REST methods
  4. Create sample code for sending REST requests to ServiceNow

Answer(s): D

Explanation:

One of the uses of the ServiceNow REST API Explorer is to create sample code for sending REST requests to ServiceNow. The REST API Explorer is a tool that allows you to discover and test the ServiceNow REST APIs. You can select an API endpoint, set the HTTP method, parameters, headers, and body, and then execute the request. The REST API Explorer will show you the response status, headers, and body, as well as generate sample code for various languages and frameworks, such as cURL, Java, JavaScript, Node.js, Python, Ruby, and more.


Reference:

[Use the REST API Explorer - Product Documentation: Tokyo - ServiceNow], [Introduction to Scripted REST APIs - ServiceNow Developers]


https://developer.servicenow.com/dev.do#!/learn/courses/newyork/ app_store_learnv2_rest_newyork_rest_integrations/
app_store_learnv2_rest_newyork_inbound_rest_integrations/ app_store_learnv2_rest_newyork_introduction_to_the_rest_api_explorer






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

CAD Discussions & Posts