A Cantrill - Global Content Delivery and Optimization (CloudFront) Flashcards

1
Q

Does Cloudfront support uploads directly to the CF distribution?

A

CloudFront distributions only support downloads, Uploads of content go only to the origin.

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

Where is Caching and restrict viewer access settings located for CF?

A

CF Behaviors control caching and restricting viewer access.

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

How do you ensure that the load on your origin is lowered in CF?

A

Set CF to get more frequent cache HITS

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

List the Origin Headers available in CF.

A

Cache-Control max-age (seconds)
Cache-Control s-maxage (seconds)
Expires (Date & Time)
Custom Origin or S3 (Via object Metadata)

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

What is the Default TTL in CF?

A

24 hours is the default

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

What is a cache invalidation?

A

A path based (/images/whiskers.jpeg) action performed on a distribution and applies to all edge locations. This takes time to apply.

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

What is the best practice for managing files, objects in CF?

A

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

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

Can ACM (.AWS Cert Manager) be used with EC2?

A

No ACM does NOT support EC2.

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

Where are ACM certs contained to? Within Subnet, within AZ, within Region, globally available?

A

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

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

Where is the CF distribution Region located?

A

CF distrubtions are based in us-east-1. Then the distribution sends content out to each edge location in other regions.

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

For ACM, what region do you select when you want to have a cert for your CF distribution?

A

us-east-1.

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

What are the two SSL based connections in a CloudFront setup?
And which ones need public certificates?

A

Viewer => CloudFront and CloudFront => Origin

Both of these connections need valid public certificated (and intermediate certs)

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

Do self signed certs with CF?

A

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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How do you ensure that viewers only use CF URLs / distributions and do NOT have access to the origins?

A

“Restrict viewer access” - viewers must use CloudFront signed URLs or signed cookies to access your content.

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

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?

A

likely for a Static S3 website origin, “index.html” would be indicated in “default root object” option when creating your distribution.

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

How are CF distributions billed?

A

CF is billed based on invalidations .

17
Q

What AWS service is associated with Origin Access Identities (OAI) in CloudFront?

A

S3 origins can utilize OAI to ensure origins are not accessed directly

18
Q

How are Private CF distros accessed?

A

Private CF is accessed via Signed URLs or Cookies

19
Q

What private access CF method is best for one object?

A

Signed URL gives access to one object only.

20
Q

What is Lambda@Edge?

A

Lambda@Edge allows cloudfront to run lambda function at CloudFront edge locations to modify traffic between the viewer and edge location and edge locations and origins.

21
Q

Whats the difference between CF and Global Accelerator?

A

CF brings content closer to the customer.
Global Accelerator moves the AWS network closer to the customer.

22
Q

Can CloudFront cache dynamic content?

A

CloudFront can cache both static AND dynamic content.

23
Q

What features are used together to ensure S3 buckets can only be accessed via CloudFront?

A

OAI and Bucket Policies.

24
Q

What is a likely issue when requests are missing the CF cache and going directly to the origin?

A

The Cache-Control max-age directive is set to low or zero.

If its set to 0, every request will skip CF and hit the origin.

25
Q
A