Bird
0
0

A delivery system test script is supposed to simulate service coordination by sending status updates every 5 seconds. However, updates are sent every 15 seconds instead. What is the likely cause?

medium📝 Analysis Q14 of 15
LLD - Design — Food Delivery System
A delivery system test script is supposed to simulate service coordination by sending status updates every 5 seconds. However, updates are sent every 15 seconds instead. What is the likely cause?
AThe test script has a timing bug causing slower update intervals
BThe delivery trucks are moving slower
CThe number of packages increased
DThe system hardware is upgraded
Step-by-Step Solution
Solution:
  1. Step 1: Understand the expected behavior of the test script

    The script should send updates every 5 seconds to simulate coordination accurately.
  2. Step 2: Identify why updates are delayed to 15 seconds

    A timing bug in the script can cause slower intervals, not external factors like trucks or hardware.
  3. Final Answer:

    The test script has a timing bug causing slower update intervals -> Option A
  4. Quick Check:

    Slower updates = timing bug in script [OK]
Quick Trick: Check timing code in test scripts for bugs [OK]
Common Mistakes:
  • Blaming physical delivery factors for test timing issues
  • Ignoring script timing controls
  • Assuming hardware upgrades slow updates

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LLD Quizzes