hiexam
amazon · AWS-Certified-Developer-Associate · Q426 · multiple_choice · topic_1

A company has an online order website that uses Amazon DynamoDB to store item inventory. A sample of the inventory obje…

A company has an online order website that uses Amazon DynamoDB to store item inventory. A sample of the inventory object is as follows: //IMG// 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?
  • A.Perform a DynamoDB Query operation with the Id. If the price is >= 600, perform an UpdateItem operation to update the price.
  • B.Perform a DynamoDB UpdateItem operation with a condition expression of "Price >= 600".
  • C.Perform a DynamoDB UpdateItem operation with a condition expression of "ProductCategory IN ({"S": "Sporting Goods"}) and Price 600".
  • D.Perform a DynamoDB UpdateItem operation with a condition expression of "MIN Price = 500".
Explanation
Selected Answer: B I vote for B, acording to this doc: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.ConditionExpressions.html

Reference: examtopics_top_comment

Practice with progress tracking

Sign in to track wrong answers, get spaced-repetition reminders, and run timed exam mode.