Which one of the following is a benefit of creating an Application Properties page for each application you develop?
Answer(s): D
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.
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');
Answer(s): A
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.
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
Answer(s): B,D,E
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.
Access control rules, Access Controls
For Application Access there is a configuration option called Allow access to this table via web services. Which one of the following statements is true when this option is selected?
Answer(s): B
Application Access is a feature that allows you to control the access level of other application scopes to your application's data tables. By selecting the Allow access to this table via web services option, you can enable other application scopes to access your data tables using web services, such as SOAP or REST. However, the user performing the query via web services must have the correct permissions to access the table's records. The user must have the appropriate roles and access controls to perform the operations on the table, such as create, read, write, or delete. The other statements are not true when this option is selected. This option does not restrict the ability to delete records via web services, nor does it allow records to be always read. The access to the records depends on the user's permissions and the web service method. This option also does not restrict access only to SOAP web services, but applies to both SOAP and REST web services. Finally, this option is not the only way to enable web service access to the table's records. Even when this option is not selected, users with the correct permissions can use web services to access the table's records, as long as they specify the application scope in the web service request.
Application AccessWeb service access to scoped applications
Which one of the following database operations cannot be controlled with Application Access?
Application Access is a feature that allows you to control the access level of other application scopes to your application's data tables. You can use Application Access to control the following database operations:Create: This operation allows the user to create new records on the table. You can enable or disable this operation by selecting or clearing the Can create option.Delete: This operation allows the user to delete existing records on the table. You can enable or disable this operation by selecting or clearing the Can delete option. Read: This operation allows the user to view the records on the table. You can enable or disable this operation by selecting or clearing the Can read option. Write: This operation allows the user to modify the records on the table. You can enable or disable this operation by selecting or clearing the Can write option. The one database operation that cannot be controlled with Application Access is Query. Query is not an operation, but a method of the GlideRecord class that is used to retrieve records from the database on the server-side. Query is not part of the Application Access rules, but it is affected by the Access Controls and the user's roles.
Application Access[GlideRecord methods]
Post your Comments and Discuss ServiceNow CAD exam prep with other Community members:
Our website is free, but we have to fight against AI bots and content theft. We're sorry for the inconvenience caused by these security measures. You can access the rest of the CAD content, but please register or login to continue.