0
0
DynamoDBquery~10 mins

Table capacity modes (on-demand vs provisioned) in DynamoDB - Interactive Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to set the table capacity mode to on-demand.

DynamoDB
aws dynamodb create-table --table-name MyTable --billing-mode [1]
Drag options to blanks, or click blank then click option'
APAY_PER_REQUEST
BON_DEMAND
CPROVISIONED
DSTANDARD
Attempts:
3 left
💡 Hint
Common Mistakes
Using PROVISIONED instead of PAY_PER_REQUEST for on-demand mode.
Using ON_DEMAND which is not a valid billing mode value.
2fill in blank
medium

Complete the code to update an existing table to provisioned capacity mode.

DynamoDB
aws dynamodb update-table --table-name MyTable --billing-mode [1] --provisioned-throughput ReadCapacityUnits=5,WriteCapacityUnits=5
Drag options to blanks, or click blank then click option'
APAY_PER_REQUEST
BSTANDARD
CON_DEMAND
DPROVISIONED
Attempts:
3 left
💡 Hint
Common Mistakes
Using PAY_PER_REQUEST when trying to set provisioned mode.
Omitting provisioned throughput parameters.
3fill in blank
hard

Fix the error in the command to create a table with provisioned capacity.

DynamoDB
aws dynamodb create-table --table-name MyTable --billing-mode [1] --provisioned-throughput ReadCapacityUnits=10,WriteCapacityUnits=10
Drag options to blanks, or click blank then click option'
APAY_PER_REQUEST
BON_DEMAND
CPROVISIONED
DSTANDARD
Attempts:
3 left
💡 Hint
Common Mistakes
Using PAY_PER_REQUEST with provisioned throughput parameters.
Using ON_DEMAND which is invalid in this context.
4fill in blank
hard

Fill both blanks to create a table with on-demand capacity and a primary key named 'UserId'.

DynamoDB
aws dynamodb create-table --table-name Users --attribute-definitions AttributeName=UserId,AttributeType=[1] --key-schema AttributeName=UserId,KeyType=[2] --billing-mode PAY_PER_REQUEST
Drag options to blanks, or click blank then click option'
AS
BHASH
CN
DRANGE
Attempts:
3 left
💡 Hint
Common Mistakes
Using RANGE instead of HASH for the primary key.
Using N when the key is a string.
5fill in blank
hard

Fill all three blanks to update a table to provisioned mode with 8 read and 4 write capacity units.

DynamoDB
aws dynamodb update-table --table-name Orders --billing-mode [1] --provisioned-throughput ReadCapacityUnits=[2],WriteCapacityUnits=[3]
Drag options to blanks, or click blank then click option'
APAY_PER_REQUEST
BPROVISIONED
C4
D8
Attempts:
3 left
💡 Hint
Common Mistakes
Using PAY_PER_REQUEST when specifying provisioned throughput.
Swapping read and write capacity values.