Bird
0
0

Which of the following is a correct component to include in a cancellation policy data model?

easy📝 Conceptual Q12 of 15
LLD - Design — Hotel Booking System
Which of the following is a correct component to include in a cancellation policy data model?
Alogin_attempts: int
Buser_password: string
Cproduct_price: float
Dallowed_cancellation_time: datetime
Step-by-Step Solution
Solution:
  1. Step 1: Identify relevant data for cancellation policy

    The allowed cancellation time defines until when a user can cancel and get a refund.
  2. Step 2: Exclude unrelated fields

    User password, product price, and login attempts are unrelated to cancellation timing.
  3. Final Answer:

    allowed_cancellation_time: datetime -> Option D
  4. Quick Check:

    Cancellation policy needs cancellation time [OK]
Quick Trick: Cancellation policy needs allowed cancellation time field [OK]
Common Mistakes:
  • Including unrelated user or product fields
  • Confusing cancellation time with login data
  • Using incorrect data types for time

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LLD Quizzes