Which role(s) are required to impersonate a user? Choose 2 answers
Correct Answer: A,E
Question 152
Which server-side API debug log method is available for scoped applications?
Correct Answer: C
In ServiceNow, the gs object provides a range of methods for logging messages on the server side. However, the availability of these methods can vary depending on whether the application is global or scoped. * gs.info(): This method is available in scoped applications and is used to log informational messages to the system log. It provides a way to record general information during script execution. Options A (gs.log()), B (gs.print()), and D (gs.debugLog()) are not available in scoped applications. These methods are either restricted to global applications or do not exist in the ServiceNow API. For more detailed information, refer to the official ServiceNow documentation on server-side scripting:
Question 153
What syntax is used in a Record Producer script to access values from Record Producer form fields?
Correct Answer: B
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] Reference: https://community.servicenow.com/community? id=community_QUESTION NO: &sys_id=cc3803addb1cdbc01dcaf3231f9619b6
Question 154
When a selecting a data type for a field that will be displayed on a form, which of the following statements is NOT correct?
Correct Answer: B
The data type of a field determines the format, validation, and display of the field value on a form. When selecting a data type for a field, you should consider the purpose and function of the field. The statements A, C, and D are correct for selecting a data type for a field. For example: Use the Choice data type to limit options in a field: The Choice data type allows you to create a field that has a predefined set of options for the user to select from. The options can be displayed as a drop-down list, radio buttons, or checkboxes. For example, you can use the Choice data type for a field that indicates the priority of a task. Use the Phone Number data type to automate phone number data validation: The Phone Number data type allows you to create a field that accepts and validates phone numbers. The field will automatically format the phone number according to the user's locale and country code. For example, you can use the Phone Number data type for a field that stores the contact number of a user. Use the string data type for a free-form text field: The string data type allows you to create a field that accepts any text input from the user. The field can have a maximum length of 255 characters. For example, you can use the string data type for a field that captures the short description of an incident. The statement B is not correct for selecting a data type for a field. There is no Data data type in ServiceNow. To enter the date and time of day, you should use the Date/Time data type. The Date/Time data type allows you to create a field that accepts and displays a date and time value. The field will use a calendar widget and a time picker to help the user enter the value. For example, you can use the Date/Time data type for a field that records the due date of a task. Reference: [Field types] [Date/Time field type]
Question 155
How does the Application Picker interact with Application Scope in ServiceNow?
Correct Answer: C
In ServiceNow, the Application Picker is a user interface element that allows developers to select the active application they are working on. The selected application determines the Application Scope, which defines the boundaries within which application artifacts (like tables, scripts, and UI components) reside and operate. * A. Selecting Global in the Application Picker sets the Application Scope to Incident: This is incorrect. Selecting "Global" sets the scope to the global application, not specifically to the Incident application. * B. Global is a reserved application that does not appear in the Application Picker: This is incorrect. The "Global" application is available in the Application Picker and represents the global scope. * C. Selecting an application from the Application Picker sets the Application Scope: This is correct. Choosing an application from the Application Picker establishes that application's scope as the current context for development and configuration. * D. Selecting an application from the Application Picker does not set the Application Scope: This is incorrect. The Application Picker directly influences the current Application Scope. For more information, refer to the official ServiceNow documentation on Application Scope. For a visual demonstration of restricting access to your ServiceNow application, you may find the following video helpful: Restricting Access to your ServiceNow App