Introduction to Amazon CloudFront

Lab Details

  1. This lab walks you through to Amazon CloudFront creation and working. In this lab you will create an Amazon CloudFront distribution. It will distribute a publicly accessible image file stored in an Amazon S3 bucket.

  2. Understand Custom Error Pages and Geo-Restriction.

  3. Duration: 1 hour 30 minutes

  4. AWS Region: US East (N. Virginia) us-east-1

Introduction

      What is CloudFront?

  • Amazon CloudFront is a content delivery network (CDN) offered by AWS.

  • CDN provides globally-distributed network of proxy servers which cache content, i.e., web videos or other bulky media, more locally to consumers, thus improving access speed for downloading the content.

  • CloudFront service works on a pay-as-you-go basis.

  • CloudFront works with origin servers like S3, EC2 where the content is stored and is pushed out to multiple CloudFront servers as content is requested.

  • When CloudFront is enabled, the content is stored on the main S3 server.

  • Copies of this content are created on a network of servers around the world called CDN.

  • Each server within this network is called an Edge server, which will only have a copy of your content.

  • When a request is made to the content, the user is provided from the nearest edge server.

  • CloudFront has features similar to dynamic site acceleration, a method used to improve online content delivery.

  • CloudFront accelerates the delivery of dynamic content by moving it closer to the user to minimize internet hops involved in retrieving the content.

  • CloudFront's Web distribution support "Progressive" download i.e., data from S3 is cached and then streamed without disruptions.

  • Due to that, the user cannot move front or back in the video i.e., the video is processed bit by bit.

  • CloudFront's Web distribution support "Streaming" allows users to directly watch without any download.

  • Due to that, the user can move front or back in the video, the latency is based on the size of the file and the customer Internet bandwidth.

  • This service is beneficial for those developing a website that distributes a lot of content and needs to scale-up.

  • It helps reduce costs and improve the performance of a website by providing high data transfer speeds and low latency.

Architecture Diagram

Task Details

  1. Log into AWS Management Console.

  2. Create a S3 Bucket and upload an image to the sample S3 bucket provided.

  3. Create Custom Error pages.

  4. Make the image Publicly accessible.

  5. Create a new Amazon CloudFront distribution.

  6. Link the CloudFront distribution to serve the image in S3 bucket.

  7. Test the distribution.

  8. Update Distribution with Custom Error Pages and test.

  9. Create a Geo-Restriction.

  10. Test Geo-Restriction.



Join Whizlabs_Hands-On to Read the Rest of this Lab..and More!

Step 1 : Login to My-Account
Step 2 : Click on "Access Now" to view the course you have purchased
Step 3 : You will be taken to our Learn Management Solution (LMS) to access your Labs,Quiz and Video courses