Advertisement
Advanced AWS, Amazon ElastiCache (Redis & Memcached)

How can ElastiCache be secured within a VPC, and what encryption options are available?

Short answer

ElastiCache clusters are deployed within a VPC and can be restricted using security groups so only specific application servers or subnets can connect, and Redis clusters additionally support encryption in transit using TLS and encryption at rest for stored data, along with…

Save AWS mock interview
Advertisement
AModel answer
ElastiCache clusters are deployed within a VPC and can be restricted using security groups so only specific application servers or subnets can connect, and Redis clusters additionally support encryption in transit using TLS and encryption at rest for stored data, along with Redis AUTH tokens that require a password before any client can execute commands against the cluster.
Example

aws elasticache create-replication-group --replication-group-id secure-cache --engine redis --transit-encryption-enabled --at-rest-encryption-enabled --auth-token 'MySecurePassword123'

Real-world example
A healthcare application enables both encryption in transit and encryption at rest on its Redis cluster, along with an AUTH token requirement, satisfying strict compliance requirements for handling sensitive patient session data.
Likely follow-ups
  • Does Memcached support the same encryption features as Redis?
  • How do you rotate a Redis AUTH token without downtime?
Related topics