Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Microsoft DP-420 Exam - Topic 12 Question 5 Discussion

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

You have a container named container1 in an Azure Cosmos DB Core (SQL) API account. Upserts of items in container1 occur every three seconds.

You have an Azure Functions app named function1 that is supposed to run whenever items are inserted or replaced in container1.

You discover that function1 runs, but not on every upsert.

You need to ensure that function1 processes each upsert within one second of the upsert.

Which property should you change in the Function.json file of function1?

Show Suggested Answer Hide Answer
Suggested Answer: D

With an upsert operation we can either insert or update an existing record at the same time.

FeedPollDelay: The time (in milliseconds) for the delay between polling a partition for new changes on the feed, after all current changes are drained. Default is 5,000 milliseconds, or 5 seconds.

Incorrect Answers:

A: checkpointInterval: When set, it defines, in milliseconds, the interval between lease checkpoints. Default is always after each Function call.

C: maxItemsPerInvocation: When set, this property sets the maximum number of items received per Function call. If operations in the monitored collection are performed through stored procedures, transaction scope is preserved when reading items from the change feed. As a result, the number of items received could be higher than the specified value so that the items changed by the same transaction are returned as part of one atomic batch.


Contribute your Thoughts:

0/2000 characters
Luis
14 days ago
No way, it's all about the checkpointInterval!
upvoted 0 times
...
Irene
19 days ago
maxItemsPerInvocation might also help, right?
upvoted 0 times
...
Rosalind
25 days ago
Wait, are you sure that's the only thing to change?
upvoted 0 times
...
Twanna
30 days ago
Definitely agree with that!
upvoted 0 times
...
Pearlene
1 month ago
I think you need to change the feedPollDelay.
upvoted 0 times
...
Jesusita
1 month ago
LeaseCollectionsThroughput sounds familiar, but I can't recall how it impacts the function's responsiveness. I feel like feedPollDelay is the key here.
upvoted 0 times
...
Meaghan
1 month ago
I practiced a similar question where checkpointInterval was mentioned, but I don't see how that relates to processing speed.
upvoted 0 times
...
Reena
1 month ago
I'm not entirely sure, but I think maxItemsPerInvocation could limit how many items are processed at once. That might not help with the timing issue though.
upvoted 0 times
...
Yong
1 month ago
I remember something about the feedPollDelay affecting how quickly the function triggers on new items. Maybe that's the one to change?
upvoted 0 times
...
Janine
2 months ago
I'm going to go with D, return on investment (ROI). While NPV and IRR are good options, ROI is a more straightforward way to evaluate the potential benefits and costs, which would include the estimated growth rate.
upvoted 0 times
...
Sue
2 months ago
I remember practicing with questions about alphabetical order, and I think we have to look at the first different letter in last names? That might help.
upvoted 0 times
...
Lavera
2 months ago
Okay, let me see here. I think I need to assign two roles to Admin1 that will meet the security requirements. I'll need to analyze each option and determine the best combination.
upvoted 0 times
...
Charlene
2 months ago
Hmm, I'm not totally sure about this one. The definition could also apply to authority or responsibility. I'll have to think it through carefully.
upvoted 0 times
...

Save Cancel