Your ASP.NET Core API queries the same product catalog data from SQL Database on every request. Under load, the database becomes a bottleneck with high DTU consumption. You want to add a caching layer that stores catalog data for 10 minutes and automatically refreshes stale data. Which implementation pattern should you use with Azure Cache for Redis?

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

Correct Answer: Implement the Cache-Aside pattern: check Redis for the key, return cached data if present (cache hit), or fetch from SQL and write to Redis with a 10-minute TTL on a cache miss

The Cache-Aside (Lazy Loading) pattern is the standard approach for caching database results. On a cache miss, the application fetches from the source database and writes to Redis ...

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

Your ASP.NET Core API queries the same product catalog data from SQL Database on every request. Under load, the database becomes a bottleneck with high DTU consumption. You want to add a caching layer that stores catalog data for 10 minutes and automatically refreshes stale data. Which implementation pattern should you use with Azure Cache for Redis?

โœ“ Correct Answer & ExplanationAzure Cache for Redis

Correct Answer

Implement the Cache-Aside pattern: check Redis for the key, return cached data if present (cache hit), or fetch from SQL and write to Redis with a 10-minute TTL on a cache miss

Why This Answer Is Correct

The Cache-Aside (Lazy Loading) pattern is the standard approach for caching database results. On a cache miss, the application fetches from the source database and writes to Redis with a TTL. All subsequent requests within the TTL window are served from Redis, dramatically reducing database load.

๐Ÿ“š 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.