Examtopics

AWS Certified Developer - Associate
  • Topic 1 Question 395

    A developer creates an Amazon DynamoDB table. The table has OrderID as the partition key and NumberOfItemsPurchased as the sort key. The data type of the partition key and the sort key is Number.

    When the developer queries the table, the results are sorted by NumberOfItemsPurchased in ascending order. The developer needs the query results to be sorted by NumberOfItemsPurchased in descending order.

    Which solution will meet this requirement?

    • Create a local secondary index (LSI) on the NumberOfItemsPurchased sort key.

    • Change the sort key from NumberOfItemsPurchased to NumberOfItemsPurchasedDescending.

    • In the Query operation, set the ScanIndexForward parameter to false.

    • In the Query operation, set the KeyConditionExpression parameter to false.


    シャッフルモード