Interview › Databases & Caching
How do you secure Redis (AUTH, TLS, network isolation, no public exposure)?
Databases & Caching · Advanced level
Answer
Redis security starts with private networking, no public exposure, security groups, TLS, AUTH or ACLs, least-privilege users, secret rotation, and blocking dangerous commands for application users.
Technical explanation
Network isolation is the first control: Redis should not be public.
AUTH/ACLs limit what application users can do, including blocking admin commands.
TLS, secret rotation, security groups, and private subnets complete the baseline.
Hands-on example
Security baseline:
Private subnets only.
Security group allows 6379 only from app SG.
Transit encryption enabled.
App ACL allows GET/SET but denies FLUSHALL/CONFIG.
Secret stored in Secrets Manager and rotated.
Check how well your resume matches the role with our free resume checker— match score, ATS check, and the skills you're missing.
More Databases & Caching interview questions
- How would you use Redis for distributed locking, and what are the caveats?
- How would you use Redis for rate limiting?
- What is the difference between Redis as a cache and Redis as a primary datastore?
- Why are some Redis commands (KEYS, FLUSHALL) dangerous in production?
- How do you decide what to cache and what not to cache?
- How do you handle cache warming after a restart or failover?
- What is the blast radius of a cache outage, and how do you make the app degrade gracefully?
- What is a cache hit ratio, and how do you improve it?