Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Microsoft Exam DP-420 Topic 12 Question 31 Discussion

Actual exam question for Microsoft's DP-420 exam
Question #: 31
Topic #: 12
[All DP-420 Questions]

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.

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Annice
1 months ago
I'm just hoping the trigger doesn't accidentally insert a unicorn into the container. That would be a real 'pre' problem!
upvoted 0 times
...
Meghan
1 months ago
Appending 'pre' to the name of the JavaScript function trigger? Hmm, that's a new one. I wonder if that's to differentiate it from a post-trigger or something.
upvoted 0 times
...
Rosendo
1 months ago
Wait, do I really need to set the consistency level to session? Seems like overkill for a simple insert trigger.
upvoted 0 times
Michell
6 days ago
You should register the trigger as a pre-trigger.
upvoted 0 times
...
Chantell
6 days ago
User3: User1 is correct, setting the consistency level to session is necessary.
upvoted 0 times
...
Lawana
11 days ago
No, you don't need to set the consistency level to session.
upvoted 0 times
...
Vincent
21 days ago
User2: No, you don't need to set the consistency level to session.
upvoted 0 times
...
Lynette
22 days ago
User1: Yes, you need to set the consistency level to session.
upvoted 0 times
...
...
Quentin
2 months ago
Oh, and I also need to set the trigger name in the RequestOptions. Gotta make sure the system knows which trigger to run.
upvoted 0 times
Caren
15 days ago
E) For each create request, set the trigger name in RequestOptions.
upvoted 0 times
...
Tammara
20 days ago
C) Register the trigger as a pre-trigger.
upvoted 0 times
...
Milly
2 months ago
A) Append pre to the name of the JavaScript function trigger.
upvoted 0 times
...
...
Penney
2 months ago
Great, so we should select options A and C for this question.
upvoted 0 times
...
Alishia
2 months ago
Yes, that makes sense. We also need to append pre to the name of the JavaScript function trigger.
upvoted 0 times
...
Penney
2 months ago
I think we need to register the trigger as a pre-trigger.
upvoted 0 times
...
Mattie
2 months ago
Exactly, those two actions should ensure that the trigger runs before an item is inserted into the container.
upvoted 0 times
...
Reiko
2 months ago
Looks like I need to register the trigger as a pre-trigger. Makes sense, since the docs say it should run before the item is inserted.
upvoted 0 times
Marylin
1 months ago
C) Register the trigger as a pre-trigger.
upvoted 0 times
...
Val
2 months ago
A) Append pre to the name of the JavaScript function trigger.
upvoted 0 times
...
...
Herman
2 months ago
Yes, that makes sense. We also need to append pre to the name of the JavaScript function trigger.
upvoted 0 times
...
Mattie
3 months ago
I think we need to register the trigger as a pre-trigger.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77