AWS Certified Developer Associate DVA-C02 Practice Question
Which of the following best describes how the lazy loading (cache-aside) caching strategy works when you use a service such as Amazon ElastiCache?
Every write to the primary data store is simultaneously written to the cache, ensuring subsequent reads always hit cached data first.
The entire data set is loaded into the cache at application start-up and is periodically refreshed, regardless of whether items are requested.
The application never interacts with the cache directly; an external asynchronous process continuously copies database changes into the cache.
The cache is populated only when a request results in a cache miss; the fetched data is then stored in the cache and retained until it expires or is evicted.
With lazy loading, an application first looks for a requested item in the cache. If the key is present, the cached value is returned (cache hit). If the key is absent or expired (cache miss), the application reads the data from the underlying data store, returns the value to the caller, and writes that value into the cache for future requests. The cached entry remains until it expires (for example, a TTL) or is evicted by the cache engine's policy (such as LRU) or removed explicitly by the application. The other options describe pre-loading, write-through, or asynchronous replication strategies rather than lazy loading.
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 lazy loading in caching?
Open an interactive chat with Bash
What are Least Recently Used (LRU) criteria?
Open an interactive chat with Bash
How does lazy loading differ from write-through caching?
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...
IT & Cybersecurity Package Join Premium for Full Access