DEV Community

Sidharth Bangera
Sidharth Bangera

Posted on Edited on

Monitoring DynamoDB with Tables: CloudWatch Alarms, IAM Denials, and Global Tables

Introduction

Monitoring a database involves more than checking whether it is available. Applications also need visibility into throttling, service errors, and other conditions that could affect reliability.

For Amazon DynamoDB, Amazon CloudWatch provides metrics and alarms that help teams monitor these conditions. However, creating an alarm is only one part of the process. Its configuration must be verified, changes should remain visible, and users without the required permissions must not be able to modify monitoring resources.

In this walkthrough, I tested these behaviors using Tables by ServerlessCreed, a desktop GUI for Amazon DynamoDB.

The experiment focused on creating a CloudWatch alarm through Tables, independently verifying it in AWS, modifying its threshold, and testing how the application responds to restricted IAM permissions.

I also explored DynamoDB Global Tables to verify how data changes propagate between two AWS Regions.

Prerequisites

To reproduce this workflow, you need:

  1. Tables by ServerlessCreed installed, with access to Operations Studio → Alarm Center.
  2. An approved, non-production AWS environment containing a DynamoDB table.
  3. An AWS profile with the necessary CloudWatch permissions to create, describe, modify, and delete test alarms.
  4. Access to the AWS CloudWatch Console and AWS CLI for independent verification.
  5. A separately configured restricted IAM profile for negative permission testing.

For this test, I used:

Component Configuration
Application Tables v3.3.44 (alarm execution)
Operating system Windows 11
AWS Region us-east-1
Test table TC_GTR_001_QA
Metric AWS/DynamoDB — SystemErrors
Authorized profile admin-profile
Restricted profile explicit-deny-new
Independent verification AWS CloudWatch Console and AWS CLI

The Global Tables checks were documented separately under Tables v3.3.45.

1. Exploring the CloudWatch Alarm Center

I started by opening Operations Studio → Alarm Center and selecting the existing DynamoDB test table.

Initially, the Alarm Center showed no configured Tables alarms and an estimated monitoring coverage of 0%.

Four alarm templates were available:

  • Read Throttle Events
  • Write Throttle Events
  • System Errors
  • Throttled Requests

These templates provided a convenient starting point for configuring common DynamoDB monitoring conditions.

For this experiment, I selected System Errors rather than creating a separate custom metric.

Tables CloudWatch Alarm Center showing no existing alarms and templates for read throttling, write throttling, system errors, and throttled requests.
Figure 1. Tables CloudWatch Alarm Center showing four DynamoDB alarm templates and 0% estimated coverage.

The interface also provided a notification-channel setting. I left this at No SNS actions so the alarm could be tested without sending notifications.

2. Creating and Verifying a CloudWatch Alarm

Next, I configured a System Errors alarm for the test table.

The recorded configuration was:

Setting Value
Alarm name DynoConsole-TC_GTR_001_QA-SystemErrors
Namespace AWS/DynamoDB
Metric SystemErrors
Recorded dimension TableName = TC_GTR_001_QA
Threshold Greater than 0
Period 5 minutes
Evaluation periods 1
SNS actions None

After reviewing the configuration, I used Create 1 Alarm in Tables.

The application displayed a successful creation message, added the alarm to the Existing Alarms list, and increased its estimated monitoring coverage from 0% to 25%.

The new alarm initially appeared in the INSUFFICIENT_DATA state.

Tables CloudWatch Alarm Center displaying successful alarm creation, one existing SystemErrors alarm, and 25% estimated coverage.
Figure 2. The System Errors alarm is created successfully, increasing estimated monitoring coverage to 25%.

The alarm initially appeared in the INSUFFICIENT_DATA state. During a subsequent verification, CloudWatch reported OK, without requiring a manual state change.

Rather than relying only on the success message, I independently queried Amazon CloudWatch using the AWS CLI.

aws cloudwatch describe-alarms `
  --alarm-names "DynoConsole-TC_GTR_001_QA-SystemErrors" `
  --region us-east-1 `
  --profile admin-profile
Enter fullscreen mode Exit fullscreen mode

The response confirmed the alarm's name, recorded metric configuration, threshold, evaluation period, and absence of alarm actions.

A subsequent check reported the alarm state as OK.

PowerShell terminal displaying a CloudWatch describe-alarms response containing the DynamoDB SystemErrors alarm configuration.
Figure 3. AWS CLI confirms the created CloudWatch alarm and its recorded configuration.

This established that the alarm had been created in AWS and that its saved configuration could be retrieved independently of the Tables interface.

An important metric configuration detail

Creating an alarm successfully is not necessarily the same as confirming that it monitors the intended metric correctly.

According to AWS DynamoDB metric documentation, SystemErrors is published using both TableName and Operation dimensions.

The captured alarm configuration listed only TableName. Therefore, although the alarm creation, saved configuration, and reported state were verified, the test did not independently demonstrate correct evaluation against actual SystemErrors datapoints.

This is an important follow-up when configuring a production monitoring rule: verify the metric's required dimensions and confirm that the alarm receives the expected data.

3. Updating an Existing Alarm

After creating the alarm, I tested whether its configuration could be modified.

The Alarm Center displayed the existing alarm and its threshold, but the inspected Tables interface did not provide a direct Edit option.

To complete the configuration-change test, I opened the alarm in the AWS CloudWatch Console.

I changed the threshold from:

  • Original: Greater than 0
  • Updated: Greater than 1

The five-minute evaluation period and the absence of SNS actions were retained.

CloudWatch confirmed the update, and an AWS CLI query independently reported a threshold of 1.0, a period of 300 seconds, and an OK state at verification time.

AWS CloudWatch alarm editor showing an updated static threshold of 1, followed by a successful alarm-update confirmation.
Figure 4a. The CloudWatch Console updates the existing alarm threshold from 0 to 1.

AWS CloudWatch console displaying a green successful-update notification and the existing SystemErrors alarm in the OK state.
Figure 4b. AWS CloudWatch confirms the alarm was updated successfully.

I then returned to Tables and refreshed the Alarm Center.

The existing alarm now displayed:

Threshold: > 1 over 5m

Tables CloudWatch Alarm Center listing the existing SystemErrors alarm with an updated threshold of greater than 1 over five minutes.
Figure 5. After refreshing Tables, the existing alarm displays the updated threshold of greater than 1 over five minutes.

This demonstrated that Tables could retrieve and display a configuration change made directly through AWS CloudWatch.

The limitation was equally clear: the tested Alarm Center supported creating, viewing, and deleting alarms, but not directly editing an existing alarm.

I also noticed that the creation button displayed Create 4 Alarms even after the existing System Errors template became unavailable for selection. This appeared inconsistent with the available templates and was recorded for further investigation.

4. Testing an Explicit IAM Deny

Monitoring changes should respect the permissions of the AWS identity making the request.

To test this behavior, I switched from the authorized profile to a deliberately restricted profile containing an explicit IAM denial.

Tables displayed an Access Blocked by Explicit Deny dialog when the restricted identity attempted dynamodb:ListTables.

The message identified the denied action and explained why the profile could not access the requested resources.

Tables displaying an Access Blocked by Explicit Deny dialog identifying the denied DynamoDB ListTables action and IAM authorization restriction.
Figure 6. Tables clearly explains that the restricted IAM profile is blocked from listing DynamoDB tables.

I then performed a separate authorization check through AWS CLI, attempting to create a CloudWatch alarm with the restricted profile.

AWS rejected the operation with AccessDenied for:

cloudwatch:PutMetricAlarm

The response identified an explicit deny in the identity-based policy.

This is expected AWS IAM behavior. An explicit Deny overrides an Allow, preventing unauthorized operations even when another policy appears to grant permission.

PowerShell showing AccessDenied for cloudwatch PutMetricAlarm, followed by a CloudWatch describe-alarms query returning an empty array.
Figure 7. AWS rejects the unauthorized CloudWatch alarm-creation request, and an independent lookup finds no created alarm.

To confirm that the failed request had no unintended effect, I queried CloudWatch again using the authorized profile.

The attempted alarm was absent, while the previously created System Errors alarm retained its configuration.

After restoring the approved profile in Tables, the table and existing alarm were accessible again.

The two tests established different parts of the same safety boundary: Tables clearly presented the DynamoDB authorization failure, while AWS directly rejected the unauthorized CloudWatch alarm creation.

5. A Second Reliability Check: DynamoDB Global Tables

Monitoring is one part of database reliability. Another is ensuring that data remains available across AWS Regions.

I also tested DynamoDB Global Tables using the same test table.

Starting with us-east-1, I used Configuration → Global replicas → Manage replicas to add a replica in us-east-2.

Tables displayed a confirmation explaining that the additional replica would incur storage and throughput charges.

After confirmation, the replica entered the CREATING state and subsequently transitioned to ACTIVE.

AWS CLI checks independently confirmed that both Regional tables were active.

Two screenshots of the Tables Global Tables dialog showing a new us-east-2 replica progressing from CREATING to ACTIVE alongside the us-east-1 primary Region.
Two screenshots of the Tables Global Tables dialog showing a new us-east-2 replica progressing from CREATING to ACTIVE alongside the us-east-1 primary Region.
Figure 8. DynamoDB replica in us-east-2 transitions from CREATING to ACTIVE in Tables.

Verifying replication in both directions

The initial dataset contained three records.

After the replica became active, I checked that the same three records and their attributes were available in both Regions.

I then performed controlled updates in each direction:

Source Region Destination Region Test record Result
us-east-1 us-east-2 GTR-001 Replicated
us-east-2 us-east-1 GTR-002 Replicated

Both updates were visible in the opposite Region, and AWS CLI verification confirmed the expected values.

Tables showing the replicated GTR-001 record in us-east-2 with status UPDATED_EAST_1.
Figure 9a. The us-east-2 replica reflects the GTR-001 update originating from us-east-1.

Tables showing the GTR-002 record in us-east-1 with status UPDATED_EAST_2 and version 2, confirming reverse-direction replication.
Figure 9b. The us-east-1 primary Region reflects the GTR-002 update originating from us-east-2.

This demonstrated successful bidirectional replication for the tested records.

Costs and Limitations

CloudWatch alarms may incur charges depending on the alarm type, number of metrics, AWS Region, and applicable Free Tier allowances.

The alarm used in this test had no SNS notification actions configured. Only one test alarm was created and later removed.

Global Tables introduce additional considerations, including replicated write activity, regional storage, and replica-related charges.

For pricing details, see Amazon CloudWatch Pricing and Amazon DynamoDB Pricing.

The Takeaway

Effective DynamoDB monitoring involves creating the right alarms, understanding their configurations, and ensuring that access controls behave as expected.

Through Tables, I was able to create a CloudWatch alarm, inspect its configuration, monitor its reported state, and delete it after testing. Changes made directly in AWS CloudWatch were also reflected in Tables after refreshing the Alarm Center.

The permission tests demonstrated how Tables communicates an explicit IAM denial, while AWS independently confirmed that an unauthorized alarm-creation request was rejected without creating a resource.

Beyond monitoring, the Global Tables workflow demonstrated multi-Region capabilities. Replica creation progressed successfully to an active state, and controlled updates were verified in both directions between us-east-1 and us-east-2.

Together, these tests showed how Tables brings DynamoDB monitoring and multi-Region management into a more accessible visual workflow, making it easier to inspect configurations, understand AWS responses, and manage database operations from a single interface.

For me, the main takeaway is that clear visibility, meaningful feedback, and reliable integration with AWS services make everyday database management more approachable and easier to work with.


References

Top comments (0)