All fields

“Expiration & Eviction” in Information Technology

20 questions across 1 technology.

Information Technology

20 questions in 1 technology

#QuestionTechnologyTopicLevel
1How do you set an expiration time on a Redis key so it automatically gets deleted after a certain period? Redis › Expiration & EvictionRedisExpiration & EvictionBeginner
2What eviction policies are available in Redis for handling the situation when memory usage reaches its configured maximum limit? Redis › Expiration & EvictionRedisExpiration & EvictionIntermediate
3What is the difference between the LRU and LFU eviction algorithms, and when would you choose one over the other? Redis › Expiration & EvictionRedisExpiration & EvictionIntermediate
4How does Redis actually implement key expiration internally, using both a passive and an active approach? Redis › Expiration & EvictionRedisExpiration & EvictionAdvanced
5What is the difference between the EXPIRE, TTL, and PERSIST commands in Redis? Redis › Expiration & EvictionRedisExpiration & EvictionBeginner
6How do you monitor how many keys are currently being evicted from Redis due to memory pressure, and why is this an important metric to track? Redis › Expiration & EvictionRedisExpiration & EvictionIntermediate
7How would you diagnose and resolve a situation where important data is being unexpectedly evicted from Redis due to memory pressure? Redis › Expiration & EvictionRedisExpiration & EvictionAdvanced
8How do you extend a user's session expiration time each time they make a new request, keeping active users logged in? Redis › Session Management with RedisRedisSession Management with RedisBeginner
9How would you design a session management system that supports both a sliding expiration for active users and an absolute maximum session lifetime regardless of activity? Redis › Session Management with RedisRedisSession Management with RedisAdvanced
10What is the cache aside pattern, and how does it work with Redis? Redis › Caching PatternsRedisCaching PatternsBeginner
11What are keyspace notifications in Redis, and what do they let your application do? Redis › Keyspace NotificationsRedisKeyspace NotificationsBeginner
12What is rate limiting, and why is Redis a good fit for implementing it? Redis › Rate Limiting with RedisRedisRate Limiting with RedisBeginner
13How do you implement a basic fixed window rate limiter using Redis's INCR and EXPIRE commands? Redis › Rate Limiting with RedisRedisRate Limiting with RedisBeginner
14What do the basic SET, GET, and DEL commands do in Redis? Redis › Redis CLI & Basic CommandsRedisRedis CLI & Basic CommandsBeginner
15Why is managing memory usage particularly important for Redis compared to a typical disk based database? Redis › Redis Memory OptimizationRedisRedis Memory OptimizationBeginner
16Why is Redis a popular choice for storing web application session data? Redis › Session Management with RedisRedisSession Management with RedisBeginner
17How do you check basic information about a Redis key, such as its data type and remaining time to live? Redis › Redis CLI & Basic CommandsRedisRedis CLI & Basic CommandsIntermediate
18How do you configure and monitor the maxmemory setting in Redis to prevent it from consuming more memory than your server can safely provide? Redis › Redis Memory OptimizationRedisRedis Memory OptimizationIntermediate
19How do you configure a retention period for a Redis time series so old data is automatically removed after a certain amount of time? Redis › RedisTimeSeriesRedisRedisTimeSeriesIntermediate
20How would you design a leaderboard system that resets periodically, such as weekly, while still preserving historical rankings for past periods? Redis › Leaderboards with Sorted SetsRedisLeaderboards with Sorted SetsAdvanced