CloudBeesSeptember 2026
Interview question
What database lock types are available, and when would you choose each?
Follow-up questions
- Walk through a transaction updating a row while another transaction reads the same row. When are locks acquired and released?
- Give a use case for optimistic locking and a use case for pessimistic locking.