DVA-C02 Exam QuestionsBrowse all questions from this exam

DVA-C02 Exam - Question 325


A company runs an application on AWS. The application stores data in an Amazon DynamoDB table. Some queries are taking a long time to run. These slow queries involve an attribute that is not the table's partition key or sort key.

The amount of data that the application stores in the DynamoDB table is expected to increase significantly. A developer must increase the performance of the queries.

Which solution will meet these requirements?

Show Answer
Correct Answer: B

When queries involve an attribute that is not part of the original table's partition key or sort key, creating a global secondary index (GSI) is the best solution. A GSI allows for querying based on different attributes, effectively enhancing performance especially as the data volume increases. Increasing the page size or performing a parallel scan does not specifically address the inefficiency caused by the lack of indexing on the queried attribute. Auto scaling read capacity units will only help if the issue is purely throughput-related, but it will not solve the fundamental problem of not having an efficient way to retrieve data based on the specific attribute.

Discussion

5 comments
Sign in to comment
tgvOption: B
Feb 18, 2024

Creating a GSI would be more cost efficient than increasing the RCU in this case.

nderOption: B
Mar 3, 2024

GSI :)

be1dca8
Apr 11, 2024

B Parallel scan operations can be useful for scanning large tables, but they may not necessarily improve performance for specific queries involving non-key attributes.

65703c1Option: B
May 24, 2024

B is the correct answer.

tomchandler077
Jul 17, 2024

To improve the performance of queries that involve an attribute that is neither the table's partition key nor sort key, and anticipating an increase in data volume, the most effective solution is to utilize a global secondary index (GSI). This allows for efficient querying based on different attributes that are critical for performance but not originally designed as keys in the main table structure.