AWS Certified Database – Specialty — Question 238

A company hosts an online gaming application on AWS. A single Amazon DynamoDB table contains one item for each registered user. The partition key for each item is the user's ID.

A daily report generator computes the sum totals of two well-known attributes for all items in the table that contain a dimension attribute. As the number of users grows, the report generator takes more time to generate the report.

Which combination of steps will minimize the time it takes to generate the report? (Choose two.)

Answer options

Correct answer: A, C

Explanation

Option A is correct because creating a global secondary index allows for efficient querying of the dimension attribute while projecting only the necessary attributes, improving performance. Option C is also correct as querying an index is generally faster than scanning the entire table. Options B, D, and E are less effective because they either do not optimize the querying process or complicate the retrieval of needed data.