Flashcardsfor IT Certifications

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.

Last updated: · Report an error on this page

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