DynamoDB Queries vs Scans Quiz

5 questions Pass: 70% +25 pts (50 with Pro)

Quiz covering Data Stores

What you'll be asked

  1. Which operation is generally more efficient and cost-effective for retrieving a specific item from a DynamoDB table using its primary key?
  2. When performing a Scan operation on a large DynamoDB table, what happens if the result set exceeds the 1MB limit for a single response?
  3. You have a table containing millions of items. You need to retrieve all items where the 'Status' attribute is 'PENDING'. Why is a Scan with a Filter Expression not recommended for this use case?
  4. Which of the following scenarios is the most appropriate use case for a DynamoDB Scan operation?
  5. Consider a table with a Partition Key 'PK' and Sort Key 'SK'. You perform a Query with 'KeyConditionExpression' set to 'PK = :v1 AND SK BEGINS_WITH(:v2)'. If this query returns a large amount of data that hits the 1MB limit, how does the 'Limit' parameter in the Query API interact with the pagination mechanism?

Answers and explanations come after you submit.