ServiceNow Certified Application Developer - ServiceNow Training and Certification CAD Exam Questions

Page: 1 / 14
Total 285 questions
Question 1

Which Application Access configuration field(s) are NOT available if the Can read configuration field is NOT selected?



Answer : B

'You must first select read access to grant any other API record operation.' https://docs.servicenow.com/bundle/tokyo-application-development/page/build/applications/reference/r_TableApplicationAccessFields.html

The Application Access configuration fields control the access level for an application and its tables. The following Application Access configuration fields are not available if the Can read configuration field is not selected:

Can create. This field determines whether users can create records on the application tables.

Can update. This field determines whether users can update records on the application tables.

Can delete. This field determines whether users can delete records on the application tables.

These fields are not available because they depend on the Can read field, which determines whether users can view records on the application tables. If users cannot read records, they cannot create, update, or delete them either.

The following Application Access configuration fields are available regardless of the Can read configuration field:

All access to this table via web services. This field determines whether users can access the application tables using web services, such as REST or SOAP.

Allow configuration. This field determines whether users can configure the application tables, such as adding or modifying fields, views, or indexes.Reference:Application Access,Certified Application Developer (CAD) Learning Path


Question 2

Which of the following is NOT a trigger type in Flow Designer?



Answer : A

See list of triggers on right hand side of this webpage: https://docs.servicenow.com/en-US/bundle/tokyo-application-development/page/administer/flow-designer/reference/flow-triggers.html

The trigger types in Flow Designer are Application, Record, Schedule, and Topic.Outbound Email is not a trigger type, but an action type that can be used in a flow to send an email message1. Reference:Flow Designer Trigger Types


Question 3

Which ATF test step is used to set up a specific user profile for testing purposes?



Answer : A

In the Automated Test Framework (ATF) of ServiceNow, the 'Impersonate' test step is used to simulate actions as a specific user. This is crucial for testing functionalities that depend on user roles, permissions, or specific user contexts.

Key Points:

Purpose: The 'Impersonate' step allows the test to execute subsequent steps as if performed by the specified user, ensuring that role-based permissions and access controls are accurately tested.

Usage: To add an 'Impersonate' step:

Open your test in ATF.

Click on 'Add Test Step.'

Select 'Impersonate User.'

Choose the user you want to impersonate for the test.

Considerations: Ensure that the user being impersonated has the necessary roles and permissions for the actions being tested. Additionally, be aware that impersonation affects both server-side and client-side operations during the test.


Question 4

In a privately-scoped application, which methods are used for logging messages in server-side scripts?

Choose 2 answers



Answer : A, C

In ServiceNow, when developing within a privately-scoped application, certain logging methods are recommended for use in server-side scripts to ensure proper logging and debugging. The GlideSystem (gs) object provides several methods for this purpose:

gs.debug():

Description: Logs messages at the 'Debug' level.

Usage: gs.debug('Debug message here');

Purpose: Useful for logging detailed information during development and troubleshooting. These messages are typically only visible when the system's logging level is set to 'Debug.'

gs.error():

Description: Logs messages at the 'Error' level.

Usage: gs.error('Error message here');

Purpose: Used to log error messages that indicate a problem that might still allow the application to continue running.

gs.warn():

Description: Logs messages at the 'Warning' level.

Usage: gs.warn('Warning message here');

Purpose: Used to log potentially harmful situations that are not necessarily errors but may require attention.

gs.info():

Description: Logs messages at the 'Information' level.

Usage: gs.info('Information message here');

Purpose: Used to log informational messages that highlight the progress of the application at a coarse-grained level.

Deprecated or Unsupported Methods in Scoped Applications:

gs.log():

Description: This method is not supported in scoped applications. It is restricted to the global scope and is not accessible from a private scope. Therefore, it should be avoided in privately-scoped applications.


gs.logError():

Description: This method is not a standard GlideSystem logging method in ServiceNow. The appropriate method to log errors is gs.error().

Question 5

Which one of the following is true for this script fragment?

g_user.hasRole(,x_my_app_user');



Answer : 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. Reference:User Object Cheat Sheet,Checking user permissions


Question 6

How must Application Access be configured to prevent all other private application scopes from creating configuration records on an application's data tables?



Answer : D

Application Access is a feature that allows you to control the access level of other application scopes to your application's data tables. By setting the Accessible from field value to This application scope only, you can restrict the access to your data tables to only your application scope. This means that other application scopes cannot create, read, write, or delete records on your data tables, unless they have explicit permissions through Access Controls or other means.


Application Access

[Application scope]

https://developer.servicenow.com/dev.do#!/learn/learning-plans/rome/new_to_servicenow/app_store_learnv2_securingapps_rome_application_access

https://docs.servicenow.com/bundle/rome-application-development/page/build/applications/concept/c_ExampleDenyingAllDesignAccess.html

Question 7

Which determines the relationships between field in an Import Set table to field in an existing ServiceNow table?



Answer : D

A transform map determines the relationships between fields in an import set table and fields in an existing ServiceNow table. It also specifies how to transform the imported data before mapping it to the target table.

1. What Exactly is an Import Set? - ServiceNow Developers

Import set table - ServiceNow Application Development [Book]


Page:    1 / 14   
Total 285 questions