Bird
0
0

A rating system stores reviews but users report seeing duplicate reviews. Which is the most likely cause?

medium📝 Analysis Q6 of 15
LLD - Design — Food Delivery System
A rating system stores reviews but users report seeing duplicate reviews. Which is the most likely cause?
AThe product images are missing
BThe database is too slow
CThe system does not check if a user already submitted a review for the product
DThe rating scale is too small
Step-by-Step Solution
Solution:
  1. Step 1: Understand duplicate review cause

    Duplicates happen if users can submit multiple reviews for same product.
  2. Step 2: Identify missing validation

    System should check and prevent multiple reviews per user-product pair.
  3. Final Answer:

    The system does not check if a user already submitted a review for the product -> Option C
  4. Quick Check:

    Duplicate reviews cause = Missing user-product check [OK]
Quick Trick: Prevent duplicates by validating user-product review once [OK]
Common Mistakes:
  • Blaming database speed for duplicates
  • Confusing images with review duplication
  • Thinking rating scale affects duplicates

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LLD Quizzes