PrepAway - Latest Free Exam Questions & Answers

What should you recommend?

You are designing a Windows Azure application.
The application includes a web role and a worker role that communicate by using a Windows Azure Queue.
The worker role processes each message within 10 seconds of retrieving it from the queue. The worker role must process each message exactly one time.
If a process does not complete, the worker role must reprocess the message.
You need to recommend an approach for the worker role to manage messages in the queue.
What should you recommend?

PrepAway - Latest Free Exam Questions & Answers

A.
Process the message and then delete it from the queue.

B.
Delete the message from the queue when retrieving the message.

C.
Set the visibility timeout of the message to 1 when retrieving the message.

D.
Process the message and then set the visibility timeout of the message to the maximum value.

One Comment on “What should you recommend?

  1. Mkool says:

    Answer is correct:
    A message returned from GetMessage becomes invisible to any other code reading messages from this queue. By default, this message stays invisible for 30 seconds. To finish removing the message from the queue, you must also call DeleteMessage. This two-step process of removing a message assures that if your code fails to process a message due to hardware or software failure, another instance of your code can get the same message and try again.

    https://docs.microsoft.com/en-us/azure/storage/queues/storage-dotnet-how-to-use-queues




    5



    0

Leave a Reply