A Cantrill - Global Content Delivery and Optimization (CloudFront) Flashcards
Does Cloudfront support uploads directly to the CF distribution?
CloudFront distributions only support downloads, Uploads of content go only to the origin.
Where is Caching and restrict viewer access settings located for CF?
CF Behaviors control caching and restricting viewer access.
How do you ensure that the load on your origin is lowered in CF?
Set CF to get more frequent cache HITS
List the Origin Headers available in CF.
Cache-Control max-age (seconds)
Cache-Control s-maxage (seconds)
Expires (Date & Time)
Custom Origin or S3 (Via object Metadata)
What is the Default TTL in CF?
24 hours is the default
What is a cache invalidation?
A path based (/images/whiskers.jpeg) action performed on a distribution and applies to all edge locations. This takes time to apply.
What is the best practice for managing files, objects in CF?
Use versioned file names. This way your application can manage which version of a file or object that you want the end user to see
Can ACM (.AWS Cert Manager) be used with EC2?
No ACM does NOT support EC2.
Where are ACM certs contained to? Within Subnet, within AZ, within Region, globally available?
ACM certs cannot leave the region they and generated or imported in.
To use a cert with an ALB in ap-southeast-2 you need a cert in ACM in ap-southeast-2
Where is the CF distribution Region located?
CF distrubtions are based in us-east-1. Then the distribution sends content out to each edge location in other regions.
For ACM, what region do you select when you want to have a cert for your CF distribution?
us-east-1.
What are the two SSL based connections in a CloudFront setup?
And which ones need public certificates?
Viewer => CloudFront and CloudFront => Origin
Both of these connections need valid public certificated (and intermediate certs)
Do self signed certs with CF?
No, self signed certs do not work. Only publicly valid certs are compatible with CF.
Certificates issued by a trusted Certificate Authority(CA) such as Comodo, DigiCert, Symantic or ACM.
How do you ensure that viewers only use CF URLs / distributions and do NOT have access to the origins?
“Restrict viewer access” - viewers must use CloudFront signed URLs or signed cookies to access your content.
If your origin is a static S3 website for your CF distribution, what option do you select to ensure that the default path is set ? and what value would likely be used?
likely for a Static S3 website origin, “index.html” would be indicated in “default root object” option when creating your distribution.