An export API starts jobs that take several minutes, but callers disconnect after 10 seconds. Clients must distinguish acceptance from successful completion and retrieve results later; which design best meets these requirements?
Show the answer
Correct answerD. Queue the job, return HTTP 202 with a job ID, and expose a status endpoint
AWhy not this: A longer integration timeout does not prevent callers from disconnecting after 10 seconds.
BWhy not this: Acceptance of an asynchronous invocation does not establish successful job completion.
CWhy not this: Marking queued work as completed incorrectly equates acceptance with successful execution.
DWhy this is right: A job identifier and status endpoint separate acceptance from completion without holding the connection.
An asynchronous job API returns HTTP 202 and a job identifier, then exposes processing status and results separately. Extending the integration timeout does not solve the caller's 10-second disconnect, and accepting work does not mean that work succeeded.