Global Content Delivery and Optimization Flashcards

1
Q

CloudFront

A

content delivery network improves the delivery of the content to viewers using caching and a global network

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

Cloud Front Origin

A

the source location of your content

can be S3 origin or a custom origin (anything publicly routable)

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

CloudFront Distribution

A

The configuration unit of Cloudfront

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

CloudFront Edge Location

A

local cache of you data

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

CloudFront Regional Edge Cache

A

Larger version of an edge location. Provides another layer of caching.

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

Is CloudFront capable of read and write caching ?

A

No only does read caching uploads goes directly to origin

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

CloudFront Behaviors

A

control much of the TTL, protocol and privacy settings within CloudFront

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

How may behaviors can a distribution have?

A

a distribution can have many behaviors and one default behavior

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

How do behaviors work ?

A

for any request that are incoming to an edge location they are pattern matched against any behaviors for that distribution using the path pattern

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

CloudFront TTL

A

defined in the behavior default 24hr validity

you can also set min TTL and max TTL

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

Per Object TTL Values

A

if you don’t specify an object TTL the default one attached in the behavior is used

origin can direct Cloudfront to used object specific TTL Values via headers

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

What are some of the headers that can be used to set an object TTL values ?

A

origin header: cache-control max-age(seconds)

Origin Header: cache-control s-maxage(seconds)

Origin Header: Expires (Date & Time)

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

Invalidation

A

performed on a distribution

applies to all edge Location.. takes time

Done by pattern matching Example:

/images/whiskers1.jpg - invalidates 1 item

/Images/*- invalidates all items in the images path

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

Version names in with Invalidations

A

Versioning can help if your performing to many invalidations you can upload an item with a new version which wouldn’t require a invalidation

you would just point your application to the new object version

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

How are you charged for invalidations ?

A

cost the same no matter how many objects are invalidated

should be though of as a way to correct errors

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

AWS Certificate Manager

A

Allows you to create renew and deploy certificates to supported AWS services like cloudFront or application load balancers (Not EC2)

you create a certificate and ACM manages the automatic renews

17
Q

HTTPS

A

HTTP - simple and insecure

HTTPS- SSL/TLS Layer of Encryption added to HTTP

Data is encrypted in-transit

certificates prove identity

signed by a trusted authority

18
Q

Is SSL always supported in CloudFront ?

A

cloud front Default Domain Name(CNAME)

SSL supported by default if using CNAME .. *.cloudfront.net

19
Q

Explain the process of using your a custom CNAME name with your CloudFront Distribution ?

A

allowed using the Alternate Domain Names feature

once the names are added and active you can point that custom name at your CloudFront Distribution using a DNS provider like Route53

20
Q

CloudFront SNI mode

A

historically every SSL enabled site need it’s own IP

Encryption starts at the TCP connection Host header happens after that - Layer 7 // Application

SNI is a TLS extension, allowing a host to be included

to operate in SNI mode it’s free

21
Q

CloudFront Without SNI mode

A

old browsers don’t support SNI CF charges extra for dedicated IP

600 per month per distribution

22
Q

Origin Access identity

A

Allows you to give CloudFront a virtual identity to access the S3 Origin

only available with S3 Origin

23
Q

Origin Protocol policy For origins

A

for s3 origin the protocol is match by default

for custom s3 origin the protocol can be HTTP, HTTPS, and Match Viewer

24
Q

S3 using OAI

A

only available through a s3 origin

An OAI is a type of identity

it can be associated with CloudFront distributions CloudFront ‘becomes ’ that OAI

OAI can be used in s3 Bucket Policies

Deny all But one or more OAI’s

25
Q

What is the benefit of associating an OAI with a distribution?

A

once OAI is associated with the distribution accesses are From the OAI

(Origin Access identity)

26
Q

How would you secure Custom Origins ?

A

create a custom header

you can require an custom Header and enable HTTPS for both sides the viewer and origin securing your header because HTTPS is an encrypted tunnel

you can also create a custom firewall to prevent any IPs that don’t match AWS CloudFront

27
Q

Lambda@Edge

A

you can run lightweight lambda at edge Locations

adjust data between the viewer & origin

currently supports Nde.js and python

Run in the AWS public space(Not VPC)

28
Q

Lambda@Edge Limits

A

viewer side → Memory of 128 MB and function time out of 5 Seconds

Origin side → Memory same as normal Lambda function and function time out of 5 Seconds

29
Q

Lambda@Edge Use cases

A

A/B testing - viewer request

migration Between s3 origin - origin Request

Different Object Based on Device - origin Request

content By country- origin request

30
Q

Global Accelerator

A

Moves the AWS network Closer to customers:

Traffic initially uses public internet & enters a Global Accelerator Edge Location

Connections enter at edge … using any cast IPS:

Anycast IP’s allow a single IP to be in multiple Locations. Routing moves traffic to the closest location

Transit over AWS backbone to it’s locations:

From the edge, data transits globally across the AWS global backbone network. Less hops, directly under AWS control, significantly better performance

31
Q

What’s the difference between CloudFront and Global Accelerator

A

Global Accelerator can be used for non HTTP/s (TCP/UDP)

32
Q

When would you use CloudFront ?

A

if you need caching or content delivery or manipulation of that delivery

33
Q

When would you use Global Accelerator?

A

If you want TCP or UDP network optimization

34
Q

Explain the process of using your a custom CNAME name with your CloudFront Distribution if using HTTPS ?

A

if using HTTPS you you need a certificate applied to the distribution matching that name

the way to do that is to generate or import an certificate in ACM in use-east-1 because CloudFront is a regional service