Bird
Raised Fist0

An e-commerce system's payment service occasionally fails to update order status after successful payment. What is the best debugging step?

medium📝 Analysis Q7 of Q15
LLD - Design — Online Shopping Cart
An e-commerce system's payment service occasionally fails to update order status after successful payment. What is the best debugging step?
ADisable order status updates to avoid errors
BIgnore the problem since payments are successful
CCheck if the payment confirmation callback updates the order status correctly
DRestart the entire system after each payment
Step-by-Step Solution
Solution:
  1. Step 1: Identify where order status updates happen

    Order status should update after payment confirmation via callback or event.
  2. Step 2: Verify callback logic

    Check if the callback correctly triggers order status update and handles errors.
  3. Final Answer:

    Check if the payment confirmation callback updates the order status correctly -> Option C
  4. Quick Check:

    Callback correctness = order status update [OK]
Quick Trick: Verify payment callback updates order status [OK]
Common Mistakes:
MISTAKES
  • Ignoring update failures
  • Disabling updates
  • Restarting system unnecessarily

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LLD Quizzes