Cloudfront Flashcards

(22 cards)

1
Q

What is Amazon CloudFront?

A

A global content delivery network (CDN) that caches and distributes content (static, dynamic, video, APIs) with low latency from AWS Edge Locations.

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

What is an Edge Location?

A

A site where CloudFront caches content closer to users; requests are routed to the nearest edge for faster delivery.

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

What is a Regional Edge Cache?

A

Larger caches that sit between edge locations and the origin to further reduce origin fetches.

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

What types of origins can CloudFront use?

A

AWS origins (S3, ALB, EC2) and custom origins (non-AWS web servers).

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

How does CloudFront handle multiple behaviors?

A

Behaviors let you route different URL paths to different origins or apply unique caching/security settings per path.

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

What is Origin Failover?

A

Uses an origin group with a primary and secondary origin—CloudFront automatically fails over on errors (e.g., 500, 502, 503).

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

How does CloudFront cache content?

A

Based on cache keys — usually the URL, query strings, headers, and cookies (configurable).

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

What’s the difference between TTL, MinTTL, and MaxTTL?

A

MinTTL – shortest time CloudFront will keep cached objects.

MaxTTL – longest time CloudFront will keep cached objects.

DefaultTTL – used if no cache-control headers are present.

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

What is a Signed URL vs. a Signed Cookie?

A

Signed URL: Grants temporary access to one object.

Signed Cookie: Grants access to multiple restricted objects.

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

What is an Origin Access Control (OAC)?

A

A newer, more secure way to restrict S3 bucket access to only CloudFront (replaces OAI).

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

Can CloudFront use HTTPS?

A

Yes — supports HTTPS between viewers and CloudFront, and between CloudFront and the origin.

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

What is Field-Level Encryption?

A

Encrypts specific sensitive data (like credit card numbers) in HTTP POST requests at the edge.

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

How do you enable access logs for CloudFront?

A

Enable standard or real-time logs, stored in an S3 bucket you specify.

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

What metrics are available in CloudWatch for CloudFront?

A

Requests, BytesDownloaded/Uploaded, 4xx/5xx errors, CacheHitRate, etc.

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

What tool helps analyze CloudFront logs easily?

A

AWS Athena can query logs in S3 using SQL.

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

How does CloudFront integrate with Route 53?

A

Route 53 can use CloudFront distributions as aliases in DNS (using ALIAS records).

17
Q

How does CloudFront improve S3 performance?

A

By caching S3 content at edge locations, reducing latency and S3 GET requests.

18
Q

How does CloudFront integrate with Lambda@Edge?

A

Lets you run code closer to users (e.g., header manipulation, redirects, authentication).

19
Q

What’s the purpose of Origin Groups?

A

Provide high availability by designating primary and secondary origins for automatic failover.

20
Q

What’s the difference between Viewer Protocol Policy options?

A

HTTP and HTTPS

Redirect HTTP to HTTPS

HTTPS only

21
Q

What is the function of Custom Error Pages?

A

Serve user-friendly pages or custom objects when the origin returns specific HTTP errors.

22
Q

Can CloudFront distribute dynamic content?

A

Yes — CloudFront can accelerate both static and dynamic content via TCP and SSL optimizations.