What problem does CloudFront solve in network communication?
It reduces network latency and performance issues caused by long distances between users and the origin server.
What is an origin server in the context of CloudFront?
The origin server is where the original version of the data is stored (e.g., images, videos, web content).
Why does distance between the user and origin server affect performance?
Because data must travel across multiple networks, increasing latency, which slows down loading and user experience.
What is a Content Delivery Network (CDN)?
A distributed network of servers that deliver content to users from locations closer to them.
How does CloudFront improve performance compared to traditional delivery?
By delivering content through edge locations close to users instead of always fetching from the origin server.
What are edge locations in CloudFront?
Global data centres that cache content closer to users for faster delivery.
Explain how CloudFront uses Route 53 in request routing.
Route 53 uses geolocation routing to direct the user to the closest edge location, improving speed.
Describe the full request flow when a user accesses content using CloudFront.
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
What happens when the requested content is NOT in the edge cache?
CloudFront retrieves it from the origin server, then caches it at the edge for future requests.
What is caching in CloudFront?
Storing copies of data at edge locations so it can be served quickly without contacting the origin server again.
What happens when cached data becomes stale?
It is removed from the cache to make space for updated content.
What is TTL (Time to Live) and why is it important?
TTL defines how long content stays in the cache before it expires.
It controls:
* Freshness of data
* Cache efficiency
Why is CloudFront considered cost-effective compared to traditional CDNs?
Because:
* No contracts
* Pay-as-you-go pricing
* No minimum fees
How does CloudFront improve user experience?
By reducing:
* Latency
* Load times
* Network delays
A user in Japan accesses a website hosted in the US. Without CloudFront, what happens vs with CloudFront?
Without CloudFront:
* Request travels long distance → high latency
With CloudFront:
* Request goes to nearest edge (Japan) → faster response
A website has many images and videos. Why is CloudFront especially useful here?
Because it efficiently delivers high-density content (media files) with reduced latency.
Why does CloudFront not always contact the origin server?
Because it uses cached content at edge locations, reducing load on the origin.
If TTL is set very low, what impact does this have?
More frequent origin requests
* Less caching efficiency
* More up-to-date content
If TTL is set very high, what impact does this have?
Which combination correctly explains CloudFront performance improvement?