Home » Microsoft » AZ-204 v.2 » How should you complete the code? To answer, select the appropriate options in the answer area.
HOTSPOT
A company is developing a gaming platform. Users can join teams to play online and see leaderboards that include player statistics. The solution includes an entity named Team.
You plan to implement an Azure Redis Cache instance to improve the efficiency of data operations for entities that rarely change.
You need to invalidate the cache when team data is changed.
How should you complete the code? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:
Correct Answer:
Explanation/Reference:
Explanation:
Box 1: IDatabase cache = connection.GetDatabase();
Connection refers to a previously configured ConnectionMultiplexer.
Box 2: cache.StringSet(“teams”,”)
To specify the expiration of an item in the cache, use the TimeSpan parameter of StringSet. cache.StringSet(“key1”, “value1”, TimeSpan.FromMinutes(90)); Reference:
https://azure.microsoft.com/sv-se/blog/lap-around-azure-redis-cache-preview/
https://docs.microsoft.com/en-us/cli/azure/webapp/config/container
Microsoft AZ-204: Developing Solutions for Microsoft Azure
Free dumps for AZ-204 in PDF format also you can read online.
High quality AZ-204 PDF and software. VALID exam to help you pass.
|
|
Second combo has wrong answer.
In https://docs.microsoft.com/en-us/azure/azure-cache-for-redis/cache-web-app-cache-aside-leaderboard is example of method with same name and there is used method KeyDelete.