Q3 Redis Domain 2 · 25–30% of exam Priority · Real Exam

For a session store, which combination provides automatic idle expiry?

  1. A SET with EX and refreshing the TTL on each access (correct answer)
  2. B PERSIST after each write
  3. C LPUSH with LTRIM
  4. D ZADD with the expiry as score

Shortcut: Setting a TTL and re-issuing EXPIRE on access implements a sliding idle timeout, so sessions expire only after a period of inactivity.