Bird
0
0

Which of the following is the correct way to continue fetching the next page of results in DynamoDB SDK?

easy📝 Syntax Q12 of 15
DynamoDB - with AWS SDK
Which of the following is the correct way to continue fetching the next page of results in DynamoDB SDK?
ASet <code>StartKey</code> to zero.
BUse <code>Limit</code> with the last item key.
CSet <code>ExclusiveStartKey</code> to the last evaluated key from previous response.
DUse <code>NextPageToken</code> parameter.
Step-by-Step Solution
Solution:
  1. Step 1: Identify the parameter for pagination continuation

    DynamoDB uses ExclusiveStartKey to tell the query where to start for the next page.
  2. Step 2: Verify other options

    Limit sets page size, StartKey is not a valid parameter, and NextPageToken is not used in DynamoDB SDK.
  3. Final Answer:

    Set ExclusiveStartKey to the last evaluated key from previous response. -> Option C
  4. Quick Check:

    Use ExclusiveStartKey for next page [OK]
Quick Trick: Use ExclusiveStartKey to continue pagination [OK]
Common Mistakes:
MISTAKES
  • Using Limit to continue pages
  • Using invalid parameter StartKey
  • Assuming NextPageToken exists in DynamoDB

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More DynamoDB Quizzes