When you perform a write operation in DynamoDB, such as UpdateItem, you can specify the ReturnValues parameter to control what attribute data is returned. The options include NONE, ALL_OLD, UPDATED_OLD, ALL_NEW, and UPDATED_NEW. For example, if you set ReturnValues to UPDATED_OLD, DynamoDB returns only the attribute values that were updated, but before the update. The execution flow starts with the write request, applies the update, checks the ReturnValues setting, and returns the requested data. This helps you confirm what changed or retrieve previous values without a separate read. If ReturnValues is NONE, no attribute data is returned. Understanding this helps you write efficient and clear DynamoDB operations.