Bird
0
0

How can you combine notification broadcasting with user preferences to send messages only to parties who opted in?

hard📝 Trade-off Q9 of 15
LLD - Design — Food Delivery System

How can you combine notification broadcasting with user preferences to send messages only to parties who opted in?

ABroadcast to all and ignore preferences
BFilter the recipient list based on preferences before broadcasting
CSend notifications randomly to some users
DSend notifications only to the first user in the list
Step-by-Step Solution
Solution:
  1. Step 1: Understand user preference impact

    Users who opt in should receive notifications; others should not.
  2. Step 2: Apply filtering before sending

    Filter the list to include only users who opted in, then broadcast to that filtered list.
  3. Final Answer:

    Filter the recipient list based on preferences before broadcasting -> Option B
  4. Quick Check:

    Filter recipients by preference before send [OK]
Quick Trick: Filter users before broadcast to respect preferences [OK]
Common Mistakes:
  • Ignoring preferences
  • Random sends
  • Sending to only one user

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LLD Quizzes