Complete the code to set the DynamoDB table capacity mode to on-demand.
TableName: "MyTable", BillingMode: "[1]"
The correct billing mode for on-demand capacity in DynamoDB is PAY_PER_REQUEST. This mode automatically scales read and write capacity.
Complete the code to set the provisioned read capacity units for a DynamoDB table.
ProvisionedThroughput: {
ReadCapacityUnits: [1],
WriteCapacityUnits: 5
}ReadCapacityUnits must be a number. Setting it to 10 means the table can handle 10 strongly consistent reads per second.
Fix the error in the code to correctly specify the billing mode for provisioned capacity.
BillingMode: "[1]"
The billing mode string for provisioned capacity is PROVISIONED. This tells DynamoDB you will specify capacity units manually.
Fill both blanks to define a DynamoDB table with provisioned capacity and 5 write units.
BillingMode: "[1]", ProvisionedThroughput: { ReadCapacityUnits: 10, WriteCapacityUnits: [2] }
Use PROVISIONED billing mode to specify capacity units manually. WriteCapacityUnits is set to 5 as required.
Fill the two blanks to create a DynamoDB table with on-demand capacity and a table name 'Orders'.
TableName: "[1]", BillingMode: "[2]"
TableName is 'Orders'. BillingMode for on-demand is 'PAY_PER_REQUEST'. ProvisionedThroughput is not needed (and invalid) for on-demand capacity.