1 · QUESTIONWhat does the CAP theorem trade off? Consistency, availability, and partition tolerance — pick two under partition.
2 · QUESTIONWhat is optimistic concurrency control? Proceed without locks; detect conflicts at commit time via a version check.
3 · QUESTIONWhy use an idempotency key? So retried requests produce the same result instead of duplicate side effects.