CertKeen

Claude Certified Architect — Professional · Free practice question 2 of 12

Key batch results by custom_id

A nightly job at Calloway Press sends 50,000 requests through the Message Batches API and writes the results back by position in the input list. Some records end up with the wrong summary. What is the cause?

  1. A.Batch requests must all use the same prompt, so mixed prompts cause summaries to be swapped.
  2. B.The Batches API drops a few requests at random, which shifts every later result by one position.
  3. C.Results are returned in reverse order, so the job should simply read the list from the end.
  4. D.Results can arrive in any order; match each to its request by custom_id.
Show answer and explanation

Correct answer: D. Results can arrive in any order; match each to its request by custom_id.

Why: Anthropic's documentation states that batch results arrive in any order and should be keyed by custom_id. Each result also carries a result type (succeeded, errored, canceled or expired) to check; requests aren't silently dropped, and prompts can differ per request.

More free Claude Certified Architect — Professional questions