nerdexam
AmazonAmazon

DVA-C02 · Question #409

DVA-C02 Question #409: Real Exam Question with Answer & Explanation

Sign in or unlock DVA-C02 to reveal the answer and full explanation for question #409. The question stem and answer options stay visible for context.

Submitted by obi.ng· Mar 5, 2026Development with AWS Services

Question

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?

Options

  • ACreate a local secondary index (LSI) on the NumberOfItemsPurchased sort key.
  • BChange the sort key from NumberOfItemsPurchased to NumberOfItemsPurchasedDescending.
  • CIn the Query operation, set the ScanIndexForward parameter to false.
  • DIn the Query operation, set the KeyConditionExpression parameter to false.

Unlock DVA-C02 to see the answer

You've previewed enough free DVA-C02 questions. Unlock DVA-C02 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full DVA-C02 PracticeBrowse All DVA-C02 Questions