exam questions

Exam AZ-203 All Questions

View all questions & answers for the AZ-203 exam

Exam AZ-203 topic 1 question 9 discussion

Actual exam question from Microsoft's AZ-203
Question #: 9
Topic #: 1
[All AZ-203 Questions]

HOTSPOT -
You are developing an Azure Function App by using Visual Studio. The app will process orders input by an Azure Web App. The web app places the order information into Azure Queue Storage.
You need to review the Azure Function App code shown below.

NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: No -
ExpirationTime - The time that the message expires.
InsertionTime - The time that the message was added to the queue.

Box 2: Yes -
maxDequeueCount - The number of times to try processing a message before moving it to the poison queue. Default value is 5.

Box 3: Yes -
When there are multiple queue messages waiting, the queue trigger retrieves a batch of messages and invokes function instances concurrently to process them.
By default, the batch size is 16. When the number being processed gets down to 8, the runtime gets another batch and starts processing those messages. So the maximum number of concurrent messages being processed per function on one virtual machine (VM) is 24.

Box 4: Yes -
References:
https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-storage-queue

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
Khang
Highly Voted 5 years, 5 months ago
Answer is correct
upvoted 19 times
Juanlu
4 years, 6 months ago
Agree !
upvoted 1 times
...
...
RahulKate
Most Recent 4 years, 5 months ago
5 times retry - https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-storage-queue-trigger?tabs=csharp#poison-messages
upvoted 3 times
...
ijN00M4
4 years, 11 months ago
Doesn't `log.Info` include a timestamp? Meaning `log.info($"Processing Order: {myQueueItem.Id}")` should show as `<TIMESTAMP> [Information] Processing Order: <OrderId>`, and thus the processing time is the timestamp
upvoted 2 times
Tealon
4 years, 6 months ago
Yes, but that is not done by the code, but by the Azure function that stores the logs.
upvoted 2 times
...
...
sathish11
4 years, 11 months ago
Answer is correct
upvoted 3 times
...
NKnab
5 years ago
By default, blob, queue and service triggers retry requests up to five times. After the fifth retry, both the Azure Queue storage and Azure Service Bus triggers write a message to a poison queue.
upvoted 3 times
...
ashtwentyfour
5 years ago
Regarding retries - https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-error-pages
upvoted 2 times
...
sjsouvik
5 years, 1 month ago
where is maxDequeueCount ( The number of times to try processing a message before moving it to the poison queue. Default value is 5) part in the code ? so I believe it should be marked as "NO".
upvoted 3 times
Grefz
4 years, 10 months ago
The trigger is set as default to retry up to five times. https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-error-pages
upvoted 5 times
silentsouls
4 years, 4 months ago
but that states: if using Azure Service Bus, by default queues have a message delivery count of 10.
upvoted 1 times
...
...
...
vova12345
5 years, 2 months ago
Incorrect answer, once again ;( myQueueItem.AsString contains the time of adding the message to the queue
upvoted 2 times
[Removed]
5 years, 1 month ago
That is the insertion time not processing time.
upvoted 5 times
...
oxaytol
5 years ago
Answer is correct as the time of addition is not the processing time. You can add an item to a queue but processing could happen some time later.
upvoted 1 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 ...