Free CAD Exam Braindumps (page: 28)

Page 27 of 70

What is a workflow context?

  1. It is a checked out workflow which is being edited
  2. It is generated from a workflow version, executes activities, and follows transitions
  3. The table for which a workflow is defined plus any conditions such as "Active is true"
  4. The business reason or process for which a workflow is designed

Answer(s): B

Explanation:

A workflow is a tool that allows you to automate processes on the ServiceNow platform. A workflow consists of activities and transitions that define the logic and flow of the process. A workflow context is an instance of a workflow that is generated from a workflow version, executes activities, and follows transitions. A workflow context is associated with a specific record on a table and tracks the state and progress of the workflow. You can view and manage the workflow contexts from the Workflow Contexts module or the Workflow Contexts related list on a record. The other options are not valid definitions of a workflow context. A checked out workflow is a workflow that is being edited by a user and has not been published yet. The table and conditions for a workflow are the criteria that determine when a workflow should run on a record. The business reason or process for a workflow is the purpose and function of the workflow.


Reference:

[Workflow overview]

[Workflow context]



Which one of the following is a benefit of creating an Application Properties page for each application you develop?

  1. An Application Properties page is a good landing page for an application
  2. Application Properties allow a developer to override the application properties inherited from ServiceNow
  3. Application users know to go to the Application Properties page to change the appearance of an application
  4. Application Properties allow a developer or admin to make changes to an application's behavior without modifying application artifacts

Answer(s): D

Explanation:

A benefit of creating an Application Properties page for each application you develop is that Application Properties allow a developer or admin to make changes to an application's behavior without modifying application artifacts. Application Properties are system properties that store configuration information for a specific application. They can be used to control various aspects of the application, such as feature flags, default values, thresholds, or URLs. By creating an Application Properties page, you can group and display all the properties related to your application in one place and make them easy to access and update. This way, you can avoid hard-coding static data in your application code and make your application more flexible and maintainable.


Reference:

Working with System Properties, Organizing your ServiceNow System Properties



Which one of the following is true for this script fragment? g_user.hasRole(,x_my_app_user');

  1. The method returns true if the currently logged in user has the x_my_app_user role or the admin role
  2. The method returns false only if the currently logged in user has the x_my_app_user role
  3. There is no g_user.hasRole() method
  4. The method returns true only if the currently logged in user has the x_my_app_user role

Answer(s): A

Explanation:

The statement that is true for this script fragment is that the method returns true if the currently logged in user has the x_my_app_user role or the admin role. The g_user.hasRole() method is a client-side method that checks whether the current user has a specified role or set of roles. If no role is specified, it returns true if the user has any role. If one or more roles are specified, it returns true if the user has any one of the specified roles. However, this method always returns true if the user has the admin role, regardless of the role parameter. Therefore, in this case, the method returns true if the user has either the x_my_app_user role or the admin role.


Reference:

User Object Cheat Sheet, Checking user permissions



Which of the following statements must evaluate to true for a user to pass an Access Control? Choose 3 answers

  1. Other matching Access Controls for the records evaluate to true.
  2. Conditions configured in the Access Control must evaluate to true.
  3. The user must be granted access through a business rule.
  4. The user has one of the roles specified in the Required roles related list.
  5. Scripts configured in the Access Control must evaluate to true.

Answer(s): B,D,E

Explanation:

The statements that must evaluate to true for a user to pass an Access Control are:
Conditions configured in the Access Control must evaluate to true. The user has one of the roles specified in the Required roles related list. Scripts configured in the Access Control must evaluate to true. An Access Control is a rule that determines whether a user can access a particular object or operation in ServiceNow. An Access Control consists of three elements: Conditions, Roles, and Script. Each element specifies a requirement that the user must meet to access the object or operation. If any of these elements return false, the Access Control denies access and stops evaluating the remaining elements. Therefore, for a user to pass an Access Control, all three elements must evaluate to true.
The other statements are not required for a user to pass an Access Control. Other matching Access Controls for the records do not need to evaluate to true, as only one matching Access Control needs to return true for access to be granted. The user does not need to be granted access through a business rule, as business rules are not part of Access Controls and do not affect their evaluation.


Reference:

Access control rules, Access Controls






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

CAD Discussions & Posts