Which two actions should you perform to ensure that the trigger runs?
You need to implement a trigger in Azure Cosmos DB Core (SQL) API that will run before an item is inserted into a container.
Which two actions should you perform to ensure that the trigger runs? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.
A . Append pre to the name of the JavaScript function trigger.
B . For each create request, set the access condition in RequestOptions.
C . Register the trigger as a pre-trigger.
D . For each create request, set the consistency level to session in RequestOptions.
E . For each create request, set the trigger name in RequestOptions.
Answer: A, C
Explanation:
C: When triggers are registered, you can specify the operations that it can run with.
F: When executing, pre-triggers are passed in the RequestOptions object by specifying PreTriggerInclude and then passing the name of the trigger in a List object.
Reference: https://docs.microsoft.com/en-us/azure/cosmos-db/sql/how-to-use-stored-procedures-triggers-udfs
Latest DP-420 Dumps Valid Version with 51 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund