exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 2 question 24 discussion

Actual exam question from Microsoft's AZ-204
Question #: 24
Topic #: 2
[All AZ-204 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 -
Reference:
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
mlantonis
Highly Voted 4 years ago
Box 1: No It logs the following: - 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 [Table("Orders")]ICollector<Order> table bindings And in the code it adds the order: tableBindings.Add(JsonConvert.DeserializeObject<Object>(myQueueItem.AsString));
upvoted 144 times
OPT_001122
2 years, 6 months ago
very good and helpful explanation
upvoted 3 times
...
NombreFalso
2 years, 3 months ago
Egg salad I mean excellent
upvoted 8 times
...
...
[Removed]
Highly Voted 2 years, 8 months ago
Microsoft thinks that a good developer should remember the default value for the dequeCount (and not forget that in a stress exam situation that there is that property, which is not shown in the code, very convenient).
upvoted 50 times
mr_wilkrafal
7 months ago
Like, if not your comment, was gonna ask if we that image was updated or something...
upvoted 1 times
...
...
bgbgvfvf
Most Recent 1 year, 5 months ago
I think the answer is correct
upvoted 1 times
...
Anvsoc
3 years, 5 months ago
correct
upvoted 1 times
...
tis_truth
3 years, 5 months ago
Would love to answer this correctly but the full code isn't showing. The maxDequeueCount value isn't showing in the question codeset provided. Does anyone have the full codeset?
upvoted 9 times
coffecold
2 years, 8 months ago
maxDequeueCount; deafult =5 https://docs.microsoft.com/fr-fr/azure/azure-functions/functions-bindings-storage-queue#hostjson-settings
upvoted 3 times
...
[Removed]
2 years, 8 months ago
It is not in the function but in the host.json. Microsoft is testing whether you forgot about that. I really do not know why they try to trick people but then it is Microsoft
upvoted 6 times
...
...
still6dark
4 years ago
Image isn't showing a full code? Please send me full code
upvoted 8 times
j888
3 years, 11 months ago
Same.. obviously something is missing
upvoted 2 times
...
...
glam
4 years ago
Correct.
upvoted 1 times
...
kapetan
4 years, 1 month ago
The last statement is true: take a look at the input parameters: ...[Table("Orders")]ICollector<Order> table bindings... and in the code it adds the order: tableBindings.Add(JsonConvert.DeserializeObject<Object>(myQueueItem.AsString));
upvoted 2 times
...
idrisfl
4 years, 2 months ago
Seems correct https://docs.microsoft.com/fr-fr/azure/azure-functions/functions-bindings-storage-queue#hostjson-settings
upvoted 22 times
...
Marusyk
4 years, 2 months ago
Answer is correct
upvoted 3 times
...
Kuna_Lambo
4 years, 2 months ago
AZ-203 Topic 1 Q#9
upvoted 2 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 ...