CloudFront Flashcards
What does CDN stand for??
Content Delivery Network
(Think CloudFront)
- Content Delivery Network (CDN)
- Improves read performance, content is cached at the edge
- Improves users experience
- 216 Point of Presence globally (edge
locations) - DDoS protection (because worldwide), integration with Shield, AWS Web Application Firewall
Amazon CloudFront
What are the 2 type of CloudFront Origins?
S3 Bucket
Custom Origin (HTTP)
CloudFront – Origins -
* For distributing files and caching them at the edge
* Enhanced security with CloudFront Origin Access Control (OAC)
* OAC is replacing Origin Access Identity (OAI)
* CloudFront can be used as an ingress (to upload files to S3)
S3 bucket
CloudFront – Origins -
* Application Load Balancer
* EC2 instance
* S3 website (must first enable the bucket as a static S3 website)
* Any HTTP backend you want
Custom Origin (HTTP)
What is the difference between CloudFront vs S3 Cross Region Replication
CloudFront:
- Global Edge network
- Files are cached for a TTL (maybe a day)
- Great for static content that must be available everywhere
S3 Cross Region Replication
- Must be setup for each region you want replication to happen
- Files are updated in near real-time
- Read only
- Great for dynamic content that needs to be available at low-latency in few regions
What are the different CloudFront – Price Classes
Price Class All
Price Class 200
Price Class 100
CloudFront – Price Classes - all regions – best performance
Price Class All
CloudFront – Price Classes - most regions, but excludes the most expensive regions
Price Class 200
CloudFront – Price Classes - only the least expensive regions
Price Class 100
In case you update the back-end origin, CloudFront doesn’t know about it and will only get the refreshed content after the TTL has expired
However, you can force an entire or partial cache refresh (thus bypassing the TTL) by performing a _____________________
CloudFront – Cache Invalidations
You can force an ________ or ________ cache refresh (thus bypassing the TTL) by performing a CloudFront Invalidation
entire
partial
CloudFront – Cache Invalidations You can invalidate ________ or a ________
all files ()
special path (/images/)
- Leverage the AWS internal network to route to your application
- 2 Anycast IP are created for your application
- The Anycast IP send traffic directly to Edge Locations
- The Edge locations send the traffic to your application
AWS Global Accelerator
What does AWS Global Accelerator work with??
Elastic IP
EC2 instances
ALB
NLB
public or private