Topic 1 Question 372
A company runs an ecommerce application on AWS. The application stores data in an Amazon Aurora database.
A developer is adding a caching layer to the application. The caching strategy must ensure that the application always uses the most recent value for each data item.
Which caching strategy will meet these requirements?
Implement a TTL strategy for every item that is saved in the cache.
Implement a write-through strategy for every item that is created and updated.
Implement a lazy loading strategy for every item that is loaded.
Implement a read-through strategy for every item that is loaded.
ユーザの投票
コメント(1)
- 正解だと思う選択肢: B
Write-Through Caching (Option B): With a write-through caching strategy, every time an item is written to the database, it is also written to the cache. This ensures that the cache is always updated with the most recent value immediately after any write operation. Consequently, any read operation can fetch the most recent value directly from the cache, ensuring data consistency between the cache and the database.
👍 7rdiaz2024/07/11
シャッフルモード