QuestionQ8

Develop for Azure storage

You are building a web application that uses Azure Cache for Redis. You expect the cache to fill frequently and will need to evict keys.

You must configure Azure Cache for Redis for the following predicted usage pattern: a small subset of elements will be accessed much more often than the remaining elements.

You need to configure Azure Cache for Redis to optimize performance for the predicted usage pattern.

Which two eviction policies will meet the goal?

NOTE: Each correct selection is worth one point.

Choose two
Explanation

LRU eviction preserves frequently accessed keys by removing the keys that have gone unused for the longest time. allkeys-lru evaluates all keys, whereas volatile-lru evaluates keys that have an expiration set. Both therefore favor the frequently accessed subset under memory pressure.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!