0
0
AWScloud~10 mins

DynamoDB capacity modes (on-demand, provisioned) in AWS - Interactive Code Practice

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

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

AWS
TableName: "MyTable",
BillingMode: "[1]"
Drag options to blanks, or click blank then click option'
AON_DEMAND
BPAY_PER_REQUEST
CPROVISIONED
DSTANDARD
Attempts:
3 left
💡 Hint
Common Mistakes
Using PROVISIONED instead of PAY_PER_REQUEST
Using ON_DEMAND which is not a valid billing mode string
2fill in blank
medium

Complete the code to set the provisioned read capacity units for a DynamoDB table.

AWS
ProvisionedThroughput: {
  ReadCapacityUnits: [1],
  WriteCapacityUnits: 5
}
Drag options to blanks, or click blank then click option'
A10
B"10"
C5
D0
Attempts:
3 left
💡 Hint
Common Mistakes
Using a string instead of a number
Setting capacity to zero which disables reads
3fill in blank
hard

Fix the error in the code to correctly specify the billing mode for provisioned capacity.

AWS
BillingMode: "[1]"
Drag options to blanks, or click blank then click option'
AON_DEMAND
BPAY_PER_REQUEST
CPROVISIONED
DSTANDARD
Attempts:
3 left
💡 Hint
Common Mistakes
Using ON_DEMAND or PAY_PER_REQUEST instead of PROVISIONED
Using an invalid string like STANDARD
4fill in blank
hard

Fill both blanks to define a DynamoDB table with provisioned capacity and 5 write units.

AWS
BillingMode: "[1]",
ProvisionedThroughput: {
  ReadCapacityUnits: 10,
  WriteCapacityUnits: [2]
}
Drag options to blanks, or click blank then click option'
APROVISIONED
BPAY_PER_REQUEST
C5
D10
Attempts:
3 left
💡 Hint
Common Mistakes
Using PAY_PER_REQUEST with ProvisionedThroughput
Setting WriteCapacityUnits to a string
5fill in blank
hard

Fill the two blanks to create a DynamoDB table with on-demand capacity and a table name 'Orders'.

AWS
TableName: "[1]",
BillingMode: "[2]"
Drag options to blanks, or click blank then click option'
AOrders
BPAY_PER_REQUEST
Cnull
D{}
Attempts:
3 left
💡 Hint
Common Mistakes
Using PROVISIONED billing mode for on-demand settings
Including ProvisionedThroughput for on-demand (causes validation error)