CloudFront Flashcards
This deck aims to help retain concepts related to the CloudFront service.
Which AWS service functions as a content delivery network (CDN) designed for high performance, security, and developer convenience?
Amazon CloudFront
What is the primary purpose of Amazon CloudFront?
To reduce the load on origin servers and improve performance for globally distributed users
Which AWS service integrates with CloudFront to provide SSL/TLS certificates for custom domain names?
AWS Certificate Manager (ACM)
Does Amazon CloudFront support write caching?
No, CloudFront caches only downloads; uploads are always sent directly to the origin for processing
What CloudFront component serves as the source of content and requires a publicly routable IPv4 address?
Origin (S3 Origin, Custom Origin)
Which AWS CloudFront component serves as a unit of configuration deployed to the CloudFront network and pushed to edge locations?
Hint: Must be disabled before deletion
Distribution, as most settings are configured within it
What is the CloudFront component within a Distribution that specifies how requests should be processed?
Behaviors
What is the maximum number of behaviors allowed within a CloudFront distribution?
25 Behaviors, though higher limits can be requested
Which Behavior in a CloudFront Distribution applies to all requests by default?
Default Behavior (wildcard) - Default (*)
Which Behaviors take priority over the Default Behavior in a CloudFront Distribution?
Any specific Behavior defined within the Distribution takes priority over the default one
Which CloudFront component enables a distribution to have multiple origins configured?
Behaviors, as they map request patterns to specific origins
In which part of AWS’s global infrastructure is content cached locally for end users?
Edge Locations
What AWS global infrastructure component acts as a larger version of an edge location, providing an additional caching layer?
Regional Edge Cache
List all caching layers in CloudFront from the client to the origin.
Client → Local Edge Location → Regional Edge Cache → Origin (origin fetch)
What price classes does AWS CloudFront support for Distributions?
- All Edge Locations (best performance, higher cost)
- North America and Europe (lower cost, limited coverage)
- North America, Europe, Asia, Middle East, and Africa (balanced option)
What general configuration options does an AWS CloudFront Distribution support?
- Price class
- Supported HTTP versions
- Alternative domain names
- Custom SSL certificate
- Default root object
- Logging (enabled/disabled)
- IPv6 support (enabled/disabled)
What type of security configuration can be applied to an AWS CloudFront Distribution?
Integration with AWS Web Application Firewall (WAF)
What additional configuration options are available for an AWS CloudFront Distribution?
- Origins
- Behaviors
- Custom error pages
- Cache invalidations
What configuration settings are supported within a CloudFront Behavior?
- Automatic compression of objects
- Viewer protocol policy
- Allowed HTTP methods
- Viewer access restrictions (trusted key groups, trusted signers)
- Cache key and origin request policies (cache policy, origin request policy, response header policy)
- Function associations (Edge Functions)
Which AWS CloudFront setting determines how long objects are cached at Edge Locations and when they should be invalidated?
Time To Live (TTL), configured within CloudFront Distribution Behaviors
What are the custom TTL settings available in CloudFront Distribution Behaviors?
- Minimum TTL: specifies the lowest allowable TTL for an object
- Maximum TTL: specifies the highest allowable TTL for an object
- Default TTL: specifies the default TTL used if no TTL is specified for the object
When is the Minimum TTL setting applied in CloudFront Distribution Behavior?
When an object’s defined TTL is shorter than the Minimum TTL value
When is the Maximum TTL setting applied in CloudFront Distribution Behavior?
When an object’s defined TTL exceeds the Maximum TTL value
When is the Default TTL setting applied in CloudFront Distribution Behavior?
When an object has no TTL explicitly defined
How can an origin (S3 or Custom) direct CloudFront to use object-specific TTL values?
Using headers:
- Cache-Control: e.g., Cache-Control: max-age=604800
(TTL in seconds)
- Expires: e.g., Expires: <specific-date>
For S3 Origins, object metadata can also define caching behavior
Why is TTL configuration within CloudFront Distribution Behavior important?
It optimizes cache hits, which reduces the load on the origin and improves performance
Which AWS CloudFront configuration expires cached objects immediately regardless of their TTL and applies across all Edge Locations?
Cache Invalidationaws cloudfront create-invalidation --distribution-id <dist_id> --paths "/*"