The Best CAD Exam Study Material and Preparation Test Question Dumps
Get Ready to Pass the CAD exam Right Now Using Our Certified Application Developer Exam Package
NEW QUESTION # 147
How must Application Access be configured to prevent all other private application scopes from creating configuration records on an application's data tables?
- A. Set the Accessible from field value to This application scope only
- B. Set the Accessible from field value to All application scopes and de-select the Can create option
- C. You must create Access Controls to prevent all other application scopes from creating configuration records on an application's data tables rather than using Application Access
- D. Set the Accessible from field value to This application scope only and de-select the Allow access to this table via web services option
Answer: A
Explanation:
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.
References:
* Application Access
* [Application scope]
https://developer.servicenow.com/dev.do#!/learn/learning-plans/rome/new_to_servicenow/app_store_learnv2_se
https://docs.servicenow.com/bundle/rome-application-development/page/build/applications/concept/c_ExampleD
NEW QUESTION # 148
Which of the following methods prints a message on a blue background to the top of the current form by default?
- A. g_form.showFieldMessage()
- B. g_form.addInfoMessage()
- C. g_form.showFieldMsg()
- D. g_form.addInfoMsg()
Answer: B
Explanation:
From: https://docs.servicenow.com/bundle/paris-application-development/page/script/general-scripting
/reference/r_ScriptingAlertInfoAndErrorMsgs.html
g_form.showFieldMsg("field_name", "Hello World", "error"); Puts "Hello World" in an error message
**below the specified field**. g_form.addInfoMessage() or g_form.addErrorMessage() place a blue box message at the top of the screen. Pg 126 of the CAD handbook The method that prints a message on a blue background to the top of the current form by default is g_form.
addInfoMessage(). The g_form object is a global object that provides access to form fields and UI elements on a form. The addInfoMessage() method is a method of the g_form object that displays an informational message next to the form header. The message has a blue background color by default, unless it is overridden by a CSS style. The addInfoMessage() method takes one argument, which is the message text to display.
References: [ServiceNow Docs - GlideForm (g_form) API], [ServiceNow Docs - g_form.addInfoMessage()]
NEW QUESTION # 149
Which one of the following objects CANNOT be used in a Script Action script?
- A. current
- B. previous
- C. event
- D. GlideRecord
Answer: B
Explanation:
https://docs.servicenow.com/bundle/tokyo-platform-administration/page/administer/platform-events/reference/r_
NEW QUESTION # 150
Which one of the following is NOT a UI Action type?
- A. Form choice
- B. List banner button
- C. List choice
- D. Form button
Answer: C
Explanation:
A UI Action is a button, link, or choice that can be clicked by a user to perform an action, such as submitting a form or running a script. The following are UI Action types:
* List choice. This is a UI Action that appears as a choice list on a list of records. It can be used to perform an action on multiple records at once, such as deleting or updating them.
* Form button. This is a UI Action that appears as a button on a form. It can be used to perform an action on the current record, such as saving or approving it.
* List banner button. This is a UI Action that appears as a button on the banner of a list of records. It can be used to perform an action on the entire list, such as exporting or printing it.
The following is not a UI Action type:
* Form choice. This is not a UI Action type, but a field type. A form choice is a field that displays a choice list on a form. It can be used to select a value from a predefined set of options, such as priority or state. References: UI Actions, Field Types
NEW QUESTION # 151
The source control operation used to store local changes on an instance for later application is called a(n)
<blank>.
- A. Update set
- B. Tag
- C. Branch
- D. Stash
Answer: D
Explanation:
The source control operation used to store local changes on an instance for later application is called a stash.
A stash is a temporary storage area for uncommitted changes that are not ready to be pushed to a remote repository. Developers can use stashes to save their work in progress without committing it to the local repository or discarding it. Stashes can be applied later to restore the changes to the working directory, or dropped if they are no longer needed. References: [ServiceNow Docs - Stash local changes], [ServiceNow Docs - Source control] Reference: https://docs.servicenow.com/bundle/orlando-application-development/page/build/applications
/task/ t_StashLocalChanges.html
NEW QUESTION # 152
In a Business Rule, which one of the following returns true if the currently logged in user has the admin role?
- A. g_form.hasRoleExactly('admin')
- B. gs.hasRoleExactly('admin')
- C. gs.hasRole('admin')
- D. g_form.hasRole('admin')
Answer: C
Explanation:
Business Rule is server-side, so it uses GlideSystem API. gs.hasRoleExactly doesn't exist In a Business Rule, the following returns true if the currently logged in user has the admin role:
gs.hasRole('admin'). This is the correct answer because gs is the GlideSystem object, which provides methods for performing system operations, and hasRole is a method that checks if the current user has the specified role. For example, gs.hasRole('admin') will return true if the current user has the admin role, and false otherwise.
The following do not return true if the currently logged in user has the admin role in a Business Rule:
g_form.hasRoleExactly('admin'). This is not correct because g_form is the GlideForm object, which provides methods for manipulating forms, and hasRoleExactly is a method that checks if the current user has exactly the specified role and no other roles. For example, g_form.hasRoleExactly('admin') will return true if the current user has only the admin role, and false if the current user has the admin role and any other role.
g_form.hasRole('admin'). This is not correct because g_form is the GlideForm object, which provides methods for manipulating forms, and hasRole is a method that checks if the current user has the specified role or any role that contains the specified role. For example, g_form.hasRole('admin') will return true if the current user has the admin role or any role that contains the admin role, such as admin_ui or admin_script.
gs.hasRoleExactly('admin'). This is not correct because gs is the GlideSystem object, which provides methods for performing system operations, and hasRoleExactly is not a valid method of the gs object. There is no method that checks if the current user has exactly the specified role and no other roles in the gs object. Reference: Business Rules, GlideSystem, GlideForm
NEW QUESTION # 153
Which of the following are true for reports in ServiceNow? (Choose three.)
- A. Can be a graphical representation of data.
- B. Can be scheduled to be run and distributed by email.
- C. All users can generate reports on any table.
- D. Can be run on demand by authorized users.
- E. Any user can see any report shared with them.
Answer: A,B,D
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. Reference: Reports, Report Security
NEW QUESTION # 154
Which one of the following is true regarding Application Scope?
- A. Applications downloaded from 3rd party ServiceNow application developers cannot have naming conflicts
- B. All applications are automatically part of the Global scope
- C. Any developer can edit any application
- D. Developers can choose the prefix for a scope's namespace
Answer: A
Explanation:
https://docs.servicenow.com/bundle/rome-application-development/page/build/applications/concept/c_Applicatio The correct statement regarding Application Scope is that applications downloaded from 3rd party ServiceNow application developers cannot have naming conflicts. Application Scope is a feature that identifies and isolates applications and their related artifacts from other applications. Each scoped application has a unique namespace identifier that consists of a prefix and a scope name. This prevents cross-application name collisions and ensures that only authorized scripts canaccess or modify data in a scoped application.
References: [Product Documentation | ServiceNow], [How To Create a Scoped App in ServiceNow - YouTube]
NEW QUESTION # 155
What syntax is used in a Record Producer script to access values from Record Producer form fields?
- A. producer.field_name
- B. producer.variablename
- C. current.field_name
- D. current.variable_name
Answer: B
Explanation:
The syntax used in a Record Producer script to access values from Record Producer form fields is producer.
variable_name. A Record Producer is a type of catalog item that allows users to create records on any table from the service catalog. A Record Producer script is a server-side script that runs when a Record Producer is submitted, and can be used to set values or perform actions on the generated record. The producer object is a global object that represents the Record Producer form and its variables. The variable_name is the name of the variable defined in the Record Producer. References: [ServiceNow Docs - Record producers], [ServiceNow Docs - Record producer script]
NEW QUESTION # 156
When selecting the Target table for an import which tables can you select?
Choose 3 answers
- A. Related tables, using Dot Walk
- B. Tables within the existing application scope
- C. Tables outside of ServiceNow
- D. Tables within the global scope
- E. Tables which allow write access to other applications
Answer: B,D,E
NEW QUESTION # 157
Which one of the following is true regarding Application Scope?
- A. Applications downloaded from 3rd party ServiceNow application developers cannot have naming conflicts
- B. All applications are automatically part of the Global scope
- C. Any developer can edit any application
- D. Developers can choose the prefix for a scope's namespace
Answer: A
Explanation:
https://docs.servicenow.com/bundle/rome-application-development/page/build/applications/concept
/c_ApplicationScope.html
The correct statement regarding Application Scope is that applications downloaded from 3rd party ServiceNow application developers cannot have naming conflicts. Application Scope is a feature that identifies and isolates applications and their related artifacts from other applications. Each scoped application has a unique namespace identifier that consists of a prefix and a scope name. This prevents cross-application name collisions and ensures that only authorized scripts can access or modify data in a scoped application.
References: [Product Documentation | ServiceNow], [How To Create a Scoped App in ServiceNow - YouTube]
NEW QUESTION # 158
What is the ServiceNow App Repository?
- A. A database containing ServiceNow apps
- B. A Request table
- C. A collection of files in a Git database
- D. Another name for update sets
Answer: A
Explanation:
The ServiceNow App Repository is a central repository for all scoped applications that are published by all ServiceNow customers. It enables ServiceNow customers to upload and distribute applications between their instances. It also provides entitlements and version control for the applications.
Reference:
ServiceNow application repository
Application Development Platform - ServiceNow
App Repo - ServiceNow Developer Blog
NEW QUESTION # 159
To see what scripts, reports, and other application artifacts will be in a published application:
- A. Enter the name of the Application in the Global search field
- B. Examine the Application Files Related List in the application to be published
- C. Open the artifact records individually to verify the value in the Application field
- D. Open the list of Update Sets for the instance
Answer: D
Explanation:
Explanation
Explanation/Reference: https://community.servicenow.com/community?
id=community_article&sys_id=d2dce665dbd0dbc01dcaf3231f9619fe
NEW QUESTION # 160
Which ATF Test step allows you to create a user with specified roles and groups for the test?
- A. Create a group
- B. Create a role
- C. Create a user
- D. Impersonation
Answer: C
Explanation:
The Automated Test Framework (ATF) is a tool that allows you to create and run automated tests on the ServiceNow platform. The ATF uses test steps to define the actions and validations for each test. The test step that allows you to create a user with specified roles and groups for the test is the Create a user test step. This test step creates a temporary user record that is deleted at the end of the test. You can specify the user name, password, roles, and groups for the user. You can also use the Impersonate a user test step to switch to the created user and perform actions as that user.
The other options are not valid test steps for creating a user. The Create a role and Create a group test steps do not exist in the ATF. To create a role or a group, you need to use the Create a record test step and specify the sys_user_role or sys_user_group table. The Impersonation test step does not create a user, but switches to an existing user.
Reference:
[Automated Test Framework overview]
[Automated Test Framework test steps]
[Create a user test step]
[Impersonate a user test step]
NEW QUESTION # 161
When creating an application through the Guided Application Creator, which of the following is NOT an option for creating a table?
- A. Extend a table
- B. Create table from template
- C. Create table from scratch
- D. Upload spreadsheet
Answer: B
Explanation:
Create table from template is not an option for creating a table through the Guided Application Creator. The other options are available for creating a table in the app. Upload spreadsheet allows you to import data from an Excel file and create a table based on the spreadsheet columns and rows. Extend a table allows you to create a child table that inherits fields and behaviors from a parent table. Create table from scratch allows you to define your own fields and data types for a new table. Reference: Create tables
https://docs.servicenow.com/bundle/tokyo-application-development/page/build/guided-app-creator/concept
/gac-tables.html
NEW QUESTION # 162
Which of the following is true about g_scratchpad?
Choose 2 answers
- A. Has default properties passed by client-side scripts
- B. Has constructors and methods
- C. Used to push information from the server to the client
- D. Does not exist on the mobile platform
Answer: B,C
NEW QUESTION # 163
Here is the Business Rule script template:
This type of JavaScript function is known as:
- A. Constructor
- B. Self-invoking
- C. Scoped
- D. Anonymous
Answer: B
Explanation:
Self-invoking. Learn JavaScript!
This type of JavaScript function is known as self-invoking or immediately-invoked function expression (IIFE). It is a function that is defined and executed at the same time, without being assigned to a variable or being called by another function. It is often used to create a local scope for variables and avoid polluting the global namespace. References: [W3Schools - JavaScript Function Definitions], [MDN Web Docs - Immediately-invoked function expressions]
NEW QUESTION # 164
......
Get Special Discount Offer of CAD Certification Exam Sample Questions and Answers: https://www.actual4test.com/CAD_examcollection.html
Enhance Your Career With Available Preparation Guide for CAD Exam: https://drive.google.com/open?id=1ie59b74mkDbIGY0W4GfS_lVOGeuGcw4J