Bird
0
0

What will be the response if one operation in a composite request fails but others succeed?

medium📝 Predict Output Q5 of 15
Rest API - Advanced Patterns
What will be the response if one operation in a composite request fails but others succeed?
AThe entire composite request fails and no changes are applied.
BThe server returns partial success with details of each operation.
COnly the failed operation is skipped; others succeed.
DThe server retries the failed operation automatically.
Step-by-Step Solution
Solution:
  1. Step 1: Understand composite operation error handling

    Many APIs return a response showing success or failure for each operation separately.
  2. Step 2: Evaluate options

    Partial success with details is common; full rollback or retries depend on implementation but are not default.
  3. Final Answer:

    The server returns partial success with details of each operation. -> Option B
  4. Quick Check:

    Composite error handling = partial success details [OK]
Quick Trick: Composite responses show each operation's result separately [OK]
Common Mistakes:
MISTAKES
  • Assuming all-or-nothing rollback always happens
  • Thinking server retries failed operations automatically
  • Believing failed operations are silently ignored

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes