Which of the following best explains why CRUD operations are foundational in DynamoDB?
Think about the main actions you do when working with any data storage.
CRUD stands for Create, Read, Update, and Delete. These are the four basic operations that let you manage data in DynamoDB or any database.
What will be the result of this DynamoDB PutItem operation if the item already exists?
{
TableName: "Users",
Item: { "UserID": { S: "123" }, "Name": { S: "Alice" } }
}Consider what PutItem does by default when the key already exists.
PutItem replaces the entire item if the primary key already exists in the table.
Which of the following is the correct syntax to update the 'Age' attribute to 30 for a user with UserID '123'?
Remember to use ExpressionAttributeValues with the correct data types and the SET keyword in UpdateExpression.
Option C correctly uses UpdateExpression with SET and ExpressionAttributeValues with the number type.
You want to read multiple items by their primary keys efficiently. Which DynamoDB operation is best suited for this?
Think about how to reduce the number of requests when fetching many items.
BatchGetItem lets you retrieve multiple items by keys in one request, making it efficient.
What error will this DeleteItem request cause?
{
TableName: "Users",
Key: { "UserID": "123" }
}Check how DynamoDB expects key attribute values to be formatted.
DynamoDB requires attribute values to be wrapped with their data types, like { S: "123" } for strings.