AWS Elasticache Flashcards

1
Q

What are the two in memory caches supported by AWS?

A

Redis and MemcacheD

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

I am developing a web application and require a service to be able to store my session state, what options do I have?

A

You can use Redis or MemcacheD, both are supported through AWS ElasticCache. Elastic cache services is a managed service that enables the deployment of the node (Memcached) or a Redis cluster. These node’s/clusters are managed by AWS.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

I have a database that has very heavy reads and we are having performance issues, what options do I have?

A

Use AWS ElasticCache to offload some of the reads.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Where is the best place to store session state?

A

A cache like ElasticCache as it is in memory, so it is fast to retrieve. Other advantage here is the session information is available to any of the nodes that require. DynamoDB is also said by AWS to be good for session state.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Is ElasticCache transparent when used with databases such as DynamoDB, RDS, etc?

A

No, its an app level service, the app has to use the cache.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

I require the storing of complex cached data from a database (lists), what is my best caching option?

A

Use Redis as Memcache only supports key, value pairs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

I need cache where I cna back up and restore, what is my best option?

A

Redis supports backup and restore

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

I need a pub/sub interface for cache, what is my best option?

A

Redis, Memcached is only for simple

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How is Redis using the backup and restore?

A

Because it takes time to restore data in a cache, this happens as people call the cache. It is sometimes required to save off a backup of the current cache so it can be restored at a later time.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

I need a cache with failover ability, what is my best option?

A

Redis

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

I need cached transaction support, what is my best option?

A

Redis

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

I need support for geo-spacial in my cache, what is my best option?

A

Redis

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

I need a MultiAZ cache, what is my best option?

A

Redis

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

I require a horizontally scaled cache, what is my best option?

A

Redis

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

I have a database frontend that is currently having issues with performance, the number of reading requests hitting the database is very large and this is causing performance issues, what services in AWS can I use to help with this issues? (you can edit the application code)

A

Options
- Virtual scale (Increase size of instance)
- Horizontal scale (Scale our instances)
- Use a cache like ElasticCache
- Possible use CloudFront
We first enable CloudFront, then we focus on the chnaging code in our app to use ElasticCache.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

We are thinking we need a cache of some kind, we need fast data access with strong durability, is ElasticCache a good fit?

A

No, DynamoDB is a better fit.

17
Q

Is ElasticCache a regional or global service?

A

Regional

18
Q

Can I use AWS to backup my ElastirCahce- MemcacheD?

A

No, ElasticCache-MemcacheD has no option to be backed up, but if you were using Redis then this would be an option.

19
Q

Has an ElasticCache-Redis clustered a parameter group?

A

Yes, this enables you to set parameters on the ElasticCache-Redis cluster.

20
Q

When creating a ElasticCache-Redis clustered, I wnat to seed it with data, how cna I do this?

A

I can load it from an RDB file form S3.

21
Q

How is ElasticCache priced?

A
  • VM instance
  • Data out
  • Backup (S3)
22
Q

How many AWS ElasticCached node in a MemcachedD cluster?

A

0ne

23
Q

What happens to a ElasticCached-MemecachedD node when the node or AZ fails?

A

The node has its health monitored and the node is replaced if it fails.

24
Q

I use ElasticCache Redis with my application, I note the number of reads going to my single Redis node is creating performance issue, how can I solve this?

A

You can create up to five read replicas.

25
Q

I have a project for processing financial transactions, it needs to be PCI compliant, I am architecting to use ElasticCache, is elastic Cache PCI compliant?

A

No.

26
Q

I have a project for processing health data, it needs to be PCI HIPPA, I am architecting to use ElasticCache, is elastic Cache PCI compliant?

A

No