Topic 1 Question 361
A developer is writing an application, which stores data in an Amazon DynamoDB table. The developer wants to query the DynamoDB table by using the partition key and a different sort key value. The developer needs the latest data with all recent write operations.
How should the developer write the DynamoDB query?
Add a local secondary index (LSI) during table creation. Query the LSI by using eventually consistent reads.
Add a local secondary index (LSI) during table creation. Query the LSI by using strongly consistent reads.
Add a global secondary index (GSI) during table creation. Query the GSI by using eventually consistent reads.
Add a global secondary index (GSI) during table creation. Query the GSI by using strongly consistent reads.
ユーザの投票
コメント(5)
- 正解だと思う選択肢: B
GSI - diff part key and sort key | LSI - same part key and diff sort key Strongly consistent - most recent data
👍 7Anandesh2024/07/10 The correct answer is: B.
Local Secondary Index (LSI): An LSI allows you to create an index with a different sort key for the same partition key as the base table. This lets you query the table using the same partition key but with a different sort key. LSIs are created at the same time as the table and cannot be added to an existing table.
Strongly consistent reads ensure that you always receive the most up-to-date data after all previous write operations are acknowledged. This is important when the developer needs to ensure they are getting the latest data, as stated in the question.
👍 3tomchandler0772024/07/07- 正解だと思う選択肢: B
Considering developer wants to query by using the same partition key and a different sort key value, so B it's the correct answer
👍 2[Removed]2024/07/05
シャッフルモード