Topic 1 Question 489
A company’s application includes an Amazon DynamoDB table for product orders. The table has a primary partition key of orderId and has no sort key. The company is adding a new feature that requires the application to query the table by using the customerId attribute.
Which solution will provide this query functionality?
Change the existing primary key by setting customerId as the sort key.
Create a new global secondary index (GSI) on the table with a partition key of customerId.
Create a new local secondary index (LSI) on the table with a partition key of customerId.
Create a new local secondary index (LSI) on the table with a partition key of orderId and a sort key of customerId.
ユーザの投票
コメント(1)
- 正解だと思う選択肢: B
B. We can add Global Secondary Index only to existing table in DynamoDB
👍 10bdf3af2025/03/06
シャッフルモード