nerdexam
Amazon

DVA-C02 · Question #734

A company has an online order website that uses Amazon DynamoDB to store item inventory. A sample of the inventory object is as follows: A developer needs to reduce all inventory prices by 100 as…

The correct answer is B. Perform a DynamoDB UpdateItem operation with a condition expression of "Price >= 600". To update the Price while ensuring it does not go below 500, the developer should perform a single UpdateItem operation with a ConditionExpression like Price >= 600. This ensures the update is performed only if the price remains ≥ 500 after subtracting 100, minimizing the…

Submitted by lukas.cz· Mar 5, 2026Development with AWS Services

Question

A company has an online order website that uses Amazon DynamoDB to store item inventory. A sample of the inventory object is as follows:

A developer needs to reduce all inventory prices by 100 as long as the resulting price would not be less than 500. What should the developer do to make this change with the LEAST number of calls to DynamoDB?

Options

  • APerform a DynamoDB Query operation with the Id. If the price is >= 600, perform an UpdateItem
  • BPerform a DynamoDB UpdateItem operation with a condition expression of "Price >= 600".
  • CPerform a DynamoDB UpdateItem operation with a condition expression of "ProductCategory IN
  • DPerform a DynamoDB UpdateItem operation with a condition expression of "MIN Price = 500".

How the community answered

(29 responses)
  • A
    3% (1)
  • B
    83% (24)
  • C
    10% (3)
  • D
    3% (1)

Explanation

To update the Price while ensuring it does not go below 500, the developer should perform a single UpdateItem operation with a ConditionExpression like Price >= 600. This ensures the update is performed only if the price remains ≥ 500 after subtracting 100, minimizing the number of calls by avoiding a prior read.

Community Discussion

No community discussion yet for this question.

Full DVA-C02 Practice