ExamGecko
Home Home / ServiceNow / CAD

ServiceNow CAD Practice Test - Questions Answers, Page 6

Question list
Search
Search

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

A.
gs.log()
A.
gs.log()
Answers
B.
gs.error()
B.
gs.error()
Answers
C.
gs.warn()
C.
gs.warn()
Answers
D.
gs.debug()
D.
gs.debug()
Answers
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.

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

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

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

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.
a, b, c, and d
A.
a, b, c, and d
Answers
B.
a and b
B.
a and b
Answers
C.
b and c
C.
b and c
Answers
D.
a, b, and c
D.
a, b, and c
Answers
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]

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

A.
table.*will grant access to every field in a record
A.
table.*will grant access to every field in a record
Answers
B.
table.None will grant access to every record on the table
B.
table.None will grant access to every record on the table
Answers
C.
table.field will grant access to a specific field in a record
C.
table.field will grant access to a specific field in a record
Answers
D.
table.id will grant access to a specific record on the table
D.
table.id will grant access to a specific record on the table
Answers
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]

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

A.
g_user.hasRole() and current.isNewRecord()
A.
g_user.hasRole() and current.isNewRecord()
Answers
B.
gs.hasRole() and current.isNewRecord()
B.
gs.hasRole() and current.isNewRecord()
Answers
C.
g_user.hasRole() and current.isNew()
C.
g_user.hasRole() and current.isNew()
Answers
D.
gs.hasRole() and current.isNew()
D.
gs.hasRole() and current.isNew()
Answers
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]

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

A.
Catalog Client Scripts and Catalog UI Policies
A.
Catalog Client Scripts and Catalog UI Policies
Answers
B.
UI Scripts and UI Actions
B.
UI Scripts and UI Actions
Answers
C.
UI Scripts and Record Producer Scripts
C.
UI Scripts and Record Producer Scripts
Answers
D.
Client Scripts and UI Policies
D.
Client Scripts and UI Policies
Answers
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

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

A.
Publisher
A.
Publisher
Answers
B.
Specialist
B.
Specialist
Answers
C.
Provider
C.
Provider
Answers
D.
Consumer
D.
Consumer
Answers
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

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

A.
Create a Catalog Category, open the category, and select the Add New Record Producer button
A.
Create a Catalog Category, open the category, and select the Add New Record Producer button
Answers
B.
Use the Record Producer module then add and configure all variables manually
B.
Use the Record Producer module then add and configure all variables manually
Answers
C.
Open the table in the Table records and select the Add to Service Catalog Related Link
C.
Open the table in the Table records and select the Add to Service Catalog Related Link
Answers
D.
Open the table's form, right-click on the form header, and select the Create Record Producer menu item
D.
Open the table's form, right-click on the form header, and select the Create Record Producer menu item
Answers
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

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

A.
GlideRecord and current
A.
GlideRecord and current
Answers
B.
GlideUser and GlideRecord
B.
GlideUser and GlideRecord
Answers
C.
GlideSystem and GlideRecord
C.
GlideSystem and GlideRecord
Answers
D.
GlideSystem and current
D.
GlideSystem and current
Answers
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

Total 199 questions
Go to page: of 20