## Content Delivery and DNS
This topic covers how AWS services enhance application performance, availability, and security through intelligent content delivery and robust DNS management.
## Amazon Route 53 Advanced Features
Amazon Route 53 is a highly available and scalable cloud DNS web service. For advanced networking, focus on its sophisticated routing policies:
- Weighted Routing: Distributes traffic to multiple resources based on assigned weights.
- Latency-Based Routing: Routes requests to the AWS region that provides the lowest latency for the user.
- Geolocation Routing: Routes traffic based on the geographic location of your users.
- Geoproximity Routing: Routes traffic based on the geographic location of users and resources, allowing you to optionally shift traffic using a bias value.
- Failover Routing: Automatically redirects traffic to a healthy resource when the primary resource becomes unavailable, relying on Route 53 Health Checks.
- Multivalue Answer Routing: Returns up to 8 healthy records, allowing clients to randomly select one, improving availability.
- Private Hosted Zones: Manage DNS for resources within your Amazon VPCs without exposing them to the public internet.
- Traffic Flow: A visual editor for creating complex routing policies.
## Amazon CloudFront for Performance and Security
Amazon CloudFront is a fast content delivery network (CDN) service that securely delivers data, videos, applications, and APIs to customers globally with low latency and high transfer speeds.
- Edge Caching: Caches content at edge locations close to users, reducing origin load and latency.
- Origins: Supports S3 buckets, EC2 instances, Elastic Load Balancers, or any custom HTTP server as origins.
- Cache Behaviors: Define how CloudFront handles requests for different URL paths, including caching duration (TTL), allowed HTTP methods, and viewer/origin protocols.
- Security Features: Integrates with AWS WAF for DDoS protection and web application security. Supports Signed URLs and Signed Cookies to restrict access to private content. Field-Level Encryption allows specific sensitive data fields to be encrypted at the edge.
- Lambda@Edge: Run custom code at CloudFront edge locations in response to CloudFront events, enabling dynamic content manipulation, A/B testing, and more.
- Geo-restriction: Whitelist or blacklist countries from accessing your content.
## AWS Global Accelerator for Enhanced Performance
AWS Global Accelerator improves the availability and performance of your applications by directing user traffic to optimal endpoints over the AWS global network.
- Static Anycast IP Addresses: Provides two static public IP addresses that act as a fixed entry point to your application, routing traffic to the closest AWS edge location.
- Network Zones: These static IPs are provisioned from separate AWS network zones, increasing fault isolation.
- Endpoint Groups: Group regional endpoints (e.g., ALB, EC2, ENI, EIP) in one or more AWS regions.
- Traffic Dials: Control the percentage of traffic directed to an endpoint group, useful for testing or blue/green deployments.
- Health Checks: Continuously monitors the health of your application endpoints.
- Key Difference from CloudFront: Global Accelerator is primarily for non-HTTP/S traffic (TCP/UDP) and optimizes the first-mile connection to your application, whereas CloudFront focuses on caching HTTP/S content.
What Route 53 routing policy uses client location and an optional bias to route traffic?
Geoproximity routing.
tap to reveal
How does AWS Global Accelerator improve performance for non-HTTP/S applications?
It uses static Anycast IPs and the AWS global network for optimized TCP/UDP routing to the closest healthy endpoint.
tap to reveal
What CloudFront feature allows custom logic to be executed at edge locations?
Lambda@Edge.
tap to reveal
What is the primary use case for Route 53 Private Hosted Zones?
To manage DNS for resources within one or more VPCs without exposing them to the public internet.
tap to reveal
What CloudFront security feature protects specific sensitive data fields from being viewed by intermediate proxies?
Field-Level Encryption.
tap to reveal
When would you use CloudFront Signed URLs or Signed Cookies?
To restrict access to private content in CloudFront distributions based on time, date, or IP address.
tap to reveal
What is a key difference in how CloudFront and Global Accelerator route traffic?
CloudFront caches content and routes HTTP/S requests; Global Accelerator routes TCP/UDP traffic to optimal endpoints using static Anycast IPs.
tap to reveal
Which Route 53 record type allows you to map a DNS name to AWS resources like an ELB or S3 bucket, often without additional DNS query charges?
ALIAS record.
tap to reveal