You are designing an Azure Function app that processes large image uploads submitted by users through an
HTTP endpoint.
The solution must:
• Prevent client timeouts by decoupling image processing from the initial upload request.
• Support automatic retry behavior for failed processing attempts.
• Scale the background processing independently of the rate of incoming HTTP uploads.
You need to design a scalable and reliable asynchronous processing solution.
Which two actions should you implement? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
The solution must:
• Prevent client timeouts by decoupling image processing from the initial upload request.
• Support automatic retry behavior for failed processing attempts.
• Scale the background processing independently of the rate of incoming HTTP uploads.
You need to design a scalable and reliable asynchronous processing solution.
Which two actions should you implement? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
Show answerHide answer
Correct answer: A, B Implement a queue-triggered function for image processing. Configure retry policies on a storage queue.
Explanation
ExplanationA. Implement a queue-triggered function for image processing: This decouples the processing from the initial upload, preventing client timeouts. It also allows the background processing (the queue-triggered function) to scale independently based on the number of messages in the queue, rather than the rate of incoming HTTP requests.
B. Configure retry policies on a storage queue: To support automatic retry behavior for failed processing attempts, you configure retry policies either on the function's trigger (built-in retries for Event Grid/Queue) or specifically by using the maxDequeueCount property for Azure Storage Queues. When a queue-triggered function fails, the message is returned to the queue and retried.
Why the Other Options Are Incorrect
C. Process the image inside the HTTP-triggered function: This is a synchronous pattern. It would keep the HTTP request open during the entire image processing duration, which risks client timeouts and does not scale the processing independently.
D. Persist upload metadata to Azure Storage: While storing metadata is good practice for auditing, it does not solve the core requirements of decoupling processing, enabling automatic retries, or scaling independently.
References
Microsoft Learn: Asynchronous processing with Azure Functions and Queues












