All Questions
Agents And Tool Use easy

An agent has a 'create_refund' tool. A call times out, and the agent loop retries it. What should you add to prevent customers from being refunded twice?

  1. A An idempotency key per logical action, so the payments API ignores repeated requests.
  2. B A prompt instruction telling the model never to call create_refund more than once per task.
  3. C Automatic retries with exponential backoff, since spacing out attempts avoids duplicates.
  4. D A larger timeout on the tool call so the first attempt always finishes before any retry.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions