You need to reduce read latency for the retail store solution. What are two possible ways to achieve the goal? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.
- ACreate a new composite index for the store location data queries in Azure Cosmos DB. Modify the queries to support parameterized SQL and update the Azure Function app to call the new queries. (correct answer)
- BProvision an Azure Cosmos DB dedicated gateway. Update the Azure Function app connection string to use the new dedicated gateway endpoint. (correct answer)
- CConfigure Azure Cosmos DB consistency to session consistency. Cache session tokens in a new Azure Redis cache instance after every write. Update reads to use the session token stored in Azure Redis.
- DProvision an Azure Cosmos DB dedicated gateway. Update blob storage to use the new dedicated gateway endpoint.
- EConfigure Azure Cosmos DB consistency to strong consistency. Increase the RUs for the container supporting store location data.
Reveal answer & explanationHide answer
The correct answer is A, B. Option A: Create a new composite index for the store location data queries in Azure Cosmos DB. Modify the queries to support parameterized SQL and update the Azure Function app to call the new queries. Option B: Provision an Azure Cosmos DB dedicated gateway. Update the Azure Function app connection string to use the new dedicated gateway endpoint.
Explanation
Azure Cosmos DB is a globally distributed, multi-model NoSQL database with single-digit millisecond latency and automatic scaling.