Maintaining and monitoring a DynamoDB table
The main tools you will use for monitoring a DynamoDB table are CloudWatch and CloudTrail. CloudWatch monitors the performance metrics of the table, such as the number of reads and writes and throughput metrics, while CloudTrail watches and records the actual data access patterns, stores, and audit trail of changes made.
One of the main areas you will need to closely monitor with DynamoDB is the amount of data being read and written to the table. We will look at the pricing in the next section, but DynamoDB is billed based on reads and will start getting errors stating 'ProvisionedThroughputExceededException'
. For the full list of common DynamoDB errors, please see https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/CommonErrors.html#CommonErrors-ThrottlingException.
The following figure shows an example of the metrics you can monitor in CloudWatch. This diagram shows that we are using more write capacity than...