← Quiz: Design a Ticket Booking System: all 10 questions
Quiz: Design a Ticket Booking System · Question 9 of 10
Can the seat map shown while browsing come from a cache with a few seconds of staleness?
Can the seat map shown while browsing come from a cache with a few seconds of staleness?
- A.Yes, because the atomic hold query in the database is the real check
- B.No, every view must lock the seats
- C.Only if there is no database
- D.Only for sold-out shows
Answer & explanation
Correct answer: Yes, because the atomic hold query in the database is the real check
Browsing can be slightly stale; correctness is enforced when holding.
Can you get the rest right without peeking?
Take the timed Quiz: Design a Ticket Booking System quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →