Check inventory guarantees at completion

A reservation use case starts with 18 identical tablet stands available and no stands allocated to the current request. The customer requests 5 stands. The system temporarily holds all 5 before requesting payment.


On payment acceptance, the system converts the hold into a confirmed allocation. On payment rejection, it releases the entire hold and creates no allocation. Cancellation before the hold changes no inventory state. Assume no other requests or inventory changes occur. Treat each table row as a separate execution from the same starting state.


Complete the final available and confirmed-allocated quantities using exact integer counts of stands. A temporarily held stand is excluded from the available count while the hold exists.

Execution outcomeAvailable stands at endConfirmed stands for this request
Payment accepted
Payment rejected
Cancelled before hold

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Use Cases Questions: