CloudFront Flashcards
What are the possible CloudFront origins?
S3 bucket
EC2 instance
Load Balancer
Route53
How can CloudFront be used?
To deliver dynamic, static, streaming and interactive content. Requests are automatically routed to the nearest edge location which will fetches the content and cache for subsequent requests
What are the types of Distribution?
Web Distribution: websites
RTMP: Media Streaming-Allows the user to begin playing a media file before the media finished downloading
Are Edge Locations read only?
No
What is the lifetime?
Time to Live (TTL) in seconds
Is it possible to invalidate the cache?
Yes, with a charge
How to restrict viewer access?
It can be done with S3 Signed URLs (single file with limited lifetime) or Signed Cookies (multiple files).
CloudFront Signed URL can be filtered by date, path, IP address, expiration, etc
Example: Only Netflix subscribers can view the content. The same for a website with premium content
Is it possible to determine what paths will be cached?
Yes, via distribution settings->Cache Invalidation paths such as /users/*
What are the differences between CloudFront Signed URL vs S3 Signed URL?
CloudFront Signed URL: Will allow the enduser to see the content only. CloudFront will use OAI (object access identity) to impersonate the access to S3 objects).
S3 Signed URL will give the user the same permissions as the IAM user that created the policy;