Bird
0
0

Given a notification system where users can receive notifications via email or SMS, what will be the output if a user prefers SMS but the SMS service is down?

medium📝 Analysis Q4 of 15
LLD - Design — Library Management System
Given a notification system where users can receive notifications via email or SMS, what will be the output if a user prefers SMS but the SMS service is down?
ANotification is sent via email automatically
BNotification is queued and retried later
CNotification is discarded silently
DSystem throws an error and stops
Step-by-Step Solution
Solution:
  1. Step 1: Understand fallback and retry mechanisms

    When a preferred channel is down, systems usually queue notifications for retry instead of discarding or failing.
  2. Step 2: Analyze options for best practice

    Automatic fallback to email requires explicit configuration; silent discard or system stop are poor practices.
  3. Final Answer:

    Notification is queued and retried later -> Option B
  4. Quick Check:

    Service down handling = Retry queue [OK]
Quick Trick: Retry notifications if preferred channel fails [OK]
Common Mistakes:
MISTAKES
  • Assuming automatic fallback without config
  • Thinking system stops on failure
  • Ignoring retry mechanisms

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LLD Quizzes