aiotestking uk

CAD Exam Questions - Online Test


CAD Premium VCE File

Learn More 100% Pass Guarantee - Dumps Verified - Instant Download
150 Lectures, 20 Hours

Exam Code: CAD (Practice Exam Latest Test Questions VCE PDF)
Exam Name: Certified Application Developer-ServiceNow
Certification Provider: ServiceNow
Free Today! Guaranteed Training- Pass CAD Exam.

ServiceNow CAD Free Dumps Questions Online, Read and Test Now.

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

  • A. The method returns true if the currently logged in user has the x_my_app_user role or the admin role
  • B. The method returns false only if the currently logged in user has the x_my_app_user role
  • C. There is no g_user.hasRole() method
  • D. The method returns true only if the currently logged in user has the x_my_app_user role

Answer: 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

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

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

Answer: 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

NEW QUESTION 3
If the Create module field is selected when creating a table, what is the new module’s default behavior?

  • A. Open an empty form so new records can be created
  • B. Open a link to a wiki article with instructions on how to customize the behavior of the new module
  • C. Display an empty homepage for the application
  • D. Display a list of all records from the table

Answer: D

Explanation:
When creating a table, the Create module field allows you to automatically create a module for the table in the application menu. The default behavior of the new module is to display a list of all records from the table. This can be changed later by editing the module properties and specifying a different link type, such as form, URL, or script.
References:
✑ Create a table
✑ Module properties

NEW QUESTION 4
Which one of the following objects CANNOT be used in a Script Action script?

  • A. previous
  • B. GlideRecord
  • C. event
  • D. current

Answer: A

Explanation:
https://docs.servicenow.com/bundle/tokyo-platform-administration/page/administer/platform-events/reference/r_ScriptActions.html

NEW QUESTION 5
When working in the Form Designer, configuring the label of a field in a child table changes the label on which table(s)?

  • A. base table
  • B. child table
  • C. parent table
  • D. all tables

Answer: B

Explanation:
Configuring the label of a field in a child table changes the label only on that table, not on the base table or the parent table. The base table is the table that contains the common fields for all the extended tables, and the parent table is the table that is directly extended by the child table. The label of a field on the base table or the parent table can be different from the label on the child table. References: [ServiceNow Docs - Table extension], [ServiceNow Community - How to change field label in child table]
Reference: https://community.servicenow.com/community? id=community_QUESTIONNO:&sys_id=7ddc4462dbe2b3840be6a345ca9619af

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

  • A. g_user.hasRole() and current.isNewRecord()
  • B. gs.hasRole() and current.isNewRecord()
  • C. g_user.hasRole() and current.isNew()
  • D. gs.hasRole() and current.isNew()

Answer: 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. References:
✑ [Access Control scripts]
✑ [GlideSystem methods]
✑ [GlideRecord methods]
Reference: http://servicenowmypath.blogspot.com/2017/

NEW QUESTION 7
Which script types execute on the server? (Choose three.)

  • A. Business Rule
  • B. Client Scripts
  • C. UI Policies
  • D. Script Actions
  • E. Scheduled Jobs

Answer: ADE

Explanation:
https://docs.servicenow.com/bundle/tokyo-application-development/page/script/server-scripting/concept/c_ServerScripting.html

NEW QUESTION 8
Which server-side API debug log method is available for scoped applications?

  • A. gs.print()
  • B. gs.log()
  • C. gs.debuglog()
  • D. gs.info()

Answer: D

Explanation:
The server-side API debug log method available for scoped applications is gs.info(). This method logs informational messages that describe the progress of the application. Older methods such as gs.print() and gs.log() are not available in scoped applications. The gs.debuglog() method does not exist. The gs.info(), gs.warn(), gs.error(), and gs.debug() methods work in both scoped applications and global, and are therefore more versatile going forward in future versions. Reference: Debugging best practices

NEW QUESTION 9
Tables that extend a table do what?

  • A. Sometimes inherit the parent's fields
  • B. Automatically update the application scope
  • C. Do not inherit the parent's fields
  • D. Inherit the parent's fields

Answer: D

Explanation:
Tables that extend a table inherit the parent’s fields. Extending a table means creating a child table that shares the same columns and business logic as the parent table. For example, the Incident table extends the Task table, which means that all fields defined on the Task table are also available on the Incident table. Extending a table allows for reusing existing fields and behaviors without duplicating them on multiple tables. Reference: Table extension and classes

NEW QUESTION 10
The task table is an example of which of the following? Choose 2 answers

  • A. Legacy class
  • B. Child class
  • C. Base class
  • D. Parent class

Answer: CD

Explanation:
"A table that extends another table is called a child class, and the table it extends is the parent class" - this is about halfway down in this link below: https://docs.servicenow.com/en-US/bundle/tokyo-platform-administration/page/administer/table-administration/concept/table-extension-and- classes.html

NEW QUESTION 11
What is the purpose of the Application Picker?

  • A. Select an application to run
  • B. Select an application as a favorite in the Application Navigator
  • C. Choose an application to edit and set the Application Scope
  • D. Choose an application to download and install

Answer: C

Explanation:
https://docs.servicenow.com/bundle/tokyo-application-development/page/build/applications/concept/c_ApplicationPicker.html

NEW QUESTION 12
From the list below, identify one reason an application might NOT be a good fit with ServiceNow.
The application:

  • A. Needs workflow to manage processes
  • B. Requires “as-is” use of low-level programming libraries
  • C. Requires reporting capabilities
  • D. Uses forms extensively to interact with data

Answer: 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

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

  • A. All access to this table via web services
  • B. Can create, Can update, and Can delete
  • C. Can read does not affect the availability of other Application Access fields
  • D. Allow configuration

Answer: B

Explanation:
"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. References: Application Access, Certified Application Developer (CAD) Learning Path

NEW QUESTION 14
How can an application link to a repository behind a firewall?

  • A. This option is not supported.
  • B. Link an application to source control through a MID Server.
  • C. Link an application to source control through an access token.
  • D. Link an application to source control with multi-factor authentication.

Answer: B

Explanation:
"Use an existing MID Server to connect to a Source Control repository. Linking or importing an application through a MID Server enables access to repositories behind a firewall." https://docs.servicenow.com/bundle/tokyo-application- development/page/build/applications/concept/c_SourceControlIntegration.html

NEW QUESTION 15
Identify the way(s) an application can respond to an Event generated by the gs.eventQueue() method.
a) Script Action
b) Scheduled Script Execution (Scheduled Job)
c) UI Policy
d) Email Notification

  • A. b and c
  • B. c
  • C. a and d
  • D. a and c

Answer: C

Explanation:
"There are two possible ways to respond to events:
- Email Notification
- Script Action" - see this quote in link below: https://developer.servicenow.com/dev.do#!/learn/learning- plans/tokyo/new_to_servicenow/app_store_learnv2_automatingapps_tokyo_responding_to
_events

NEW QUESTION 16
Which one of the following is true for GlideUser (g_user) methods?

  • A. Can be used in Client Scripts and UI Policies only
  • B. Can be used in Business Rules only
  • C. Can be used in Client Scripts, UI Policies, and UI Actions
  • D. Can be used in Business Rules, and Scripts Includes

Answer: C

Explanation:
The following is true for GlideUser (g_user) methods:
✑ Can be used in Client Scripts, UI Policies, and UI Actions. This is true because GlideUser (g_user) methods are part of the client-side scripting APIs that provide information about the current user and the user’s preferences. Client Scripts, UI Policies, and UI Actions are all types of client-side scripts that run in the web browser and manipulate the user interface.
The following are not true for GlideUser (g_user) methods:
✑ Can be used in Client Scripts and UI Policies only. This is false because GlideUser (g_user) methods can also be used in UI Actions, which are another type of client- side scripts that can be triggered by a user’s click on a button, link, or choice.
✑ Can be used in Business Rules only. This is false because GlideUser (g_user) methods cannot be used in Business Rules, which are server-side scripts that run on the ServiceNow platform and manipulate the database. Business Rules use a different API to access the current user information, which is GlideSystem (gs).
✑ Can be used in Business Rules, and Scripts Includes. This is false because GlideUser (g_user) methods cannot be used in Business Rules or Script Includes, which are both server-side scripts. Script Includes are reusable units of code that can be called from any server-side script. Script Includes also use GlideSystem (gs) to access the current user information. References: Client-Side Scripting APIs, GlideUser, Business Rules, Script Includes
Reference: https://developer.servicenow.com/dev.do#!/reference/api/newyork/client/c_GlideUserAPI

NEW QUESTION 17
Which of the following are true for reports in ServiceNow? (Choose three.)

  • A. Any user can see any report shared with them.
  • B. Can be a graphical representation of data.
  • C. All users can generate reports on any table.
  • D. Can be run on demand by authorized users.
  • E. Can be scheduled to be run and distributed by email.

Answer: BDE

Explanation:
https://docs.servicenow.com/bundle/rome-platform-administration/page/administer/reference-pages/task/schedule-report.html Generate and distribute scheduled reports via email.
A report is a graphical representation of data from one or more tables in ServiceNow. The following are true for reports in ServiceNow:
✑ Can be a graphical representation of data. This is true because reports can use
various chart types, such as pie, bar, line, or gauge, to visualize data in a meaningful way.
✑ Can be run on demand by authorized users. This is true because reports can be
accessed from the Reports menu or the Report Navigator and run by users who have the appropriate roles and permissions to view the data.
✑ Can be scheduled to be run and distributed by email. This is true because reports
can be configured to run at a specific time and frequency and send the results to one or more email recipients.
The following are not true for reports in ServiceNow:
✑ Any user can see any report shared with them. This is false because users can only see reports that are shared with them if they also have access to the data source of the report. For example, a user who does not have the itil role cannot see a report based on the incident table, even if the report is shared with them.
✑ All users can generate reports on any table. This is false because users can only generate reports on tables that they have access to and that are enabled for reporting. For example, a user who does not have the admin role cannot generate reports on the sys_user table, which is the table for user
records. References: Reports, Report Security

NEW QUESTION 18
Which of the following statements is NOT true for the Form Designer?

  • A. To add a section to the form layout, drag it from the Field Types tab to the desired destination on the form.
  • B. To add a field to the form layout, drag the field from the Fields tab to the desired destination on the form.
  • C. To remove a field from the form layout, hover over the field to enable the Action buttons, and select the Delete (X) button.
  • D. To create a new field on a form’s table, drag the appropriate data type from the Field Types tab to the form and then configure the new field.

Answer: A

Explanation:
https://docs.servicenow.com/bundle/tokyo-platform-administration/page/administer/form-administration/concept/c_FormDesign.html

NEW QUESTION 19
Which of the following is true for the Application Picker and Application Scope?

  • A. Selecting application from the Application Picker does not set the Application Scope.
  • B. Selecting Global in the Application Picker sets the Application Scope to incident
  • C. Global is a reserved application which does not appear in the Application Picker
  • D. Selecting an application from the Application Picker sets the Application Scope

Answer: D

Explanation:
"Application developers must select an application as their current scope context." https://docs.servicenow.com/bundle/tokyo-application- development/page/build/applications/task/t_SelectAnAppFromTheAppPicker.html

NEW QUESTION 20
......

Recommend!! Get the Full CAD dumps in VCE and PDF From Allfreedumps.com, Welcome to Download: https://www.allfreedumps.com/CAD-dumps.html (New 135 Q&As Version)