← Quiz: Design a Ticket Booking System: all 10 questions
Quiz: Design a Ticket Booking System · Question 6 of 10
A family books 4 seats and the third seat is already taken. What should happen?
A family books 4 seats and the third seat is already taken. What should happen?
- A.Book the 3 available seats
- B.Roll back the whole transaction so none of the 4 seats stay held
- C.Book 4 seats anyway
- D.Hold the 3 seats forever
Answer & explanation
Correct answer: Roll back the whole transaction so none of the 4 seats stay held
Multi-seat holds succeed or fail together inside one transaction.
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 →