Recall & Review
beginner
What does a Put operation do in AWS DynamoDB?
A Put operation adds a new item or replaces an existing item in a DynamoDB table. Think of it like putting a new book on a shelf or replacing an old one with a new copy.
Click to reveal answer
beginner
What is the purpose of a Get operation in AWS DynamoDB?
A Get operation retrieves a single item from a DynamoDB table using its primary key. It's like looking up a specific book by its unique ID on a shelf.
Click to reveal answer
intermediate
How does a Query operation differ from a Get operation in DynamoDB?
A Query operation finds multiple items based on a partition key and optional filters. Unlike Get, which fetches one item, Query can return many items that share the same partition key, like finding all books by the same author.
Click to reveal answer
intermediate
Why should you use Query instead of Scan in DynamoDB when possible?
Query is faster and more efficient because it looks only at items with a specific partition key. Scan checks every item in the table, which is slower and uses more resources, like searching every book in a library instead of just one shelf.
Click to reveal answer
beginner
What happens if you Put an item with the same primary key as an existing item in DynamoDB?
The existing item is replaced with the new one. It's like swapping an old book with a new edition on the same shelf spot.
Click to reveal answer
Which DynamoDB operation retrieves a single item by its primary key?
✗ Incorrect
Get operation fetches one item using its primary key.
What does a Put operation do if the item key already exists?
✗ Incorrect
Put replaces the existing item with the new one if the key matches.
Which operation is best to find all items with the same partition key?
✗ Incorrect
Query returns multiple items sharing the same partition key.
Why is Query preferred over Scan in DynamoDB?
✗ Incorrect
Query is faster because it targets specific partition keys.
Which operation would you use to add a new item to a DynamoDB table?
✗ Incorrect
Put operation adds or replaces an item in the table.
Explain the differences between Put, Get, and Query operations in DynamoDB.
Think about how you add, find one, or find many books in a library.
You got /3 concepts.
Describe why Query is more efficient than Scan in DynamoDB and when you should use each.
Compare searching one shelf versus the whole library.
You got /3 concepts.