CloudFront CDN Lab Flashcards
Can you have multiple origins per distribution?
Yes
Create a web distribution if you want to:
Speed up distribution of static and dynamic content, for example, .html, .css, .php, and graphics files.
Distribute media files using HTTP or HTTPS.
Add, update, or delete objects, and submit data from web forms.
Use live streaming to stream an event in real time.
Create an RTMP distribution…
…to speed up distribution of your streaming media files using Adobe Flash Media Server’s RTMP protocol
For web distributions, what can be the origin of your files?
either an Amazon S3 bucket or a web server
After you create the web distribution, can you add more origins?
Yes
With an RTMP distribution, can you play a media file before the file has finished downloading from a CloudFront edge location?
Yes
For RTMP distributions, what can be the origin of your files?
an Amazon S3 bucket
To use CloudFront live streaming…
…create a web distribution
Origin Domain Name
name of the bucket or webserver
Can you have on-premise origins?
Yes
Origin Path
way of adding multiple subfolders in the origin (pictures, videos, etc)
Origin ID
name of the origion
Restrict Bucket Access
Yes or No, example: stop people from using s3 bucket url so that they use CloudFront instead
If you decide to restrict bucket access…
…you need to create an Origin Access Identity (OAI)
What is an Origin Access Identity?
a user. can add permissions to that user
If you do not update the bucket policy to Grant Read Permissions…
…you will have to manually update the permissions yourself
Path Pattern
allows us to set different origin servers
Which HTTP methods are cached by default?
GET, HEAD
If you have objects that constantly need to change (e.g. every 12 hours)…
…decrease the TTL
What is meant by Restrict Viewer Access?
Viewers have to use signed URLs or signed cookies
Restrict Viewer Access use case
If you have content you want to restrict to a certain audience, e.g. A Cloud Guru, it checks to make sure users have signed URLs or cookies (ie if users paid)
Signed URLs/cookies are…
…private
How are you going to secure CloudFront or secure objects in S3 to make sure only paying customers use it?
Always use signed URLs or signed cookies
AWS WAF Web ACL
…Layer 7 protection, so WAF operates at the application layer. Protects against SQL injection, cross-site scripting
Default CloudFront Certificate (*.cloudfront.net)
Choose this option if you want your users to use HTTPS or HTTP to access your content with the CloudFront domain name (such as https://d111111abcdef8.cloudfront.net/logo.jpg).
Custom SSL Certificate (example.com)
Choose this option if you want your users to access your content by using an alternate domain name, such as https://www.example.com/logo.jpg.
If you need to prevent users in selected countries from accessing your content…
…you can specify either a whitelist (countries where they can access your content) or a blacklist (countries where they cannot)
Can you have both a whitelist and a blacklist simultaneously?
No
Invalidating objects…
… removes them from CloudFront edge caches. there is a charge
T/F: You can use CloudFront to download and upload files.
True