AWS 5.6: CloudFront Flashcards

(20 cards)

1
Q

What problem does CloudFront solve in network communication?

A

It reduces network latency and performance issues caused by long distances between users and the origin server.

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

What is an origin server in the context of CloudFront?

A

The origin server is where the original version of the data is stored (e.g., images, videos, web content).

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

Why does distance between the user and origin server affect performance?

A

Because data must travel across multiple networks, increasing latency, which slows down loading and user experience.

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

What is a Content Delivery Network (CDN)?

A

A distributed network of servers that deliver content to users from locations closer to them.

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

How does CloudFront improve performance compared to traditional delivery?

A

By delivering content through edge locations close to users instead of always fetching from the origin server.

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

What are edge locations in CloudFront?

A

Global data centres that cache content closer to users for faster delivery.

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

Explain how CloudFront uses Route 53 in request routing.

A

Route 53 uses geolocation routing to direct the user to the closest edge location, improving speed.

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

Describe the full request flow when a user accesses content using CloudFront.

A

User sends request

Route 53 finds closest edge location

Request goes to edge location

If cached → content returned immediately

If not cached → edge fetches from origin server

Content stored (cached) at edge

Returned to user

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

What happens when the requested content is NOT in the edge cache?

A

CloudFront retrieves it from the origin server, then caches it at the edge for future requests.

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

What is caching in CloudFront?

A

Storing copies of data at edge locations so it can be served quickly without contacting the origin server again.

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

What happens when cached data becomes stale?

A

It is removed from the cache to make space for updated content.

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

What is TTL (Time to Live) and why is it important?

A

TTL defines how long content stays in the cache before it expires.

It controls:
* Freshness of data
* Cache efficiency

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

Why is CloudFront considered cost-effective compared to traditional CDNs?

A

Because:
* No contracts
* Pay-as-you-go pricing
* No minimum fees

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

How does CloudFront improve user experience?

A

By reducing:
* Latency
* Load times
* Network delays

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

A user in Japan accesses a website hosted in the US. Without CloudFront, what happens vs with CloudFront?

A

Without CloudFront:
* Request travels long distance → high latency

With CloudFront:
* Request goes to nearest edge (Japan) → faster response

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

A website has many images and videos. Why is CloudFront especially useful here?

A

Because it efficiently delivers high-density content (media files) with reduced latency.

17
Q

Why does CloudFront not always contact the origin server?

A

Because it uses cached content at edge locations, reducing load on the origin.

18
Q

If TTL is set very low, what impact does this have?

A

More frequent origin requests
* Less caching efficiency
* More up-to-date content

19
Q

If TTL is set very high, what impact does this have?

A
  • Better performance (more caching)
  • Risk of outdated/stale content
20
Q

Which combination correctly explains CloudFront performance improvement?

A
  • Edge locations
  • Caching
  • Reduced latency
  • Route 53 routing to nearest edge