codejump

Async & Message Queues

Preview — 3 of 10 questions

Video transcoding takes 90 seconds. Clients need a quick acknowledgment and a reliable way to learn the outcome. Which API design fits?

AHold the upload socket open and treat disconnection as successful processing.
BReturn 202 with no durable job record or outcome endpoint.
CReturn 200 before storing the job and start work in request-local memory.
DPersist a job, return 202 with its ID, and expose job status.

Service A publishes a task to a durable broker while worker B is offline. The broker acknowledges durable acceptance. What benefit is obtained?

AA no longer depends on any available infrastructure.
BThe task is guaranteed to execute before A returns.
CThe task can wait for B without A synchronously waiting for B.
DB can discard the task after restart without affecting delivery.

An order event must reach billing and analytics; analytics has four interchangeable workers. Which topology fits?

ASeparate subscriptions for billing and analytics, with competing analytics workers.
BFour analytics subscriptions with billing sharing one of them.
COne subscription that acknowledges each event before dispatching to either service.
DOne shared queue where billing and analytics compete for each event.

Sign up free to play

Answer all 10 questions (7 more), see explanations for every answer, and track your score.