0
0
DynamoDBquery~10 mins

Read and write capacity units in DynamoDB - 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 read capacity units to 5 in the DynamoDB table creation.

DynamoDB
TableName: "MyTable",
ProvisionedThroughput: {
  ReadCapacityUnits: [1],
  WriteCapacityUnits: 10
}
Drag options to blanks, or click blank then click option'
A5
B20
C0
D10
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing read capacity units with write capacity units.
Setting the value to zero which disables reads.
2fill in blank
medium

Complete the code to set the write capacity units to 15 in the DynamoDB table creation.

DynamoDB
TableName: "Orders",
ProvisionedThroughput: {
  ReadCapacityUnits: 10,
  WriteCapacityUnits: [1]
}
Drag options to blanks, or click blank then click option'
A10
B5
C15
D20
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up read and write capacity units.
Choosing a value less than the required 15.
3fill in blank
hard

Fix the error in the code by choosing the correct value for read capacity units (must be a positive integer).

DynamoDB
ProvisionedThroughput: {
  ReadCapacityUnits: [1],
  WriteCapacityUnits: 10
}
Drag options to blanks, or click blank then click option'
A-5
B10
C0
D"five"
Attempts:
3 left
💡 Hint
Common Mistakes
Using zero or negative numbers.
Using strings instead of numbers.
4fill in blank
hard

Fill both blanks to set read capacity units to 8 and write capacity units to 12.

DynamoDB
ProvisionedThroughput: {
  ReadCapacityUnits: [1],
  WriteCapacityUnits: [2]
}
Drag options to blanks, or click blank then click option'
A8
B12
C5
D10
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping read and write capacity values.
Using incorrect numbers.
5fill in blank
hard

Fill all three blanks to create a DynamoDB table with name 'Users', read capacity units 6, and write capacity units 9.

DynamoDB
CreateTable({
  TableName: [1],
  ProvisionedThroughput: {
    ReadCapacityUnits: [2],
    WriteCapacityUnits: [3]
  }
})
Drag options to blanks, or click blank then click option'
A"Users"
B6
C9
D"Orders"
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong table name.
Mixing up read and write capacity units.
Omitting quotes around the table name.