AWS dynamodb can be accessed directly from your system but for that developer needs access to AWS account and It might be possible that you can't or don't want to give access to every developer. DynamoDB charges for reading, writing and storing the data , so testing with AWS DynamoDB directly also could be very expensive. To resolve all these issue amazon provides amazon/dynamodb-local.
Read