CloudFront Flashcards

1
Q

What are the possible CloudFront origins?

A

S3 bucket
EC2 instance
Load Balancer
Route53

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How can CloudFront be used?

A

To deliver dynamic, static, streaming and interactive content. Requests are automatically routed to the nearest edge location which will fetches the content and cache for subsequent requests

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the types of Distribution?

A

Web Distribution: websites

RTMP: Media Streaming-Allows the user to begin playing a media file before the media finished downloading

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Are Edge Locations read only?

A

No

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the lifetime?

A

Time to Live (TTL) in seconds

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Is it possible to invalidate the cache?

A

Yes, with a charge

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How to restrict viewer access?

A

It can be done with S3 Signed URLs (single file with limited lifetime) or Signed Cookies (multiple files).
CloudFront Signed URL can be filtered by date, path, IP address, expiration, etc
Example: Only Netflix subscribers can view the content. The same for a website with premium content

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Is it possible to determine what paths will be cached?

A

Yes, via distribution settings->Cache Invalidation paths such as /users/*

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the differences between CloudFront Signed URL vs S3 Signed URL?

A

CloudFront Signed URL: Will allow the enduser to see the content only. CloudFront will use OAI (object access identity) to impersonate the access to S3 objects).
S3 Signed URL will give the user the same permissions as the IAM user that created the policy;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly