AWS Certified Developer Associate DVA-C02 Practice Question
Your company's application utilizes Amazon DynamoDB for data storage. To improve read performance and reduce latency for frequently accessed items, you have been tasked with implementing a caching layer. You decide to use Amazon ElastiCache. Which strategy should you employ to ensure cache consistency while minimizing performance impact?
Adopt a read-through caching strategy where data is loaded into the cache on a cache miss, optimizing read operations.
Use a write-around caching strategy to write data directly to DynamoDB and bypass the cache, reducing cache overhead.
Implement a write-through caching strategy where each write to DynamoDB is simultaneously written to the ElastiCache layer.
Incorporate lazy loading, so the cache is only updated when data is requested, minimizing the number of write operations.
Write-through caching ensures data consistency because the cache is updated with every write operation performed on the database. This means the cached data is always up-to-date with the database. The approach combines the benefits of having up-to-date data due to the cache being written to before the database write is considered successful. Write-around and read-through caching strategies do not provide the same level of consistency for write operations, as they are primarily focused on read operations. Lazy loading updates the cache only when necessary, which can lead to stale data if not handled correctly.
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 Amazon ElastiCache?
Open an interactive chat with Bash
Why is write-through caching preferred for consistency?
Open an interactive chat with Bash
How does a read-through caching strategy differ from write-through?
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...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .