Bird
Raised Fist0

You need to design a system for an online bookstore. Which use case would best capture the requirement for purchasing a book?

hard📝 Trade-off Q8 of Q15
LLD - Design — Library Management System
You need to design a system for an online bookstore. Which use case would best capture the requirement for purchasing a book?
AUser selects a book, adds it to cart, enters payment details, and confirms purchase
BAdmin updates book inventory in the database
CSystem backs up data every night
DUser reads book reviews without logging in
Step-by-Step Solution
Solution:
  1. Step 1: Identify user goal for purchasing

    The user wants to buy a book by selecting, paying, and confirming the order.
  2. Step 2: Match use case to options

    User selects a book, adds it to cart, enters payment details, and confirms purchase describes the full purchase flow, capturing the requirement clearly.
  3. Final Answer:

    User selects a book, adds it to cart, enters payment details, and confirms purchase -> Option A
  4. Quick Check:

    Purchase use case = User selects a book, adds it to cart, enters payment details, and confirms purchase [OK]
Quick Trick: Use cases describe user steps to complete goals [OK]
Common Mistakes:
MISTAKES
  • Choosing admin or system maintenance actions as use cases
  • Ignoring payment and confirmation steps

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LLD Quizzes