exam questions

Exam DP-420 All Questions

View all questions & answers for the DP-420 exam

Exam DP-420 topic 4 question 2 discussion

Actual exam question from Microsoft's DP-420
Question #: 2
Topic #: 4
[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?

  • A. checkpointInterval
  • B. leaseCollectionsThroughput
  • C. maxItemsPerInvocation
  • D. feedPollDelay
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
WimTS
3 days, 17 hours ago
Selected Answer: D
The feedPollDelay property specifies the interval at which the Azure Functions runtime polls the Azure Cosmos DB change feed for new changes. By default, this interval is set to 5 seconds. Reducing this value allows your function to detect and process changes more promptly.​ Microsoft Learn +2 Anthony Chu +2 azure.github.io +2 Since upserts occur every three seconds and you aim for processing within one second, setting feedPollDelay to a value less than or equal to one second (e.g., "00:00:01") would be appropriate. This configuration ensures that the function checks for new changes at least every second, aligning with your processing requirements.
upvoted 1 times
...
3709334
3 months, 3 weeks ago
Selected Answer: D
Gets or sets the delay in between polling a partition for new changes on the feed, after all current changes are drained.
upvoted 1 times
...
biglebowski88
4 months ago
Selected Answer: C
setting maxItemsPerInvocation to 1 would ensure the function gets executed immediately and processed.
upvoted 1 times
biglebowski88
4 months ago
if it has lots of upserts to deal with then it will kick off lots of function executions in parallel
upvoted 1 times
...
...
azuredemo2022three
9 months, 3 weeks ago
Selected Answer: D
Answer
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago