Caching Flashcards

1
Q

External caching

A

cache data that’s going to be returned to users (images, videos, static content)

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

Internal caching

A
  • used to speed up databases

- The less we talk to the database, the better

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

What do caches help with?

A

Speed. Put them everywhere, and favor answers that use a cache.

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

CloudFront for caching

A
  • External cache
  • CDN
  • improves delivery times by delivering data, apps, APIs to edge locations globally to reduce latency
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What kind of cache is ElastiCache?

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

Global Accelerator as a Cache

A

speeds up external connections

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

How can you put a secure connection on S3 static websites?

A

CloudFront

  • attach a custom SSL certificate
  • or create signed URLs or signed cookies
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Is CloudFront global distribution used for blocking or picking countries?

A

No, you can only pick continents (use WAF instead)

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

How do you block individual countries?

A
  • Use WAF

- CloudFront is only good at continents

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

CloudFront TTL

A

Time to live expiry for content expiration

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

For the exam, how can you solve every sort of external customer performance issue?

A

Put CloudFront in front of the application

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

What is the main purpose of CloudFront edge locations?

A

Speed

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

Can you do CloudFront on-prem?

A

Yes. On-Prem and AWS.

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

Can you pick a specific edge location?

A

No

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

What is ElastiCache?

A

a managed version of two open source technologies:

  • memcached
  • redis

it sits in front of a relational database

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

Memcached

A
  • simple database caching solution
  • not a database by itself
  • no failover
  • single AZ
  • no backups
17
Q

Redis

A
  • supported as a caching solution
  • standalone NoSQL db
  • failover support
  • can be multi-AZ
  • supports backups*
18
Q

Dynamo DB Accelerator (DAX)

A

Can reduce Dynamo DB response times from milliseconds to microseconds.

  • highly available
  • lives inside a VPC you specify
  • you determine node size & count, TTL for data, and maintenance windows
19
Q

Which caching solution can be a standalone DB with multi-AZ and backups?

A

Redis

20
Q

How do you fix IP caching?

A

Global Accelerator - it allows users to use the same 2 static IP addresses for the Elastic Load Balancer (even if they change behind the scenes)

21
Q

Weighted Pools

A

Global Accelerator feature - you can create weighted groups behind IPs to test out new features or handle failure in your environment

22
Q

Caching Exam tips - Questions to ask?

A

1) Can it be cached?
2) Will it benefit this architecture?
3) How does content in the cache get updated (TTLs)
4) Does the caching help with anything other than speed?

23
Q

Cases where caching helps with more than just speed

A
  • CloudFront + WAF -> Security

- Global Accelerator -> IP Caching fix

24
Q

What is the only option for adding HTTPS to a static website being hosted by S3?

A

CloudFront

25
Q

When you see “in memory DB” what do you think of?

A

a NoSQL option like Redis or DynamoDB

26
Q

If asked to pick between Redis or DynamoDB

A

Pick DynamoDB