Bird
0
0

You want to update 100 user records in one API call using batch update. Which approach is best to handle partial failures?

hard📝 Application Q8 of 15
Rest API - Batch and Bulk Operations
You want to update 100 user records in one API call using batch update. Which approach is best to handle partial failures?
AUse a batch update endpoint that returns individual status for each record
BStop the entire batch if any single update fails
CSend 100 separate PATCH requests instead
DIgnore errors and assume all updates succeeded
Step-by-Step Solution
Solution:
  1. Step 1: Consider handling partial failures in batch updates

    Returning individual status per record allows identifying which updates failed.
  2. Step 2: Evaluate options for best practice

    Use a batch update endpoint that returns individual status for each record provides detailed feedback and allows retrying failed updates selectively.
  3. Final Answer:

    Use a batch update endpoint that returns individual status for each record -> Option A
  4. Quick Check:

    Partial failure handling = per-record status [OK]
Quick Trick: Return per-item status to handle partial failures [OK]
Common Mistakes:
MISTAKES
  • Stopping entire batch on one failure
  • Sending many separate requests instead of batch
  • Ignoring errors and assuming success

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes