AWS Shield

Difficulty: Beginner

Question

What is AWS Shield, and what is the difference between Shield Standard and Shield Advanced?

Answer

AWS Shield is AWS's managed DDoS (Distributed Denial of Service) protection service. Shield Standard is free and automatically protects every AWS customer against common network and transport layer (Layer 3/4) attacks such as SYN floods and UDP reflection. Shield Advanced is a paid subscription that adds enhanced detection, application layer mitigation with WAF, 24/7 access to the AWS Shield Response Team, and cost protection for scaling charges caused by an attack.

What a DDoS attack looks like and where Shield stops it

A DDoS attack tries to exhaust some resource so real users cannot get in:

  • Volumetric (Layer 3): UDP reflection or amplification (DNS, NTP, memcached) floods your bandwidth.
  • Protocol (Layer 4): SYN floods exhaust connection tables.
  • Application (Layer 7): HTTP GET floods on an expensive endpoint like search or checkout.

Shield's mitigation runs on AWS's edge and regional infrastructure, so most Layer 3/4 junk is absorbed before it touches your instances. CloudFront, Route 53 and Global Accelerator benefit most because they are served from hundreds of edge locations with huge aggregate capacity.

Standard vs Advanced

AspectShield StandardShield Advanced
CostFree, always onMonthly subscription per organization with a one-year commitment, plus data transfer fees
Layers covered3 and 43, 4 and 7 (with WAF)
Protected resourcesEverything on AWSCloudFront, Route 53 hosted zones, Global Accelerator, ELB, Elastic IPs (EC2, NLB) you enrol
DetectionGeneric, automaticPer-resource baselines, health-based detection using Route 53 health checks
Human supportNoneShield Response Team (SRT) 24/7, proactive engagement
Cost protectionNoService credits for scaling charges caused by a DDoS attack
WAF chargesNormalWAF included for protected resources
VisibilityBasicAttack diagnostics, CloudWatch metrics, global threat dashboard

When Shield Advanced is worth it

Shield Advanced is expensive enough that it only makes sense for businesses where downtime costs real money: a payments gateway, a trading app on budget day, a ticketing site during an IPL ticket sale, or a large e-commerce platform during a festive sale. For most student projects and startups, Shield Standard plus a well designed architecture is enough. Note that SRT engagement requires a Business or Enterprise support plan.

Architecture matters more than the subscription

Shield works best when your design gives it something to defend:

  • Put CloudFront (or Global Accelerator) in front of everything, so attack traffic hits the edge, not your region.
  • Use Route 53 for DNS; it is built to absorb DNS floods.
  • Lock origins down so attackers cannot bypass the edge: security groups that only allow CloudFront's managed prefix list, and OAC for S3.
  • Add WAF rate-based rules for Layer 7 floods, because Shield Standard alone does not stop an HTTP flood that looks like real traffic.
  • Use Auto Scaling so you can absorb what gets through, and set budget alerts so an attack does not silently burn money.

Common misconceptions

  • "Shield Standard protects my app from all DDoS". It does not handle sophisticated Layer 7 floods; that is WAF's job.
  • "Shield is something I turn on". Standard is already on; you never configure it.
  • "Shield Advanced is per account". The subscription covers all accounts in an AWS Organization under one fee, though each protected resource is enrolled explicitly.
Layered DDoS defence on AWS. Each layer filters a different kind of attack before it reaches your code.
  1. Route 53 and CloudFront edge: Absorb DNS and volumetric floods across many edge locations.
  2. Shield Standard: Free, automatic Layer 3/4 mitigation for all customers.
  3. Shield Advanced (optional): Tuned detection, SRT help and cost protection.
  4. AWS WAF: Rate-based and managed rules stop Layer 7 HTTP floods.
  5. Load balancer and Auto Scaling: Spread and absorb traffic that gets through.
  6. Application: Locked-down origin that only accepts edge traffic.

Code examples

Enrol a CloudFront distribution in Shield Advanced

# One-time subscription (commits the organization to a 12-month term)
aws shield create-subscription

# Protect a specific resource
aws shield create-protection \
  --name "shop-cdn" \
  --resource-arn arn:aws:cloudfront::123456789012:distribution/E1ABCDEF2GHIJK

# Let Shield use a Route 53 health check for health-based detection
aws shield associate-health-check \
  --protection-id a1b2c3d4-5678-90ab-cdef-EXAMPLE11111 \
  --health-check-arn arn:aws:route53:::healthcheck/abcd-1234

# List current protections
aws shield list-protections

Shield Advanced requires both a subscription and explicit protection of each resource. Health checks let Shield detect attacks sooner and more accurately by correlating traffic with application health.

Key points

  • Shield Standard is free, automatic and covers Layer 3/4 for every AWS customer
  • Shield Advanced adds Layer 7 mitigation with WAF, the 24/7 Shield Response Team and DDoS cost protection
  • Advanced protects CloudFront, Route 53, Global Accelerator, ELB and Elastic IPs that you explicitly enrol
  • Edge services plus WAF rate limiting plus locked-down origins is the real DDoS defence; Shield is one layer
  • One Shield Advanced subscription covers all accounts in an AWS Organization

Common follow-up questions

  • How do Shield and WAF work together during an HTTP flood?
  • How would you make sure attackers cannot bypass CloudFront and hit your ALB directly?
  • What is DDoS cost protection and why does it matter for auto-scaled systems?
  • Which AWS services are most resilient to DDoS and why?

Interview tips

  • Start with the Standard vs Advanced split; most interviewers want that distinction first
  • Show judgement on cost: say when Advanced is justified and when it is overkill
  • Talk about architecture (edge services, origin lock-down) rather than presenting Shield as a magic switch

Concepts covered

DDoS Protection, Shield Standard, Shield Advanced, Shield Response Team, Cost Protection

More AWS & Cloud Fundamentals questions