CloudFront delivers web content through edge locations and retrieves missing content from an origin such as S3 or an HTTP server. These sections explain cache rules and freshness, origin and viewer access, origin failover, encryption, and functions that run during request processing.
CloudFront basics
Amazon CloudFront is AWS’s content delivery networkA content delivery network serves content through geographically distributed locations near viewers. (CDN): copies of content are served from edge locationsAn edge location is a CloudFront data center that serves content to viewers and caches copies of objects. close to users.
How it works
- A user requests content.
- The nearest edge location serves it if cached.
- Otherwise it fetches from the originAn origin is the server or bucket holding the original content that CloudFront retrieves., caches and returns it.
Exam cues
- If the question says low latencyLatency is the delay involved in delivering a request or response across the network. content delivery to global users, think CloudFront.
Remember
- Edge locations worldwide.
Trap: CloudFront caches content; Global Accelerator speeds up network paths without caching.
Da documentação da AWS (7)
- Amazon CloudFront speeds up delivery of static and dynamic web content by serving it from a worldwide network of edge locations.
- CloudFront serves content through edge locations and retrieves missing content from a configured origin.
- Origin access control authenticates CloudFront requests to an S3 bucket origin.
- The S3 bucket policy grants access to the CloudFront service principal cloudfront.amazonaws.com.
- An AWS:SourceArn condition scopes the S3 bucket policy grant to the distribution containing the origin.
- The read-only OAC bucket policy grants s3:GetObject on the bucket objects.
- Remove permissions that allow other users to read the S3 objects directly to prevent bypassing CloudFront.
Flashcards
Nada para revisar aqui agora. Escolha outros tópicos ou outro filtro.
·
Todos os 3 flashcards em lista
How do Amazon CloudFront edge locations benefit users around the world?
They speed up delivery of static and dynamic web content through a worldwide network.
A website needs to serve cached content from locations close to viewers. Which AWS service fits?
Amazon CloudFront delivers content through edge locations and retrieves missing content from the configured origin.
A team serves content from S3 through CloudFront and must prevent direct public bucket reads. What should it configure?
Use OAC with the regular S3 bucket origin. Grant cloudfront.amazonaws.com s3:GetObject in the bucket policy, scoped by AWS:SourceArn to the distribution. Remove direct public read permissions.