AZ-305 Question 187
Select 2Contoso is building a global e-commerce platform that experiences a high volume of reads for its product catalog. The catalog is updated once daily, and the team wants to reduce the load on their primary database while ensuring fast response times for repeated lookups from multiple regions. Which two solutions can help achieve these requirements?
- A
Deploy Azure Cache for Redis (Premium tier) with geo-replication to handle global reads and reduce database load.
- B
Add read replicas to Azure SQL Database in each region to alleviate database load and use Azure SQL as a global cache.
- C
Store all product details directly in Azure Blob Storage and query them from there to serve as a primary cache.
- D
Implement Azure Content Delivery Network (CDN) to cache static catalog data at edge locations.
Show answer and explanation
Correct answers: A, D
Explanation
A reliable caching solution offloads repetitive read operations from the primary data store and serves responses with low latency. Azure Cache for Redis is an in-memory data store that can handle frequent lookups efficiently, while Azure CDN is well-suited for caching and delivering static content to users worldwide. For more information, refer to Azure documentation on Cache for Redis (https://learn.microsoft.com/azure/azure-cache-for-redis/) and Azure Content Delivery Network (https://learn.microsoft.com/azure/cdn/).
- A. Correct.
Option 1: CORRECT. Azure Cache for Redis in the Premium tier can be configured with geo-replication to serve data from a cache instance closer to each region. This setup helps reduce latency and offloads repetitive reads from the database.
- B. Incorrect.
Option 2: INCORRECT. Although read replicas in Azure SQL Database help distribute read traffic, they do not function as a dedicated cache with in-memory capabilities. This approach might reduce load but does not provide the fast, in-memory caching needed for frequent lookups.
- C. Incorrect.
Option 3: INCORRECT. Azure Blob Storage is not a dedicated caching mechanism; it's a storage service. While it can store static objects, it doesn't offer low-latency, in-memory cache features for frequently changing or query-heavy data.
- D. Correct.
Option 4: CORRECT. Azure CDN can cache statically served catalog data globally at edge locations, reducing latency for frequently accessed product images or static content. For content that updates daily, CDN rules and cache invalidation policies can be configured to refresh content as needed.