Is there we can ensure uniqueness in a non-key attribute for a given partition key in DynamoDB.
For eg: We have person_id as the partition key and category#UUID as the sort key and we another attribute called category#effectiveDate. Now effectiveDate is mutable that is why we have not used this as sort key. But we also want to maintain ensure for a given person_id, category#effectiveDate remains unqiue. How can we do it?