← Quiz: Spring Boot Interview Questions: all 10 questions
Quiz: Spring Boot Interview Questions · Question 3 of 10
Which locking approach adds a @Version column?
Which locking approach adds a @Version column?
- A.Optimistic locking
- B.Pessimistic locking
- C.Table locking
- D.Distributed locking with Kafka
Answer & explanation
Correct answer: Optimistic locking
An update fails if the version changed since it was read.
Can you get the rest right without peeking?
Take the timed Quiz: Spring Boot Interview Questions quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →