Vancouver - Learning Plan Questions Flashcards

1
Q

QUESTION: Which one of the following is NOT a true statement Scheduled Script Executions?
1. Automated server-side script logic
2. Execute at a specific time or on a recurring basis
3. Can be executed on demand
4. Executes once per month
5. Typically used for time-based application processes

A

QUESTION: Which one of the following is NOT a true statement Scheduled Script Executions?
1. Automated server-side script logic
2. Execute at a specific time or on a recurring basis
3. Can be executed on demand
4. Executes once per month
5. Typically used for time-based application processes

ANSWER: Response 4 is not a true statement. Although a Scheduled Script Execution can be configured to execute once per month, it is not required. Scheduled Script Executions can be configured to run weekly, for example.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

QUESTION: Which one of the following is NOT a frequency for the Run field of a Scheduled Script Execution?
1. Daily
2. Weekly
3. Monthly
4. Annually
5. Periodically

A

QUESTION: Which one of the following is NOT a frequency for the Run field of a Scheduled Script Execution?
Daily
Weekly
Monthly
Annually
Periodically
ANSWER: Response 4 is not a true statement.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

QUESTION: Which of the following are true statements for Scheduled Script Execution scripts? More than one response may be correct.
1. Execute server-side
2. Do not have access to the current or previous objects
3. Variables in the Condition script field are not known in the Run this script field
4. If there is no Condition script, the Condition field returns false
5. The Condition script field must set the answer variable to true or false

A

QUESTION: Which of the following are true statements for Scheduled Script Execution scripts? More than one response may be correct.
1. Execute server-side
2. Do not have access to the current or previous objects
3. Variables in the Condition script field are not known in the Run this script field
4. If there is no Condition script, the Condition field returns false
5. The Condition script field must set the answer variable to true or false
ANSWER: The correct responses are 1, 2, and 5. Variables in the Condition script field are known to the Run this script field if the rules of JavaScript scope allow it. If there is no Condition script, the Condition field returns true.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

QUESTION: Which one of the following correctly describes how a Scheduled Script Execution is configured to run on the last day of the month?
1. Create a daily Scheduled Script Execution and use the Condition Builder to select Last day of month
2. Create a daily Scheduled Script Execution and use the Condition Builder to create the condition 28 || 29 || 30 || 31
3. Create a monthly Scheduled Script Execution and set the Day to 31
4. Create a monthly Scheduled Script Execution and set the Day to 28
5. Scheduled Script Executions cannot be configured to run on the last day of the month

A

QUESTION: Which one of the following correctly describes how a Scheduled Script Execution is configured to run on the last day of the month?
1. Create a daily Scheduled Script Execution and use the Condition Builder to select Last day of month
2. Create a daily Scheduled Script Execution and use the Condition Builder to create the condition 28 || 29 || 30 || 31
3. Create a monthly Scheduled Script Execution and set the Day to 31
4. Create a monthly Scheduled Script Execution and set the Day to 28
5. Scheduled Script Executions cannot be configured to run on the last day of the month
ANSWER: The correct response is 3.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

QUESTION: Use the Today’s Scheduled Jobs module to see which Scheduled Script Executions will execute today. Which one of the following is NOT a column in the Today’s Scheduled Jobs list?
1. Name
2. Next action
3. Last action
4. Trigger type
5. State

A

QUESTION: Use the Today’s Scheduled Jobs module to see which Scheduled Script Executions will execute today. Which one of the following is NOT a column in the Today’s Scheduled Jobs list?
1. Name
2. Next action
3. Last action
4. Trigger type
5. State
ANSWER: Response 3 is the correct response. The Today’s Scheduled Jobs table does not have a Last action column.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

QUESTION: Which of the following are steps in the generalized process for working with events? More than one response may be correct.
1. Add an event to the Event Registry
2. Write a Business Rule
3. Generate the event
4. Respond to the event
5. Create a Scheduled Script Execution

A

QUESTION: Which of the following are steps in the generalized process for working with events? More than one response may be correct.
1. Add an event to the Event Registry
2. Write a Business Rule
3. Generate the event
4. Respond to the event
5. Create a Scheduled Script Execution
ANSWER: The correct responses are 1, 3, and 4. Although you could use a Business Rule or Scheduled Script Execution to generate the event, any server-side script can do that. Business Rules and Scheduled Script Executions are not part of the generalized process for working with events.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

QUESTION: Which one of the following best describes the Event Registry?
1. List of all events executed today
2. Used to generate events
3. The queue manager to determine order of event processing
4. Allows ServiceNow processes to recognize and respond to events
5. An event debugger

A

QUESTION: Which one of the following best describes the Event Registry?
1. List of all events executed today
2. Used to generate events
3. The queue manager to determine order of event processing
4. Allows ServiceNow processes to recognize and respond to events
5. An event debugger
ANSWER: Response 4 is the correct response.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

QUESTION: Which of the following are ways to generate an event in ServiceNow? More than one response may be correct.
1. Create Event workflow activity
2. gs.eventQueueScheduled() method in a client-side script
3. gs.eventQueue() method in a client-side script
4. gs.eventQueueScheduled() method in a server-side script
5. gs.eventQueue() method in a server-side script

A

QUESTION: Which of the following are ways to generate an event in ServiceNow? More than one response may be correct.
1. Create Event workflow activity
2. gs.eventQueueScheduled() method in a client-side script
3. gs.eventQueue() method in a client-side script
4. gs.eventQueueScheduled() method in a server-side script
5. gs.eventQueue() method in a server-side script
ANSWER: The correct responses are 1, 4 and 5. The methods for generating events, gs.eventQueue() and gs.eventQueueScheduled() are server-side methods and not client-side.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

QUESTION: Which one of the following is NOT passed as a parameter to the gs.eventQueue() method when generating an event?
1. Event name
2. User
3. parm1
4. parm2
5. GlideRecord object

A

QUESTION: Which one of the following is NOT passed as a parameter to the gs.eventQueue() method when generating an event?
1. Event name
2. User
3. parm1
4. parm2
5. GlideRecord object
ANSWER: The correct response is 2. The gs.eventQueue() method does not include passing a User or User information as a parameter. Developers may choose to pass User information in parm1, parm2, or as part of the GlideRecord object but it is not required.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

QUESTION: Which of the following are true statements about the Event Log? More than one response may be correct.
1. Shows which events have been generated
2. Displays the runtime values of Parm1 and Parm2
3. Shows Processing duration in seconds
4. Allows developers to determine which queue processed the event
5. Shows which table the GlideRecord object passed to the event is part of

A

QUESTION: Which of the following are true statements about the Event Log? More than one response may be correct.
1. Shows which events have been generated
2. Displays the runtime values of Parm1 and Parm2
3. Shows Processing duration in seconds
4. Allows developers to determine which queue processed the event
5. Shows which table the GlideRecord object passed to the event is part of
ANSWER: The correct responses are 1, 2, 4, and 5. The Event Log does show processing duration but the values are in milliseconds and not in seconds.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

QUESTION: Which of the following are possible ways to respond to events? More than one response may be correct.
1. Email Notification
2. Business Rule
3. Scheduled Script Execution
4. Respond Event workflow activity
5. Script Action

A

QUESTION: Which of the following are possible ways to respond to events? More than one response may be correct.
1. Email Notification
2. Business Rule
3. Scheduled Script Execution
4. Respond Event workflow activity
5. Script Action
ANSWER: The correct responses are 1 and 5.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

QUESTION: Which of the following are classes in the ServiceNow server-side API? More than one response may be correct.
1. GlideSystem (gs)
2. GlideUser (g_user)
3. GlideDateTime
4. GlideDate
5. GlideForm (g_form)

A

QUESTION: Which of the following are classes in the ServiceNow server-side API? More than one response may be correct.
1. GlideSystem (gs)
2. GlideUser (g_user)
3. GlideDateTime
4. GlideDate
5. GlideForm (g_form)
ANSWER: Responses 1, 3, and 4 are correct. GlideSystem, GlideDateTime, and GlideDate are part of the ServiceNow server-side API. The server-side API also has a GlideUser class but the server-side GlideUser class does not use the g_user object. If you are not sure whether a class is part of the client-side or server-side API, check the API Reference.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

QUESTION: Which one of the following describes when before Business Rules execute their script logic?
1. Before a form loads
2. After a form loads but before control is given to the user
3. Before onChange Client Scripts
4. Before Business Rule Actions
5. Before records are written to the database

A

QUESTION: Which one of the following describes when before Business Rules execute their script logic?
1. Before a form loads
2. After a form loads but before control is given to the user
3. Before onChange Client Scripts
4. Before Business Rule Actions
5. Before records are written to the database

ANSWER: 5. onBefore Business Rules execute their script logic before records are updated in the database.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

QUESTION: What is the difference between an after Business Rule and an async Business Rule?

A

QUESTION: What is the difference between an after Business Rule and an async Business Rule?
ANSWER: Both after and async Business Rules execute their script logic after records are written to the database. after Business Rules execute their logic immediately after a record is written to the database. async Business Rules create scheduled jobs that run soon after a record is written to the database.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

QUESTION: Which of the following are NOT methods from the GlideRecord API? More than one response may be correct.
1. addQuery()
2. addEncodedQuery()
3. addOrQuery()
4. addAndQuery()
5. query()

A

QUESTION: Which of the following are NOT methods from the GlideRecord API? More than one response may be correct.
1. addQuery()
2. addEncodedQuery()
3. addOrQuery()
4. addAndQuery()
5. query()
ANSWER: Responses 3 and 4 are correct. addOrQuery() and addAndQuery() are not methods from the GlideRecord API. If a script contains multiple statements that use the addQuery() method the queries are ANDed. To explicitly AND or OR a condition in a query, use the methods from the GlideQueryCondition class.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

QUESTION: Which of the following are NOT true about the current object? More than one response may be correct.
1. The current object is automatically instantiated.
2. The current object property values never change after a record is loaded from the database.
3. The current and previous objects are always identical.
4. The current and previous objects are sometimes identical.
5. The properties of the current object are the same for all Business Rules.

A

QUESTION: Which of the following are NOT true about the current object? More than one response may be correct.
1. The current object is automatically instantiated.
2. The current object property values never change after a record is loaded from the database.
3. The current and previous objects are always identical.
4. The current and previous objects are sometimes identical.
5. The properties of the current object are the same for all Business Rules.
ANSWER: Responses 2, 3, and 5 are correct. Although the current object’s property values do not have to change, they can. The current object’s property values are sometimes identical to the previous object’s properties. For example, the current and previous objects are identical immediately after a record is loaded from the database. The properties of the current object for Business Rules are dependent on which table the Business Rule is for.

17
Q

QUESTION: What value does a Business Rule Condition field return if the field is empty?
1. true
2. false
3. Nothing
4. “”
5. NULL

A

QUESTION: What value does a Business Rule Condition field return if the field is empty?
1. true
2. false
3. Nothing
4. “”
5. NULL
ANSWER: Response 1 is correct. If there is no value in the Condition field, the field returns true. Business Rule scripts only execute their script logic if the Condition field returns true.

18
Q

QUESTION: Examine the database tables and fields.
The database contains the NeedIt table and the Uer table.
Based on the database, which one of the following is valid dot-walking syntax?

  1. u_requested_for.userID
  2. current.u_requested_for.userID
  3. number.userID
  4. current.number.userID
  5. previous.email.u_requested_for
A

QUESTION: Examine the database tables and fields.
The database contains the NeedIt table and the Uer table.
Based on the database, which one of the following is valid dot-walking syntax?

  1. u_requested_for.userID
  2. current.u_requested_for.userID
  3. number.userID
  4. current.number.userID
  5. previous.email.u_requested_for

ANSWER: Response 2 is correct. Dot-walking allows direct scripting access to fields and field values on related records.

The dot-walking syntax is:
object.related_object.field_name

19
Q

QUESTION: Which of the following are true about Script Includes? More than one response may be correct.
1. Script Includes are reusable server-side script logic
2. Script includes can extend an existing class
3. Script includes can define a new class or function
4. Script includes can be client callable
5. Script includes execute their script logic only when explicitly called

A

QUESTION: Which of the following are true about Script Includes? More than one response may be correct.
1. Script Includes are reusable server-side script logic
2. Script includes can extend an existing class
3. Script includes can define a new class or function
4. Script includes can be client callable
5. Script includes execute their script logic only when explicitly called
ANSWER: Responses 1, 2, 3, 4, and 5 are correct. All of the statements are true for Script Includes.