Caching Flashcards

1
Q

Why do we use caches?

A

To place content closer to end users

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

What 2 places do you place caches?

A
  1. External - to end users like images, videos, static content
  2. Internal - in front of a database for reads
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is Cloudfront?

A

Content delivery network for external caching for placing resources globally using AWS Edge Location

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

What are 4 caching services?

A
  1. CloudFront
  2. ElastiCache
  3. DAX
  4. Global Accelerator
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Why use CloudFront? 4 things

A
  1. Enables default HTTPS for your content
  2. Secure connection for S3 static websites
  3. Can be used for non-AWS (on-prem) applications
  4. Can force an expiration on cached content
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a major restrictions on CloudFront?

A
  1. You can’t really block specific countries, you should use WAF instead, as restriction is by general geographies
  2. You can’t pick specific Edge Locations for caching, its either all locations or specific geographies
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Can you use Presigned URLS or Cookies?

A

Yes you can give temporary access content using presigned urls/cookies with CloudFront

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

What are the 2 SSL options with CloudFront?

A

You can use a default ssl certificate or give a custom ssl certificate with your own domain name to be used with CloudFront

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

What is ElastiCache?

A

AWS Managed caching service using Redis or Memcached

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

Can Redis be used as a database?

A

Yes Redis can be a standalone NOSQL database as well as a caching solution

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

What are the 4 difference between Redis and Memcached?

A
  1. Redis provides more complex caching solution vs simpler caching
  2. Redis can be standalone db vs. just a caching solution
  3. Redis has failover and MultiAZ vs none of these
  4. Redis has backups vs no backups
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is DAX?

A

DynamoDB Accelerator, in memory caching for milliseconds down to microseconds

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

What location is DAX located?

A
  1. Lives in a VPC you choose
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are 2 benefits of DAX other than the reduced latency?

A
  1. It is HA

2. Has lots of configurations for you

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

WHat is GLobal Accelerator?

A

Uses AWS global network (Edge locations) to help increase performance

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

How do you solve the issues of IP Caching by end users?

A

You can uses Global Accelerator

17
Q

How does GLobal Accelerator solve IP Caching?

A

It gives 2 static ips to end users, and Global Accelerator sits between end users and the ELB

18
Q

What are 3 benefits of Global Accelerator?

A
  1. Gives 2 static ip’s that mask any architecture changes behind
  2. Speeds up network traffic due to Edge Locations AWS backbone
  3. Weighted pools with different endpoints to provide failover or A/B testing
19
Q

Do you have to use the 2 static IP’s from AWs? for Global Accelerator

A

No, you can bring your own custom ip’s

20
Q

IF you see in memory databse on exam what should you pick? favor which of them?

A
  1. Redis and DyanmoDB

2. Favor DynamoDB

21
Q

Does DAX have backups?

A

No it does not, it is not a database solution