Allshare interview question

CAP theorem, optimistic and pessimistic concurrency