Complete the code to specify the billing mode as on-demand in the table creation.
aws dynamodb create-table --table-name Music --attribute-definitions AttributeName=Artist,AttributeType=S --key-schema AttributeName=Artist,KeyType=HASH --billing-mode [1]The billing mode for on-demand capacity in DynamoDB is specified as PAY_PER_REQUEST.
Complete the code to set the read capacity units for provisioned mode.
aws dynamodb update-table --table-name Music --provisioned-throughput ReadCapacityUnits=[1],WriteCapacityUnits=5
Setting ReadCapacityUnits to 5 matches the write capacity units and is a common balanced setting.
Fix the error in the cost calculation formula for provisioned mode.
cost = (read_units * 0.00013 + write_units * 0.00065) * [1]
The cost is calculated per hour, so multiply by the number of hours in a month.
Fill both blanks to complete the on-demand cost calculation formula.
cost = (read_requests * [1] + write_requests * [2]) / 1000000
On-demand read request units cost $0.25 per million and write request units cost $1.25 per million.
Fill all three blanks to complete the provisioned throughput cost formula with monthly hours.
cost = (read_units * [1] + write_units * [2]) * [3]
Read units cost $0.00013/hr, write units $0.00065/hr, multiplied by 730 hours in a month.