0 votes
in AWS by

An application has been making use of AWS DynamoDB for its back-end data store. The size of the table has now grown to 20 GB, and the scans on the table are causing throttling errors. Which of the following should now be implemented to avoid such errors?

1 Answer

0 votes
by

Answer - B.

When you scan your table in Amazon DynamoDB, you should follow the DynamoDB best practices for avoiding sudden bursts of read activity.

You can use the following technique to minimize the impact of a scan on a table's provisioned throughput.

Reduce page size.

Because a Scan operation reads an entire page (by default, 1 MB), you can reduce the scan operation's impact by setting a smaller page size.

The Scan operation provides a Limit parameter that you can use to set the page size for your request.

Each Query or Scan request with a smaller page size uses fewer read operations and creates a "pause" between each request.

For example, suppose that, each item is 4 KB, and you set the page size to 40 items.

A Query request would then consume only 20 eventually consistent read operations or 40 strongly consistent read operations.

A larger number of smaller Query or Scan operations would allow your other critical requests to succeed without throttling.

Related questions

0 votes
asked Apr 22 in AWS by DavidAnderson
0 votes
asked Apr 21 in AWS by DavidAnderson
...