CloudFront Flashcards
If you create a CloudFront distribution, push out data, update isn’t showing up correctly, how to fix it?
Create an invalidation
Possible CloudFront origins
S3
EC2
ELB
Route53
In CloudFront how to restrict an individual file?
Use Signed URL
In CloudFront how to give users certain permissions to access multiple files?
Signed Cookie
Ex. A Cloud Guru (premium and basic accounts can access different files)
How to use Signed URLs and Cookies in CloudFront?
Attach a policy (can have URL expiration, IP Ranges, Trusted signers (which AWS accounts can create signed URLs))
Then can use CloudFront SDk in app to generate signed URL which is returned back to client
What is used between CloudFront and S3 or Signed URLs and Cookies?
OAI
Where are signed URl key pairs managed CloudFront?
Root Account
Can you clear the cache yourself in CloudFront?
Yes, but you will be charged
2 types of edge location collections for CloudFront
1) Web Distribution
2) RTMP
Max TTL for CloudFront
365 days
What does it mean if you receive a 5XX error?
server-side error
What does it mean when you receive a 4XX error
client-side error
How to customize content CloudFront delivers, or use signed URLs or signed cookies
Lambda@Edge
How to restrict certain countries from accessing content from CloudFront?
Whitelist for countries that can access content.
Blacklist for countries that are not allowed to access content.
How to set up HTTPS communication with viewers using ELB and CloudFront
- Set up Viewer Protocol Policy to use Redirect HTTP to HTTPS
- Set Viewer Protocol Policy to use HTTPS Only