Quiz 4 Question 2 of 20

An enterprise data platform uses Claude for async document processing via Anthropic's Message Batches API. Batch jobs are submitted with 500-document batches, and results are retrieved after completion. The team discovers that when a batch partially fails — 50 documents in a 500-document batch fail due to content policy violations — the batch API returns partial results and the failed items must be identified individually. Their current code treats any batch failure as a total failure and resubmits all 500 documents. What is the correct resilience pattern?

Select an answer to reveal the explanation.

Motivation