All exams← All AWS Certified Advanced Networking - Specialty notes

Content Delivery and DNS: AWS Certified Advanced Networking - Specialty revision notes

Revision notes

## 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.

Key facts

Flashcards

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
Practice questions

Content Delivery and DNS: 5 practice questions

Q1. A company is modernizing its web application by migrating static assets to an Amazon S3 bucket. They want to serve these assets via Amazon CloudFront and ensure that users can only access them through the CloudFront distribution, not directly via the S3 URL. What is the recommended and most secure method to achieve this?
  • A.  Create an Origin Access Identity (OAI) and update the S3 bucket policy.
  • B.  Configure the S3 bucket for public access and use an AWS WAF rule to block direct access.
  • C.  Create an Origin Access Control (OAC) and update the S3 bucket policy.
  • D.  Use signed URLs for every object request to the CloudFront distribution.
Show answer & explanation
✓ Answer: C. Create an Origin Access Control (OAC) and update the S3 bucket policy.
Origin Access Control (OAC) is the recommended replacement for OAI. It provides enhanced security, including support for SSE-KMS, and dynamic requests (PUT, DELETE) to S3, making it the modern best practice.
Q2. A global logistics company needs to route traffic for its tracking API to the AWS region that is physically closest to its customers. They also want the ability to influence this routing by shifting a percentage of traffic from one region to another for maintenance, using a 'bias' value. Which Route 53 routing policy should they use?
  • A.  Geolocation Routing
  • B.  Latency-Based Routing
  • C.  Geoproximity Routing
  • D.  Multivalue Answer Routing
Show answer & explanation
✓ Answer: C. Geoproximity Routing
Geoproximity routing routes traffic based on the geographic location of users and resources. It uniquely allows you to use a 'bias' to expand or shrink the geographic area from which traffic is routed to a resource.
Q3. A developer needs to implement a solution to rewrite HTTP headers on incoming requests to a CloudFront distribution. The logic is simple, involves no network calls, and must execute with the lowest possible latency for every request. The solution should also be the most cost-effective for a high-traffic website. Which solution best meets these requirements?
  • A.  A Lambda@Edge function triggered on Viewer Request events.
  • B.  A CloudFront Function triggered on Viewer Request events.
  • C.  A Lambda@Edge function triggered on Origin Request events.
  • D.  An AWS WAF rule to inspect and rewrite the headers.
Show answer & explanation
✓ Answer: B. A CloudFront Function triggered on Viewer Request events.
CloudFront Functions are designed for lightweight, high-volume, and latency-sensitive operations like header manipulation or URL rewrites. They run at the edge location and have lower latency and cost than Lambda@Edge.
Q4. An online gaming company is deploying a new real-time multiplayer game. The game servers are hosted on EC2 instances behind Network Load Balancers in multiple AWS regions. They require a solution that provides static anycast IP addresses as a fixed entry point for game clients and accelerates non-HTTP (UDP and TCP) traffic over the AWS global network. Which service is most suitable?
  • A.  Amazon CloudFront with a custom origin.
  • B.  AWS Global Accelerator.
  • C.  Amazon Route 53 with Latency-Based Routing.
  • D.  An Application Load Balancer with cross-zone load balancing.
Show answer & explanation
✓ Answer: B. AWS Global Accelerator.
AWS Global Accelerator is ideal for non-HTTP use cases like gaming that require static IP addresses and leverage the AWS global network to improve performance and reliability for TCP and UDP traffic.
Q5. A company has a hybrid cloud setup with a VPC connected to their on-premises data center via AWS Direct Connect. The on-premises DNS servers need to resolve DNS queries for AWS service endpoints and resources in a private hosted zone (e.g., `corp.internal`). How can DNS queries originating from the on-premises network be forwarded to AWS for resolution?
  • A.  Configure the on-premises DNS server to forward queries to the VPC's `.2` DNS resolver IP address.
  • B.  Create a Route 53 Resolver Inbound Endpoint and configure on-premises DNS forwarders to its IP addresses.
  • C.  Create a Route 53 Resolver Outbound Endpoint and create forwarding rules for the relevant domains.
  • D.  Create a Route 53 Private Hosted Zone and associate it with the on-premises network via a VPN connection.
Show answer & explanation
✓ Answer: B. Create a Route 53 Resolver Inbound Endpoint and configure on-premises DNS forwarders to its IP addresses.
A Route 53 Resolver Inbound Endpoint provides IP addresses in your VPC that you can forward DNS queries to from your on-premises network. This enables on-premises servers to resolve names managed by Route 53.
Test yourself
See the AWS Certified Advanced Networking - Specialty page

More AWS Certified Advanced Networking - Specialty topics