Practice Exam

Question 59 of 75

Select Redis Eviction Policy for Player Proximity Cache

You work as a Game Development Engineer for MDFT Pro, a well-known training agency that delivers certification courses to students worldwide. Mark, the Gaming Platform Lead, is developing an online multiplayer game for a gamification training course that teaches Azure Cache for Redis concepts. The game includes a feature allowing players to interact with teammates within a certain proximity distance. When players move, the system calculates which other players are in range and caches this proximity data in an Azure Cache for Redis instance to avoid expensive recalculation. The cache should prioritize players based on how recently they moved—recently active players should remain in cache while inactive players can be evicted. Additionally, when players log out of the game, their proximity data should eventually be removed from the cache as it’s no longer accessed, without requiring manual cleanup code.

Which eviction policy should you configure for Azure Cache for Redis?

Choose the correct answer from the options below.

Explanations for each answer:

Learn more about Eviction Policies:
Azure Cache for Redis Memory Management
Next Question
Discuss this question on social media: