nerdexam
Microsoft

AZ-204 · Question #489

You are developing an online game that includes a feature that allows players to interact with other players on the same team within a certain distance. The calculation to determine the players in…

The correct answer is B. volatile-Iru. There must be a way to tell our redis that logged off users must not be prioritized. Sample: User A moves and then automatically logs-off. With allkeys-lru we can't distinguish this particularity. With volatile-lru we can tell our redis what are good candidates to be removed…

Submitted by chen.hong· Mar 30, 2026Monitor, troubleshoot, and optimize Azure solutions

Question

You are developing an online game that includes a feature that allows players to interact with other players on the same team within a certain distance. The calculation to determine the players in range occurs when players move and are cached in an Azure Cache for Redis instance. The system should prioritize players based on how recently they have moved and should not prioritize players who have logged out of the game. You need to select an eviction policy. Which eviction policy should you use?

Options

  • Aallkeys-Iru
  • Bvolatile-Iru
  • Callkeys-lfu
  • Dvolatile-ttl

How the community answered

(42 responses)
  • A
    2% (1)
  • B
    86% (36)
  • C
    5% (2)
  • D
    7% (3)

Explanation

There must be a way to tell our redis that logged off users must not be prioritized. Sample: User A moves and then automatically logs-off. With allkeys-lru we can't distinguish this particularity. With volatile-lru we can tell our redis what are good candidates to be removed using different TTL values.

Topics

#Azure Cache for Redis#eviction policy#volatile-lru#TTL

Community Discussion

No community discussion yet for this question.

Full AZ-204 Practice