AWS Cloudfront Flashcards
(16 cards)
AWS CloudFront
Content Delivery Network, improves read performance, content cached at edge locations
What is the difference between CloudFront and S3 Cross Region Replication?
Cloudfront is good for static content that must be available everywhere, S3 Cross Region Replication is good for dynamic content that needs to be available at low latency in a few regions (must be setup for each region)
CloudFront Cache Key
Unique identifier for every object in the cache
Cache Policy
Cache can be based on:
- HTTP headers
- Cookies
- Query strings
True or false? All HTTP headers, cookies, and query strings that you include in the Cache Key are automatically included in origin requests
True
Origin Request Policy
Specify values you want to include in origin requests without including them in the Cache Key
CloudFront Cache Invalidation
Force and entire or partial cache refresh (bypassing TTL), can invalidate all files (*) or a special path eg. add new images to S3 bucket and want it to be seen immediately
VPC Origins
Allows you to deliver content from applications in VPC private subnets e.g ALB, NLB, EC2
CloudFront Geo Restriction
Restrict who can access your distribution via allow list / block list
CloudFront Signed URL
Allow access to a path no matter the origin, leverage caching features
CloudFront Signed URL process
Create trusted key group, private key is used by applications to sign URLs, public key used by CloudFront to verify URLs
True or false? Cost of data out is different for different edge locations?
true, eg. India is more expensive than US
CloudFront multiple origin
Route to different origins based on content type eg. api goes to ALB, others go to S3 bucket
CloudFront Origin groups
one primary and one secondary origin - if primary origin fails, second one is used
Field level encryption
Adds additional security along with HTTPS, data encrypted at edge location with public key and decrypted using private key at web server
CloudFront real time logs
Logs sent to Kinesis Data Streams for monitoring and analysis