
Answer-first summary for fast verification
Answer: Use parallel scans
Use parallel scans By default, the Scan operation processes data sequentially. Amazon DynamoDB returns data to the application in 1 MB increments, and an application performs additional Scan operations to retrieve the next 1 MB of data. The larger the table or index being scanned, the more time the Scan takes to complete. To address these issues, the Scan operation can logically divide a table or secondary index into multiple segments, with multiple application workers scanning the segments in parallel. To make use of a parallel Scan feature, you will need to run multiple worker threads or processes in parallel. Each worker will be able to scan a separate partition of a table concurrently with the other workers.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
A development team is working with an application that leverages the AWS SDK for Java to interact with AWS DynamoDB for data storage. The table in DynamoDB is 25 GB in size, and the application frequently performs Scan operations to retrieve multiple items. Due to the nature of the data and application requirements, it is not feasible to create indexes for predictable item retrieval. The developers are seeking the fastest possible way to retrieve these specific rows from DynamoDB.
Which of the following strategies can be employed to enhance the performance of the Scan operation?
A
Use a FilterExpression
B
Use parallel scans
C
Use a Query
D
Use a ProjectionExpression
No comments yet.