Bird
Raised Fist0

Which of the following is the correct way to uniquely identify each transaction in a history system?

easy🧠 Conceptual Q12 of Q15
LLD - Design — Splitwise (Expense Sharing)
Which of the following is the correct way to uniquely identify each transaction in a history system?
AUsing a timestamp only
BUsing a unique transaction ID
CUsing the user's name
DUsing the transaction amount
Step-by-Step Solution
Solution:
  1. Step 1: Identify unique identifiers in transaction history

    Unique transaction IDs ensure each record is distinct and traceable.
  2. Step 2: Compare options

    Timestamps alone can repeat; user names and amounts are not unique identifiers.
  3. Final Answer:

    Using a unique transaction ID -> Option B
  4. Quick Check:

    Unique ID = unique transaction record [OK]
Quick Trick: Unique transaction ID ensures distinct records [OK]
Common Mistakes:
MISTAKES
  • Assuming timestamp alone is unique
  • Using user name as unique key
  • Using transaction amount as identifier

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LLD Quizzes