Every microservice should use it's own persitance layer. Optimally this will be a SasS solution. The current list of database can be discovered hear and the zalando technology radar.
Important: Partition Key Fieldname can not be changed and it must always be included when you insert data to the database. Like:
Further you validate in your that a valid value was send to your service.
Create DynamoDB table namenotes and Primary key with Partition key userId and sort key noteId and the default created new IAM RoleDynamoDBAutoscaleRole.