ExamGecko
Home / ServiceNow / CAD / List of questions
Ask Question

ServiceNow CAD Practice Test - Questions Answers, Page 6

List of questions

Question 51

Report
Export
Collapse

Which one of the following is NOT a method used for logging messages in a server-side script for a privately- scoped application?

gs.log()
gs.log()
gs.error()
gs.error()
gs.warn()
gs.warn()
gs.debug()
gs.debug()
Suggested answer: A

Explanation:

gs.print() and gs.log() are older and not available in scoped applications, whereas gs.debug(), gs.info(), gs.warn(), gs.error() work in both scoped applications and global are therefore are more versatile going forward in future versions.

asked 23/09/2024
Veridjan Hoxha
36 questions

Question 52

Report
Export
Collapse

If the Create module field is selected when creating a table, what is the new module's default behavior?

Open an empty form so new records can be created
Open an empty form so new records can be created
Open a link to a wiki article with instructions on how to customize the behavior of the new module
Open a link to a wiki article with instructions on how to customize the behavior of the new module
Display an empty homepage for the application
Display an empty homepage for the application
Display a list of all records from the table
Display a list of all records from the table
Suggested 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

asked 23/09/2024
najim faryabi
29 questions

Question 53

Report
Export
Collapse

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

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
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
Set the Accessible from field value to All application scopes and de-select the Can create option
Set the Accessible from field value to All application scopes and de-select the Can create option
Set the Accessible from field value to This application scope only and de-select the Allow access to this table via web services option
Set the Accessible from field value to This application scope only and de-select the Allow access to this table via web services option
Set the Accessible from field value to This application scope only
Set the Accessible from field value to This application scope only
Suggested answer: D

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_securingapps_rome_application_access

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

asked 23/09/2024
Emmanuel Yeboah
38 questions

Question 54

Report
Export
Collapse

What are some of the benefits of extending an existing table such as the Task table when creating a new application?

a) You can repurpose existing fields by simply changing the label.

b) Use existing fields with no modifications.

c) Existing logic from the parent table will be automatically applied to the new table.

d) All of the parent table records are copied to the new table.

a, b, c, and d
a, b, c, and d
a and b
a and b
b and c
b and c
a, b, and c
a, b, and c
Suggested answer: D

Explanation:

Extending an existing table such as the Task table when creating a new application has several benefits, such as:

You can repurpose existing fields by simply changing the label. For example, you can change the Short description field to Summary or Title for your new table.

You can use existing fields with no modifications. For example, you can use the Assigned to, Priority, and State fields for your new table without changing anything.

Existing logic from the parent table will be automatically applied to the new table. For example, you can inherit the Business Rules, Client Scripts, and UI Policies from the Task table for your new table.

The only option that is not true is d) All of the parent table records are copied to the new table. Extending a table does not copy any records from the parent table to the new table. It only creates a new table that inherits the fields and logic from the parent table.

References:

[Extend a table]

[Task table]

asked 23/09/2024
Micele Mercer
38 questions

Question 55

Report
Export
Collapse

When configuring an Access Control which has no condition or script, which one of the following statements is NOT true?

table.*will grant access to every field in a record
table.*will grant access to every field in a record
table.None will grant access to every record on the table
table.None will grant access to every record on the table
table.field will grant access to a specific field in a record
table.field will grant access to a specific field in a record
table.id will grant access to a specific record on the table
table.id will grant access to a specific record on the table
Suggested answer: D

Explanation:

Access Controls are rules that define who can access what data and how they can access it. When configuring an Access Control, you can specify the table, operation, and role for the rule. You can also add a condition or a script to further refine the rule. If you do not add a condition or a script, the rule will apply to all records and fields on the table.

The statements A, B, and C are true for Access Controls that have no condition or script. For example:

table.* will grant access to every field in a record. This means that the user can view and edit all the fields on the record, regardless of their role or any other criteria.

table.None will grant access to every record on the table. This means that the user can view and edit all the records on the table, regardless of their role or any other criteria.

table.field will grant access to a specific field in a record. This means that the user can view and edit only that field on the record, regardless of their role or any other criteria.

The statement D is not true for Access Controls that have no condition or script. table.id will not grant access to a specific record on the table. This is because the id is not a field name, but a unique identifier for the record. To grant access to a specific record on the table, you need to add a condition or a script that matches the id of the record.

References:

[Access Control rules]

[Create an Access Control rule]

asked 23/09/2024
Henry Pitcher
32 questions

Question 56

Report
Export
Collapse

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

g_user.hasRole() and current.isNewRecord()
g_user.hasRole() and current.isNewRecord()
gs.hasRole() and current.isNewRecord()
gs.hasRole() and current.isNewRecord()
g_user.hasRole() and current.isNew()
g_user.hasRole() and current.isNew()
gs.hasRole() and current.isNew()
gs.hasRole() and current.isNew()
Suggested 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]

asked 23/09/2024
Lampros Diamantopoulos
31 questions

Question 57

Report
Export
Collapse

Which one of the following client-side scripts apply to Record Producers?

Catalog Client Scripts and Catalog UI Policies
Catalog Client Scripts and Catalog UI Policies
UI Scripts and UI Actions
UI Scripts and UI Actions
UI Scripts and Record Producer Scripts
UI Scripts and Record Producer Scripts
Client Scripts and UI Policies
Client Scripts and UI Policies
Suggested answer: A

Explanation:

Catalog Client Scripts and Catalog UI Policies are the client-side scripts that apply to Record Producers. Catalog Client Scripts allow you to add or modify functionality on a catalog item or record producer form. Catalog UI Policies dynamically change information on a catalog item or record producer form. UI Scripts, UI Actions, Client Scripts, and UI Policies do not apply to Record Producers.

Reference:Catalog client scripts,Catalog UI policies

asked 23/09/2024
Suman Konda
46 questions

Question 58

Report
Export
Collapse

When a ServiceNow instance requests information from a web service, ServiceNow is the web service:

Publisher
Publisher
Specialist
Specialist
Provider
Provider
Consumer
Consumer
Suggested answer: D

Explanation:

When a ServiceNow instance requests information from a web service, ServiceNow is the web service consumer. A web service consumer is an application that sends requests to a web service provider and receives responses from it. A web service provider is an application that exposes its functionality as web services. A web service publisher is a person or organization that publishes web services for others to use. A web service specialist is a person who has expertise in developing or using web services.

Reference:Web services

asked 23/09/2024
Aleksey Koltsov
30 questions

Question 59

Report
Export
Collapse

Which one of the following is the fastest way to create and configure a Record Producer?

Create a Catalog Category, open the category, and select the Add New Record Producer button
Create a Catalog Category, open the category, and select the Add New Record Producer button
Use the Record Producer module then add and configure all variables manually
Use the Record Producer module then add and configure all variables manually
Open the table in the Table records and select the Add to Service Catalog Related Link
Open the table in the Table records and select the Add to Service Catalog Related Link
Open the table's form, right-click on the form header, and select the Create Record Producer menu item
Open the table's form, right-click on the form header, and select the Create Record Producer menu item
Suggested answer: C

Explanation:

The fastest way to create and configure a Record Producer is to open the table in the Table records and select the Add to Service Catalog Related Link. This will automatically create a Record Producer with the same fields as the table and add it to the Service Catalog. You can then modify the Record Producer as needed. The other options require more steps and manual configuration.

Reference:Create a record producer

asked 23/09/2024
Peter Urban
42 questions

Question 60

Report
Export
Collapse

Which objects can you use in a Scheduled Script Execution (Scheduled Job) script?

GlideRecord and current
GlideRecord and current
GlideUser and GlideRecord
GlideUser and GlideRecord
GlideSystem and GlideRecord
GlideSystem and GlideRecord
GlideSystem and current
GlideSystem and current
Suggested answer: C

Explanation:

https://developer.servicenow.com/dev.do#!/learn/learning-plans/quebec/servicenow_administrator/app_store_learnv2_automatingapps_quebec_scheduled_script_execution_scripts

The objects that you can use in a Scheduled Script Execution (Scheduled Job) script are GlideSystem and GlideRecord. GlideSystem provides methods for performing system operations, such as logging, running background scripts, or getting system information. GlideRecord provides methods for working with records in the database, such as querying, updating, inserting, or deleting records. The current object is not available in Scheduled Script Execution scripts, as it refers to the current record on a form or list. The GlideUser object is also not available, as it refers to the current user session.

Reference:Scheduled Script Execution,GlideSystem,GlideRecord

asked 23/09/2024
Firew Abebe
29 questions
Total 223 questions
Go to page: of 23