REST Flashcards
Which of the following describes an outbound REST integration in ServiceNow? More than one response may be correct.
A. A REST call from ServiceNow to a web service to get updated stock prices for company records.
B. A REST call from ServiceNow to a ServiceNow instance to get user details.
C. A REST call from ServiceNow to a language translation web service to translate a knowledge article.
D. A REST call from ServiceNow to a vendor to get updated product information.
E. A REST call from ServiceNow to a weather API to get updated weather information at a customer site.
A. A REST call from ServiceNow to a web service to get updated stock prices for company records.
B. A REST call from ServiceNow to a ServiceNow instance to get user details.
C. A REST call from ServiceNow to a language translation web service to translate a knowledge article.
D. A REST call from ServiceNow to a vendor to get updated product information.
E. A REST call from ServiceNow to a weather API to get updated weather information at a customer site.
Which of the following is NOT information used to configure a REST Message record? A. HTTP Method B. Endpoint C. Name D. Authentication E. HTTP Headers
A. HTTP Method
Which of the following are authentication methods supported in a REST Message record? More than one response may be correct. A. No authentication B. Query parameters C. Basic D. Username and password E. OAuth 2.0
A. No authentication
C. Basic
E. OAuth 2.0
Which one of the following is NOT an available HTTP method? A. GET B. POST C. PUT D. UPDATE E. DELETE
D. UPDATE
PATCH is the fifth HTTP method.
View the IEX Cloud API documentation for Earnings. Which of the following are valid HTTP Method Endpoints? More than one response may be correct.
A. https://cloud.iexapis.com/stable/stock/{symbol}/earnings/{last}/{field}
B. https://cloud.iexapis.com/stable/stock/${symbol}/earnings/${last}/${field}
C. /stock/{symbol}/earnings/{last}/{field}
D. https://cloud.iexapis.com/stable/stock/${symbol}/earnings/
E. https://cloud.iexapis.com/stable/stock/NOW/earnings/${last}/
B. https://cloud.iexapis.com/stable/stock/${symbol}/earnings/${last}/${field}
D. https://cloud.iexapis.com/stable/stock/${symbol}/earnings/
E. https://cloud.iexapis.com/stable/stock/NOW/earnings/${last}/
True or False? Query Parameters are name/value pairs appended to the endpoint value at runtime. For example, a query parameter with the Name last and the Value 2 is appended to the earnings endpoint as https://cloud.iexapis.com/stable/stock/${symbol}/earnings?last=2
True
Which HTTP Log Level was used to create the HTTP Log?
The outbound HTTP log shows the method and URL used, but has no information in the Request headers or Request body fields.
A. None
B. Basic
C. Elevated
D. Debug
E. All
B. Basic
Which of the following are ways to execute a REST message method? More than one response may be correct.
A. Click the Test related link on the HTTP Method record.
B. Click the Test button on the HTTP Method record.
C. Click the Preview Script Usage related link to copy JavaScript to call the web service in a server-side script.
D. Click the Get Code Snippet related link to copy JavaScript to call the web service in a server-side script.
E. Click the Execute Now button on the HTTP Method record.
A. Click the Test related link on the HTTP Method record.
C. Click the Preview Script Usage related link to copy JavaScript to call the web service in a server-side script.
How can a developer extract data from the response body after calling a REST web service? More than one response may be correct.
A. Click the Convert Response Body button to convert the response.
B. Use the JSON API to convert JSON formatted responses to a JavaScript object.
C. Use the XMLDocument2 API to extract data from XML formatted responses.
D. Use the XMLDocument2 Script Include to parse the XML.
E. Use the Convert Response Body wizard to translate the response into an object.
B. Use the JSON API to convert JSON formatted responses to a JavaScript object.
C. Use the XMLDocument2 API to extract data from XML formatted responses.
True or False? REST Message records are required to interact with external REST web services.
False
Which one of the following is NOT an IntegrationHub subscription level? A. Starter B. Basic C. Standard D. Professional E. Enterprise
B. Basic
Which of the following features and spokes use IntegrationHub? More than one response may be correct. A. Slack Spoke B. Customer Service Spoke C. PowerShell step D. Make a decision flow logic E. XML Parser
A. Slack Spoke
C. PowerShell step
E. XML Parser
True or False? Inline connections should only be used in REST steps for testing.
True
Which of the following describes ways to make a REST step dynamic? More than one response may be correct.
a. Write a script to build the endpoint.
b. Set the HTTP Method to POST and the user will be prompted for any values required by the API.
c. Use a data pill in the Resource Path for any variable information described in the external API’s documentation.
d. Use a data pill in the Query Parameter value for any query parameters described in the external API’s documentation.
c. Use a data pill in the Resource Path for any variable information described in the external API’s documentation.
d. Use a data pill in the Query Parameter value for any query parameters described in the external API’s documentation.
Which of the following describes how to test a REST step? More than one response may be correct.
a. Click the Test button on an action, supply input values, and click the Run Test button.
b. Publish the action and meet the conditions of the action’s trigger.
c. Add the action to a flow that is configured to Show draft actions and click the Test button on the flow.
d. Publish the action and add the action to a flow to test.
e. Click the Test button for the step, supply input values, and click the Run Test button.
a. Click the Test button on an action, supply input values, and click the Run Test button.
c. Add the action to a flow that is configured to Show draft actions and click the Test button on the flow.