What are the three key tables in an enterprise CMDB?
Choose 3 answers
Answer : B, E, F
How would you describe the relationship between the Incident and Task table? I Incident table is extended from Task table
Answer : A
What function do you use to add buttons, links, and context menu items on forms and lists?
Answer : B
The source control operation used to store local changes on an instance for later application is called a(n)
Answer : C
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. Reference: [ServiceNow Docs - Stash local changes], [ServiceNow Docs - Source control]
A developer wants to set up an application module that allows inserting new records into a table.
Which configuration option achieves this?
Answer : D
To allow a module to open a form for new record insertion, the Link type should be set to ''Create new record'' or similar.
From Platform App Design Docs:
''Modules control navigation behavior via the Link type setting. To insert records, use the 'Create record' or 'New record' link type.''
Identify the ways an application can respond to an Event generated by the gs.eventQueue() method. (Choose 2 answers)
Answer : B, E
In ServiceNow, when an event is generated using the gs.eventQueue() method, the system can respond in several ways:
B . Email Notification: Events can trigger email notifications. By associating an event with a notification, the system can send emails to specified recipients when the event occurs.
E . Script Action: Script Actions are server-side scripts that execute in response to events. They allow developers to define custom behaviors that should occur when specific events are fired.
The other options are not appropriate responses to events generated by gs.eventQueue():
A . UI Policy: UI Policies are used to dynamically change the behavior of fields on forms in the user interface and are not triggered by events.
C . Client Script: Client Scripts run on the client side (in the user's browser) and are not directly triggered by server-side events.
D . Scheduled Script Execution (Scheduled Job): Scheduled Jobs are scripts that run at specified times or intervals and are not triggered by events.
For more detailed information, refer to the official ServiceNow documentation on Responding to Events.
Which of the following methods are useful in Access Control scripts?
Answer : B
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.
[Access Control scripts]
[GlideSystem methods]
[GlideRecord methods]