AWS Cloudfront Flashcards
What is a AWS CloudFront?
CloudFront is a CDN but has extra functionality for dynamic content, RTMP and security such as geo-restriction..
I need to mitigate DDOS attacks, is AWS CloudFront good mitigation and why?
Yes, it is because AWS CF has the ability to scale and AWS filters traffic the is not legit.
I have an API and I want to provide caching for this API and also get the benefit of improving global performance, what options do I have?
Use CloudFront as it has the ability to deal with caching dynamic content from an origin, this includes API. The way it works is you set the TTL to 0, CF will perform a head request with the origin to know if the content has changed, if not it will serve the cached content if the content has changed them CF will do a get.
What types of video stream can CF deal with?
On-demand
Pre-recorded
Live streaming
From a video streaming perspective, what is the advantage of using CF.
You push the streaming content need the edge and users.
How can I secure the content delivery by CloudFront?
- Signed URL’s
- Signed Cookies (Use Set_Cookie in request header)
I am using HSL with CF, can I use signed URLs?
No, signed URLs are only good for static content, HLS is mead up of chunks and the viewer app has to keep requestion new chunks ever say 5sec, use signed cookies is the correct method.
My company is using RTMP file and I want to make them available to users globally, what is my best option?
You can use s3 as the origin and CF to bring the content to the edge near the user, RTMP is supported for video streaming.
I have an s3 origin and I request with HTTP, what will the CF to S3 be?
It will be HTTP as when s3 is the origin, protocol is matched. HTTP = HTTP and HTTPs = HTTPs
I have an EC2 instance that accepts HTTP only, this is fronted by CF and the user requests HTTPS, what will happen?
Id HTTP only option on CF is set up the request will be sent to the origin as HTTP.
I would like to server content for several origins, is this possible with CF?
Yes CF supports multiple origins.
Can I have an on-prem as an origin for Cloudfront?
yes, you can point CF anywhere.
can I invalidate CDN cache object or even everything?
Yes
can I use my own SSL?
yes
can I have custom error images?
yes?
what HTTP methods are cached?
get
head
options
For dynamic CF content, what does TTL 0 do?
If set to 0, CF will send a head request to see if anything in the content has changed, if it has then CF does a GET and stores the content.
We want people from all around the world to upload files to our EC2 instances?
Use CF as it will allow upload and will send to EC2 over AWS backbone.
Can we have CF send us to different origins based on the calling device?
Yes
I have an S3 bucket that I want to use with CF to distribute the file, but I do not what users to be able to access directly with s3, what options do I have with CF?
Use origin access identity, this ensures CF is able to access the bucket.
What is a multi-region CF origin design?
This is where we have multiple regions act as a origin for CloudFront.
Can I use DNS names with CF?
Yes, you cna have CF look up any domain and where you use Route53, I can then have Route53 deliver based on latency-based routing.
I want to use latency based routing with CF, what are my options.
You can point your CF CDN at route53 zone with latency based routing set up.
With regard to cloudfront, what are the network benefits?
It reduces the number of hops