You are building a Python v2 function that processes document analysis jobs. Job messages arrive in an Azure Service Bus queue named document-jobs.
Requirements:
- The function must start when a job message arrives in
document-jobs. - The function must call Azure AI Document Intelligence to analyze each document.
- Document Intelligence client setup must not be repeated on every invocation.
- Results must be saved as JSON files in Blob Storage without writing Storage SDK client code.
Which three actions should you perform? Each correct answer presents part of the solution.
Choose 3 answers.
- Add an
@app.blob_outputbinding with a path in a results container. - Decorate the function with
@app.service_bus_queue_triggerfordocument-jobs. - Decorate the function with
@app.queue_triggerfordocument-jobs. - Create the
DocumentIntelligenceClientat module level, outside the handler. - Upload the results with a
BlobServiceClientcreated in the handler. - Create the
DocumentIntelligenceClientinside the handler on each call.