演習 › 全問
問題 Q4-16
95 / 120分野4・バッチ処理の戦略
まだ解いていません。
バッチで1,000件の文書を処理した。結果の取り出しで、依頼の順に結果が並んでいると仮定して、依頼と結果を対応づけたところ、取り違えが起きた。正しい対応づけの方法はどれか。
正解は C
- A順番は保証されません。取り違えの原因そのものです。
- B推測は、誤りの元です。
- C正解です。結果は任意の順で返るので、custom_id で対応づけます。
- Dバッチの利点を捨てることになり、対応づけの問題の解決にもなりません。
考え方:バッチの結果の対応づけは custom_id。順番は保証されない。
出典:Batch processing
Batch results can be returned in any order, and might not match the ordering of requests when the batch was created.https://platform.claude.com/docs/en/build-with-claude/batch-processing…(取得 2026-11-20)
出典:Batch processing
To correctly match results with their corresponding requests, always use the custom_id field.https://platform.claude.com/docs/en/build-with-claude/batch-processing…(取得 2026-11-20)