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');
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?
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?
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?
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)?
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?
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.)
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?
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?
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
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?
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:
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?
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?
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
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?
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.)
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?
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?
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)