Knowledge check

Completed
1.

At the end of your stored procedure, you would like to set the HTTP response to a static string of Test. Which line of JavaScript code should you use to accomplish this task?

2.

You're authoring a stored procedure in JavaScript and would like to manually roll back a transaction in your code for a certain condition. Which line of code should you use to roll back a transaction?

3.

Your code contains a variable of type Microsoft.Azure.Cosmos.Container named container and another variable of type Microsoft.Azure.Cosmos.Scripts.StoredProcedureProperties named props. Which code block below would asynchronously create a new stored procedure using the two variables?

4.

Your stored procedure creates three items with three distinct unique identifiers and logical partition key values. When running your stored procedure, you encounter an error. What is the cause for this error?