The UpdateItem operation has Add and Delete actions. If they are used in sets, actions will add / remove the specified values ββfrom the set. If used for a number, the Add action will atomically increase or decrease the number.
It is important to remember that DynamoDB actually supports sets, not arrays. Because of this, adding or removing values ββis inherently atomic.
source share