CloudFront and AWS Global Accelerator Flashcards
What is CloudFront?
Content delivery system that caches content at the edge for low latency, globally
Can CloudFront be used to ingress data?
Yes, it can be used to ingress data into S3 with transfer acceleration
What are 2 difference between CloudFront and S3 cross region replication?
- CloudFront is easier to set up globally - CRR has to be set up for each region you want replication to occur in
- CF caches files for a specific TTL, whereas CRR is almost real-time updates
How can CloudFront connect to private EC2 instances?
It must pass through an ALB - it does not have direct access to the private instances
How does geo-restriction work in CloudFront?
You create an allowlist and a blocklist, then users’ IPs are cross referenced to find out what country they are in and thus what content they are allowed to access
How do price classes work?
Price classes are separated by what regions and how many regions you want to supply to, e.g. Price class 100 is essentially just Europe and North America
What is a cache invalidation in CloudFront?
A command you’ve issued to manually force a refresh of a path or everything in a cache
Why use a cache invalidation in CloudFront?
If you want to manually refresh the cache because you’ve recently updated cached content and it should/needs to be updated
What is AnyCast IP?
All servers hold the same IP address and the client is routed to the nearest one, e.g. send this letter to “the nearest ice cream shop” - you don’t know where it is but you want it to be sent to the nearest one
What is unicast IP?
One server holds one IP address. Distinctly different/opposite from anycast IP
What is Global Accelerator?
Getting a customer to connect to their nearest edge location and then traversing the AWS network as opposed to the internet
What type of IPs are relevant to Global Accelerator?
AnyCast IPs - the edge locations have static AnyCast IPs so when the customer asks to connect they are simply routed to the closest one
What are 2 differences between Global Accelerator and CloudFront?
- GA content is served from a central location, just faster than if it was over the internet, whereas CF content is served at the edge.
- GA is a better fit for applications whereas CF is for static content