Route 53 Flashcards
For a DNS record to use an S3 bucket as an endpoint
the bucket name must be the same as the domain name.
CloudFront
is a global CDN which delivers content from an “origin” location(the source of the content) to an “edge” location(AWS CDN data center).
EDGE LOCATION
is an AWS datacenter which does not contain AWS services.
instead, it is used to deliver content to parts of the world.
allows the caching of static objects from the origin location.
Origin
an origin can be as S3 bucket, Elastic Load Balancer that distributes requests among origin EC2 instances.
CloudFront can integrate with Route 53 for “alternate” CNAMES.
This allows you to create a URL such as … that works with your distribution.
CloudFront benefit
- User experience lower latency and content load time.
- - Reduces load on your applications resources(origin services) – thus reducing cost.
Updating Cached Files
- Caching is done based off the object name.
- in order to serve a new version of an object, either create a new object with a new name or create an “invalidation” on the CloundFront distribution based off the object name.
- -“invalidations” have a cost, so if you have to invalidate a large CloudFront distribution then perhaps you should just create a new distribution and move DNS name.
- Cached objects can also be set with a specific expiration time/date, or set to not cache at all.
Signed URLs
Signed URLs allow access to “private content” by creating a temporary, one-time-use URL based off of the number of seconds you want it to be accessible.
– Signed with a X.506 certificate.
CloudFront performance can be affected by
- File size and type of file.
- Having to remake the request from the edge location to the origin.
- downloading the object from the origin takes time.
- as well as writing it to cache and responding to the end user request.
- the more request that have to go to the origin, the higher the load is on your source, which can also cause latency and load performance issues.
- slow DNS issues can cause performance issues. because the end location that the user’s request goes to is dependent upon a “DNS check” to determine the closest EDGE location.
- query string reduce cahce “hits” because it is often unique and also requires extra “work” in order ot forward to the origin location.
CloudFront performance can be increased by
Longer cache periods increases performance.
If you want to point a domain name to an AWS elastic load balancer in Route 53, how would you need to configure the record set?
Alias with a type “A” record set.You will need to configure the record set as a type “A” alias. An alias allows you to point the domain to an AWS-specific endpoint, such as an ELB, Cloudfront distribution, or S3 bucket (as opposed to just an IPv4 IP address).