Expiration & Eviction interview questions

18 Expiration & Eviction questions from the Redis bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.

Free to start: the 2-minute IT readiness check — six questions and a result.

Take the free IT readiness check

or take a mock interview set up for this area

1. What is Time to live?

Junior
  1. A.an eviction policy that discards the least recently used key from the entire keyspace when memory is exhausted
  2. B.the remaining lifespan of a key after which it is automatically removed, set in seconds or milliseconds
  3. C.a periodic background sampling that proactively deletes keys whose lifespan has lapsed to reclaim memory
  4. D.the configured upper bound on dataset size that, once reached, triggers a policy to reclaim space or reject writes

Answer + AI explanation with Pro

2. Which term means: "the remaining lifespan of a key after which it is automatically removed, set in seconds or milliseconds"?

Junior
  1. A.Time to live
  2. B.Lazy expiration
  3. C.Active expiration
  4. D.allkeys-lru

Answer + AI explanation with Pro

3. Which statement is correct?

Junior
  1. A.Time to live — an eviction policy that discards the least recently used key from the entire keyspace when memory is exhausted
  2. B.Time to live — the remaining lifespan of a key after which it is automatically removed, set in seconds or milliseconds
  3. C.Time to live — a periodic background sampling that proactively deletes keys whose lifespan has lapsed to reclaim memory
  4. D.Time to live — an eviction strategy that discards keys accessed the fewest times, approximating popularity rather than recency

Answer + AI explanation with Pro

4. What is Lazy expiration?

Junior
  1. A.an eviction strategy that discards keys accessed the fewest times, approximating popularity rather than recency
  2. B.the configured upper bound on dataset size that, once reached, triggers a policy to reclaim space or reject writes
  3. C.the removal of an expired key only when it is next accessed, rather than at the exact moment it lapses
  4. D.an eviction policy that discards the least recently used key from the entire keyspace when memory is exhausted

Answer + AI explanation with Pro

5. Which term means: "the removal of an expired key only when it is next accessed, rather than at the exact moment it lapses"?

Junior
  1. A.maxmemory
  2. B.Time to live
  3. C.Lazy expiration
  4. D.Least frequently used policy

Answer + AI explanation with Pro

6. Which statement is correct?

Junior
  1. A.Lazy expiration — a periodic background sampling that proactively deletes keys whose lifespan has lapsed to reclaim memory
  2. B.Lazy expiration — the configured upper bound on dataset size that, once reached, triggers a policy to reclaim space or reject writes
  3. C.Lazy expiration — an eviction policy that discards the least recently used key from the entire keyspace when memory is exhausted
  4. D.Lazy expiration — the removal of an expired key only when it is next accessed, rather than at the exact moment it lapses

Answer + AI explanation with Pro

7. What is maxmemory?

Mid
  1. A.the removal of an expired key only when it is next accessed, rather than at the exact moment it lapses
  2. B.an eviction policy that discards the least recently used key from the entire keyspace when memory is exhausted
  3. C.an eviction strategy that discards keys accessed the fewest times, approximating popularity rather than recency
  4. D.the configured upper bound on dataset size that, once reached, triggers a policy to reclaim space or reject writes

Answer + AI explanation with Pro

8. Which term means: "the configured upper bound on dataset size that, once reached, triggers a policy to reclaim space or reject writes"?

Mid
  1. A.maxmemory
  2. B.Lazy expiration
  3. C.allkeys-lru
  4. D.Least frequently used policy

Answer + AI explanation with Pro

9. Which statement is correct?

Mid
  1. A.maxmemory — a periodic background sampling that proactively deletes keys whose lifespan has lapsed to reclaim memory
  2. B.maxmemory — the removal of an expired key only when it is next accessed, rather than at the exact moment it lapses
  3. C.maxmemory — the configured upper bound on dataset size that, once reached, triggers a policy to reclaim space or reject writes
  4. D.maxmemory — the remaining lifespan of a key after which it is automatically removed, set in seconds or milliseconds

Answer + AI explanation with Pro

10. What is Active expiration?

Mid
  1. A.the configured upper bound on dataset size that, once reached, triggers a policy to reclaim space or reject writes
  2. B.a periodic background sampling that proactively deletes keys whose lifespan has lapsed to reclaim memory
  3. C.an eviction policy that discards the least recently used key from the entire keyspace when memory is exhausted
  4. D.the remaining lifespan of a key after which it is automatically removed, set in seconds or milliseconds

Answer + AI explanation with Pro

11. Which term means: "a periodic background sampling that proactively deletes keys whose lifespan has lapsed to reclaim memory"?

Mid
  1. A.maxmemory
  2. B.Least frequently used policy
  3. C.Active expiration
  4. D.allkeys-lru

Answer + AI explanation with Pro

12. Which statement is correct?

Mid
  1. A.Active expiration — the remaining lifespan of a key after which it is automatically removed, set in seconds or milliseconds
  2. B.Active expiration — a periodic background sampling that proactively deletes keys whose lifespan has lapsed to reclaim memory
  3. C.Active expiration — an eviction strategy that discards keys accessed the fewest times, approximating popularity rather than recency
  4. D.Active expiration — the removal of an expired key only when it is next accessed, rather than at the exact moment it lapses

Answer + AI explanation with Pro

13. What is allkeys-lru?

Senior
  1. A.the configured upper bound on dataset size that, once reached, triggers a policy to reclaim space or reject writes
  2. B.a periodic background sampling that proactively deletes keys whose lifespan has lapsed to reclaim memory
  3. C.an eviction policy that discards the least recently used key from the entire keyspace when memory is exhausted
  4. D.the removal of an expired key only when it is next accessed, rather than at the exact moment it lapses

Answer + AI explanation with Pro

14. Which term means: "an eviction policy that discards the least recently used key from the entire keyspace when memory is exhausted"?

Senior
  1. A.Active expiration
  2. B.Time to live
  3. C.Least frequently used policy
  4. D.allkeys-lru

Answer + AI explanation with Pro

15. Which statement is correct?

Senior
  1. A.allkeys-lru — a periodic background sampling that proactively deletes keys whose lifespan has lapsed to reclaim memory
  2. B.allkeys-lru — an eviction strategy that discards keys accessed the fewest times, approximating popularity rather than recency
  3. C.allkeys-lru — an eviction policy that discards the least recently used key from the entire keyspace when memory is exhausted
  4. D.allkeys-lru — the configured upper bound on dataset size that, once reached, triggers a policy to reclaim space or reject writes

Answer + AI explanation with Pro

16. What is Least frequently used policy?

Senior
  1. A.the remaining lifespan of a key after which it is automatically removed, set in seconds or milliseconds
  2. B.the configured upper bound on dataset size that, once reached, triggers a policy to reclaim space or reject writes
  3. C.an eviction strategy that discards keys accessed the fewest times, approximating popularity rather than recency
  4. D.the removal of an expired key only when it is next accessed, rather than at the exact moment it lapses

Answer + AI explanation with Pro

17. Which term means: "an eviction strategy that discards keys accessed the fewest times, approximating popularity rather than recency"?

Senior
  1. A.Least frequently used policy
  2. B.maxmemory
  3. C.Active expiration
  4. D.Time to live

Answer + AI explanation with Pro

18. Which statement is correct?

Senior
  1. A.Least frequently used policy — the remaining lifespan of a key after which it is automatically removed, set in seconds or milliseconds
  2. B.Least frequently used policy — an eviction policy that discards the least recently used key from the entire keyspace when memory is exhausted
  3. C.Least frequently used policy — an eviction strategy that discards keys accessed the fewest times, approximating popularity rather than recency
  4. D.Least frequently used policy — the removal of an expired key only when it is next accessed, rather than at the exact moment it lapses

Answer + AI explanation with Pro

Free to start

Start with a free readiness check

Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every Expiration & Eviction question come with Pro.

Take the free IT readiness check

or take a mock interview set up for this area

24,000+ questions & coding problemsSoftware & IT16,274 questionsGovernment jobs26 examsAptitudenew questions every timeAI practice interviewwith feedback65 topics to practiseMechanical1,149 questionsGATE ME9 papersEngineering Mathematics381 questions2-minute checkfreeDSA Problems1,422Civil1,005 questionsGATE CE9 papersCS Fundamentals1,209 questionsYour scores6 skillsSystem Design25Electrical / EEE1,047 questionsGATE EE9 papersRun your codeC++ · Java · PythonLow-Level Design144Electronics & Comm.975 questionsGATE EC9 papersAI help on every questionFull-Stack6,282Chemical1,005 questionsGATE CH9 papersAI whiteboardsystem designWork abroadEurope · remote · transfersESE ME1 paperGATE practice papers2019–2026ESE CE1 paperDate alertsbefore the last dateESE EE1 paperBehavioural courseHR round practiceESE ET1 paperResume optimizerProSSC JE ME1 paperApplication trackerSSC JE CE1 paperCompany-wise prepSSC JE EE1 paperRole roadmapsRRB JE1 subjectPriced in ₹UPI · cardsISRO SC1 paperGATE CS9 papersIBPS SO IT1 paperUGC NET CS1 paperSSC CGL26 papersIBPS PO26 papersRRB NTPC26 papersSSC CHSL26 papersIBPS Clerk26 papersSBI Clerk26 papersRRB Group D26 papersSSC CPO26 papersSSC GD26 papers