AZ-204 · Question #150
A development team is developing an application. The application will be working with customer data. The application will also be making use of Azure Redis Cache. You need to invalidate the cache when
The correct answer is A. cache.KeyDelete(p_Customer);. Since you have to invalidate the cache, you have to delete the Key itself Option B is incorrect since you need to work with keys and not the values Option C is incorrect this is used to get the string value Option D is incorrect this is used to set the string value https://docs.m
Question
Options
- Acache.KeyDelete(p_Customer);
- Bcache.ValueDelete(p_Customer);
- Ccache.StringGet(p_Customer);
- Dcache.StringSet(p_Customer);
How the community answered
(40 responses)- A73% (29)
- B15% (6)
- C5% (2)
- D8% (3)
Explanation
Since you have to invalidate the cache, you have to delete the Key itself Option B is incorrect since you need to work with keys and not the values Option C is incorrect this is used to get the string value Option D is incorrect this is used to set the string value https://docs.microsoft.com/en-us/azure/azure-cache-for-redis/cache-dotnet-how-to-use-azure-
Topics
Community Discussion
No community discussion yet for this question.