Bird
0
0

Given this partial success JSON response, what is the status of item with ID 3?

medium📝 Predict Output Q13 of 15
Rest API - Batch and Bulk Operations
Given this partial success JSON response, what is the status of item with ID 3?
{
  "responses": [
    {"id": 1, "status": "success"},
    {"id": 2, "status": "failure", "error": "Invalid data"},
    {"id": 3, "status": "success"}
  ]
}
AFailure due to invalid data
BSuccess
CUnknown status
DPending
Step-by-Step Solution
Solution:
  1. Step 1: Locate item with ID 3 in JSON

    Item with ID 3 has "status": "success" in the responses array.
  2. Step 2: Interpret the status value

    The status "success" means the operation for item 3 succeeded.
  3. Final Answer:

    Success -> Option B
  4. Quick Check:

    ID 3 status = success [OK]
Quick Trick: Check the status field for the item ID in JSON [OK]
Common Mistakes:
MISTAKES
  • Confusing failure of other items with this one
  • Assuming missing error means failure
  • Ignoring the status field

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes