Quick Answer
Every Kubernetes object has a resourceVersion รขโฌโ a string that changes on every write. When a controller reads an object and wants to update it, it must include the same resourceVersion. If another writer already changed it, the resourceVersion won't match and the API server returns 409 Conflict. The controller must re-read and retry. This prevents lost updates without distributed locks.
Answer
Every object has a resourceVersion. Outdated writes are rejected with 409 Conflict, enforcing optimistic locking.
S
SugharaIQ Editorial Team
Verified Answer
This answer has been peer-reviewed by industry experts holding senior engineering roles to ensure technical accuracy and relevance for modern interview standards.