Caching Flashcards
Is CloudFront an Internal or External Cache
External
Is Elasticache an Internal or External Cache
Internal
Is DAX an Internal or External Cache
Internal
Is Global Accelerator an Internal or External Cache
External
What is CloudFront?
- Its AWS’s CDN (Content Delivery Network)
- Allows is to push content to Edge Location
How is CloudFront related to edge locations?
CloudFront allows us to push content into Edge Locations
Why Consider using CloudFront?
- Defaults to HTTPS
- Allows the use of certificates
- Allows you to put a secure connection on S3 static websites
- Can use it to front non AWS applications
- Can force expiration of content before TTL
Can you pick specific Countries when using Cloud Front? Edge Locations? What can you pick?
Cannot pick countries or edge locaitons. You pick general regions
Why might you use signed URLs or signed cookies?
To restrict access. These are basically temporary access points
How can you add additional security to CloudFront?
You can enable WAF
How do you block connections using CloudFront?
Best way is using Web Application firewall (WAF)
What is ElastiCache?
Its a managed version of Memcached and Redis. it allows you to spin up these two tools easily.
Why might you use Memcached?
- Simple database cache ONLY.
- No typical DB features.
Why might you use Redis?
- Supported as a caching solution
- functions as a standalone database (NoSQL)
- can failover and supports multi-AZ
- supports backups
- Is a good option if DynamoDB isn’t available and you need NOSQL
Can Memcached exist on its own as a database?
No.
What is DAX?
- Dynamo DB Accelerator
- In-Memory Cache
- Go from milliseconds to microseconds
- Lives in a VPC
- Highly available
Can DAX be used for anything else other than DynamoDB?
No.
What is Global Accelerator?
Increases application performance and helps deal with IP caching
Describe how Global Accelerator helps an application
- Global accelerator sits between users and your load balancer and offers two IPs that never change, even if the ELB does.
I say IP Caching you say…
Global Accelerator!
How do you secure access to an Elasticache Redis cluster?
Use the AUTH commant
What are CloudFront Origin Groups for origin failover used for
Designates a primary and secondary origin when the primary returns specific HTTP failures
What methods could you use to increase your cache hit ratio when using CloudFront?
- Increase the TTL longer could mean stale images
- Configure the distribution to forward requests that will return unique objects
- Remove the accept encoding header when compression isn’t needed
- Serve media content using HTTP