Complete the code to set the table capacity mode to on-demand.
aws dynamodb create-table --table-name MyTable --billing-mode [1]The correct billing mode value for on-demand capacity is PAY_PER_REQUEST.
Complete the code to update an existing table to provisioned capacity mode.
aws dynamodb update-table --table-name MyTable --billing-mode [1] --provisioned-throughput ReadCapacityUnits=5,WriteCapacityUnits=5
To switch to provisioned capacity, use PROVISIONED as the billing mode.
Fix the error in the command to create a table with provisioned capacity.
aws dynamodb create-table --table-name MyTable --billing-mode [1] --provisioned-throughput ReadCapacityUnits=10,WriteCapacityUnits=10
The billing mode for provisioned capacity is PROVISIONED. Using PAY_PER_REQUEST or ON_DEMAND here causes errors.
Fill both blanks to create a table with on-demand capacity and a primary key named 'UserId'.
aws dynamodb create-table --table-name Users --attribute-definitions AttributeName=UserId,AttributeType=[1] --key-schema AttributeName=UserId,KeyType=[2] --billing-mode PAY_PER_REQUEST
The primary key attribute type is S for string, and the key type is HASH for partition key.
Fill all three blanks to update a table to provisioned mode with 8 read and 4 write capacity units.
aws dynamodb update-table --table-name Orders --billing-mode [1] --provisioned-throughput ReadCapacityUnits=[2],WriteCapacityUnits=[3]
Use PROVISIONED for billing mode, with 8 read and 4 write capacity units.