AWS Certified Developer Associate DVA-C02 Practice Question
Your application uses an Amazon DynamoDB table to serve user profile information. You notice an increase in the read load causing throttling issues due to repeated accesses to the same items. Which caching strategy should you implement to minimize read latency and reduce the load on the DynamoDB table while ensuring data consistency for frequently accessed items?
Implement a read-through cache using Amazon ElastiCache
Increase the read capacity units (RCUs) for the DynamoDB table to handle the higher load
Store user profiles in Amazon S3 and synchronize them with DynamoDB
Apply lazy loading to load user profiles into the cache only when updates occur
Set a time-to-live (TTL) for user profiles to invalidate the cache periodically
Use a write-through cache to preload user profiles into Amazon ElastiCache
Implementing a 'read-through' caching strategy will minimize read latency and reduce the load on the DynamoDB table by caching the data after the first read from the database. Subsequent reads are served directly from the cache, which decreases the burden on the table. As the cache is populated on-demand during a database read, it ensures that the data in the cache is consistent with the database. Other caching strategies might not be as effective for this scenario. For example, write-through caching is more suited for write-heavy applications, lazy loading can lead to stale data if not managed properly, and TTL doesn't directly address the problem of high read load and throttling.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a read-through cache and how does it work?
Open an interactive chat with Bash
What is Amazon ElastiCache and why is it used with DynamoDB?
Open an interactive chat with Bash
What are the potential drawbacks of using a read-through cache?
Open an interactive chat with Bash
AWS Certified Developer Associate DVA-C02
Development with AWS Services
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Information Technology Package Join Premium for Full Access