Question 430
For this Azure AI backend: An HTTP function accepts a document job, but the developer writes custom queue connection code for simple message output. Which corrective design should the engineer implement?
Explanation
Correct Answer
Use an appropriate output binding with identity-safe connection configuration. The scenario specifically states: An HTTP function accepts a document job, but the developer writes custom queue connection code for simple message output. Azure Functions output bindings can send supported messages to configured queues or messaging services. This change targets the named service and constraints rather than a different workflow. Validate the result by checking An approved HTTP request results in one well-formed queued work item. The important remaining qualification is: An output binding does not itself guarantee that a downstream consumer succeeds.
Incorrect Answers
Storage-triggered Functions can scale by plan and trigger behavior and must handle at-least-once execution. In the present case the governing issue is Azure Functions output bindings can send supported messages to, which this does not resolve.
Supported Azure Functions bindings/SDKs can use identity-based storage connections with correct data-plane roles. That observation may hold without resolving the relevant issue: Use an appropriate output binding with identity-safe connection configuration.
Azure Queue triggers have retry and poison-message behavior under configured limits. It does not verify the requested outcome; here the decisive check concerns Use an appropriate output binding with identity-safe connection configuration.