Complete the code to select the CloudWatch metric for DynamoDB read capacity units.
SELECT MetricName FROM CloudWatchMetrics WHERE MetricName = '[1]';
The metric ConsumedReadCapacityUnits shows the number of read capacity units consumed by your DynamoDB table.
Complete the code to filter CloudWatch metrics for DynamoDB tables with the dimension 'TableName'.
SELECT MetricName FROM CloudWatchMetrics WHERE Namespace = 'AWS/DynamoDB' AND [1] = 'TableName';
The DimensionName field specifies the dimension type, such as 'TableName' for DynamoDB metrics.
Fix the error in the query to get the sum of consumed write capacity units for a DynamoDB table.
SELECT SUM(Value) FROM CloudWatchMetrics WHERE MetricName = '[1]' AND DimensionName = 'TableName' AND DimensionValue = 'MyTable';
The correct metric to sum is ConsumedWriteCapacityUnits, which tracks the write capacity units consumed.
Fill both blanks to create a query that retrieves the average latency for a DynamoDB table named 'Orders'.
SELECT [1] FROM CloudWatchMetrics WHERE MetricName = '[2]' AND DimensionName = 'TableName' AND DimensionValue = 'Orders';
The average latency is calculated using AVG(Value) on the metric SuccessfulRequestLatency.
Fill all three blanks to write a query that gets the maximum number of throttled requests for a DynamoDB table named 'Customers' in the last hour.
SELECT [1] FROM CloudWatchMetrics WHERE MetricName = '[2]' AND DimensionName = 'TableName' AND DimensionValue = '[3]' AND Timestamp >= NOW() - INTERVAL '1' HOUR;
To find the maximum throttled requests, use MAX(Value) on the ReadThrottleEvents metric for the 'Customers' table.