Challenge - 5 Problems
Cost Management Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate2:00remaining
Understanding Cost Management Benefits
Why is cost management important in DynamoDB to prevent unexpected charges?
Attempts:
2 left
💡 Hint
Think about how tracking usage helps avoid surprises.
✗ Incorrect
Cost management tools let you monitor your DynamoDB usage and set alarms. This way, you get notified before costs get too high, preventing surprises.
❓ query_result
intermediate2:00remaining
Identifying High-Cost Tables
Given a DynamoDB billing report, which table shows the highest cost for the month?
DynamoDB
TableName | ReadCapacityUnits | WriteCapacityUnits | Cost Users | 100 | 50 | 120 Orders | 200 | 100 | 250 Products | 50 | 25 | 80 Logs | 300 | 150 | 400
Attempts:
2 left
💡 Hint
Look for the highest cost value in the table.
✗ Incorrect
The Logs table has the highest cost of 400, which is more than any other table listed.
📝 Syntax
advanced2:30remaining
Correcting a Cost Alert Configuration
Which option correctly defines a DynamoDB cost alert using AWS CLI to notify when monthly charges exceed $100?
DynamoDB
aws cloudwatch put-metric-alarm --alarm-name DynamoDBCostAlert --metric-name EstimatedCharges --namespace AWS/Billing --statistic Maximum --period 21600 --threshold 100 --comparison-operator GreaterThanThreshold --evaluation-periods 1 --alarm-actions arn:aws:sns:us-east-1:123456789012:NotifyMe --dimensions Name=Currency,Value=USD
Attempts:
2 left
💡 Hint
Check the comparison operator and evaluation periods for correctness.
✗ Incorrect
Option A correctly sets the alarm to trigger when charges exceed $100 with proper evaluation periods and comparison operator.
❓ optimization
advanced2:00remaining
Reducing Unexpected DynamoDB Costs
Which strategy best helps reduce unexpected DynamoDB costs caused by sudden traffic spikes?
Attempts:
2 left
💡 Hint
Think about automatic adjustment to traffic changes.
✗ Incorrect
Auto Scaling adjusts capacity automatically within limits, preventing cost spikes from sudden traffic increases.
🔧 Debug
expert3:00remaining
Diagnosing Unexpected High Costs
A DynamoDB table shows unexpectedly high monthly costs. Which cause is most likely based on this query result?
Query: SELECT TableName, ConsumedReadCapacityUnits, ConsumedWriteCapacityUnits FROM BillingReport WHERE Month = '2024-05';
Result:
{
"TableName": "UserActivity",
"ConsumedReadCapacityUnits": 500000,
"ConsumedWriteCapacityUnits": 1000000
}
Options:
Attempts:
2 left
💡 Hint
Look at the capacity units consumed and relate to cost.
✗ Incorrect
The very high write capacity units consumed indicate a spike in write operations, which increases cost.