Bird
0
0

Given a delivery system where Service A sends a package status update to Service B, what is the expected output if Service B correctly receives the update?

medium📝 Analysis Q4 of 15
LLD - Design — Food Delivery System
Given a delivery system where Service A sends a package status update to Service B, what is the expected output if Service B correctly receives the update?
AService A retries sending indefinitely
BService B ignores the update
CService B crashes
DService B updates package status to 'In Transit'
Step-by-Step Solution
Solution:
  1. Step 1: Understand the flow of status updates

    Service A sends status updates to Service B to keep package info current.
  2. Step 2: Identify correct behavior on receiving update

    Service B should update the package status accordingly, e.g., to 'In Transit'.
  3. Final Answer:

    Service B updates package status to 'In Transit' -> Option D
  4. Quick Check:

    Correct update reception = status change [OK]
Quick Trick: Correct reception means state update, not ignoring or crashing [OK]
Common Mistakes:
  • Assuming Service B ignores updates
  • Thinking retries happen without failure
  • Confusing crashes with normal behavior

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LLD Quizzes