D2: Message Batches API
Claude Certified Developer – Foundations exam practice questions · 10 flashcards
Question
What is the Message Batches API?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 Message Batches API practice questions and answers
- What is the Message Batches API?An asynchronous API for processing many Messages requests together at lower cost.
- What discount does batch processing give?About 50% off standard API prices.
- How long can a batch take?Up to 24 hours; most finish much sooner.
- 10,000 documents overnight, cost is the main concern. Which approach?The Message Batches API.
- Why doesn't parallel synchronous calling solve a cost problem?It's faster but has the same per-token price.
- How do you match batch results to inputs?Give each request a unique custom_id.
- Are batch results returned in order?Not guaranteed; always use custom_id to match.
- When should you NOT use batches?When users need responses in real time.
- What happens to individual failed requests in a batch?Each result reports its own status (succeeded, errored, expired); retry failures separately.
- Can batching be combined with prompt caching?Yes, and the discounts can stack when a shared prefix is reused.