Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
AWS Certified Developer - Associate · AWS
Select one answer.
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
D) Correct In a write-through cache, every write operation to the database is immediately mirrored in the cache. This ensures that the cache always contains the most up-to-date data and is ideal for scenarios where real-time consistency is required, such as updating dashboards.
C) Eliminated In a lazy-loading cache, the data is loaded into the cache only when requested. If the data is not in the cache (a "cache miss"), it is fetched from the database, loaded into the cache, and returned to the application. While this reduces unnecessary caching, it does not proactively update the cache. Therefore, data in the cache may become stale, which is unsuitable for real-time dashboards.
D) Correct In a write-through cache, every write operation to the database is immediately mirrored in the cache. This ensures that the cache always contains the most up-to-date data and is ideal for scenarios where real-time consistency is required, such as updating dashboards.