Your ASP.NET Core application experiences database overload during peak traffic because the same product catalog queries run thousands of times per minute. You add Azure Cache for Redis to cache query results. Which caching pattern should you implement to ensure stale data is never served indefinitely?

Direct Answer (Verified)Reviewed by Sunny (Senior Cloud Engineer)

Correct Answer: Cache-aside (lazy loading) with a Time-To-Live (TTL) expiry on each cached entry

Cache-aside (lazy loading) with TTL is the standard pattern: check cache first; on miss, fetch from DB and store in cache with an expiry. The TTL ensures stale entries are automati...

๐Ÿ“‹Part of Microsoft Certified: Azure Developer Associate (AZ-204) ยท Azure Certification Practice
Real Exam ScenarioAzure Cache for Redis

Your ASP.NET Core application experiences database overload during peak traffic because the same product catalog queries run thousands of times per minute. You add Azure Cache for Redis to cache query results. Which caching pattern should you implement to ensure stale data is never served indefinitely?

โœ“ Correct Answer & ExplanationAzure Cache for Redis

Correct Answer

Cache-aside (lazy loading) with a Time-To-Live (TTL) expiry on each cached entry

Why This Answer Is Correct

Cache-aside (lazy loading) with TTL is the standard pattern: check cache first; on miss, fetch from DB and store in cache with an expiry. The TTL ensures stale entries are automatically evicted. It is flexible, language-agnostic, and prevents indefinite stale data without requiring write-through complexity.

๐Ÿ“š What This Question Tests

This question evaluates your knowledge of Azure Cache for Redis โ€” a core concept tested in Microsoft Certified: Azure Developer Associate (AZ-204). Understanding Azure Cache for Redis is essential for designing scalable, secure, and cost-effective cloud architectures. Mastery of this topic will help you answer scenario-based questions confidently on exam day.