
Answer-first summary for fast verification
Answer: Consider using Global tables if your application is accessed by globally distributed users, Use eventually consistent reads in place of strongly consistent reads whenever possible
Overall explanation Correct option: Amazon DynamoDB is a key-value and document database that delivers single-digit millisecond performance at any scale. It's a fully managed, multi-Region, multi-master, durable database with built-in security, backup, and restore and in-memory caching for internet-scale applications. Consider using Global tables if your application is accessed by globally distributed users - If you have globally dispersed users, consider using global tables. With global tables, you can specify the AWS Regions where you want the table to be available. This can significantly reduce latency for your users. So, reducing the distance between the client and the DynamoDB endpoint is an important performance fix to be considered. Use eventually consistent reads in place of strongly consistent reads whenever possible - If your application doesn't require strongly consistent reads, consider using eventually consistent reads. Eventually consistent reads are cheaper and are less likely to experience high latency. Incorrect options: Increase the request timeout settings, so the client gets enough time to complete the requests, thereby reducing retries on the system - This statement is incorrect. The right way is to reduce the request timeout settings. This causes the client to abandon high latency requests after the specified time period and then send a second request that usually completes much faster than the first. Reduce connection pooling, which keeps the connections alive even when user requests are not present, thereby, blocking the services - This is not correct. When you're not making requests, consider having the client send dummy traffic to a DynamoDB table. Alternatively, you can reuse client connections or use connection pooling. All of these techniques keep internal caches warm, which helps keep latency low. Use DynamoDB Accelerator (DAX) for businesses with heavy write-only workloads - This is not correct. If your traffic is read-heavy, consider using a caching service such as DynamoDB Accelerator (DAX). DAX is a fully managed, highly available, in-memory cache for DynamoDB that delivers up to a 10x performance improvement—from milliseconds to microseconds—even at millions of requests per second.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
An organization that handles high data volume workloads has transitioned to using Amazon DynamoDB after facing numerous challenges with traditional database systems. Despite the initial success, after several months in production, the DynamoDB tables are now exhibiting consistently high latency.
As an AWS Certified Developer Associate, which of the following steps would you recommend to alleviate the latency issues? (Select two)
A
Use DynamoDB Accelerator (DAX) for businesses with heavy write-only workloads
B
Increase the request timeout settings, so the client gets enough time to complete the requests, thereby reducing retries on the system
C
Reduce connection pooling, which keeps the connections alive even when user requests are not present, thereby, blocking the services
D
Consider using Global tables if your application is accessed by globally distributed users
E
Use eventually consistent reads in place of strongly consistent reads whenever possible