SkillSprout
Chapter 10 · Lesson 6
Intermediate
7 min read

Shield

Overview

AWS Shield is a managed DDoS (Distributed Denial of Service) protection service. A DDoS attack floods your application with traffic from thousands of compromised devices so that real customers cannot get through. Shield detects and absorbs these attacks so your application stays available.

Think of Shield as the barrier system that diverts a stampede before it reaches your front door. Shield Standard is built into AWS for everyone at no extra cost, and Shield Advanced is a paid tier with extra detection, response experts and financial protection.

On the exam, Shield answers questions about infrastructure-layer (Layer 3/4) attacks, such as SYN floods and UDP reflection. Application-layer (Layer 7) attacks are handled by WAF, and the best architectures use both with CloudFront and Route 53.

Key Concepts

  • Shield Standard is free and automatic for all AWS customers, protecting against common Layer 3/4 DDoS attacks (SYN/UDP floods, reflection attacks).
  • Shield Advanced is a paid subscription (about $3,000 per month per organisation with a 1-year commitment, plus data transfer fees).
  • Shield Advanced protects EC2 Elastic IPs, ELB (ALB/CLB/NLB), CloudFront, Route 53 hosted zones and Global Accelerator.
  • Shield Advanced gives 24/7 access to the Shield Response Team (SRT) (requires Business or Enterprise Support), advanced attack diagnostics and near real-time metrics.
  • DDoS cost protection credits scaling charges (EC2, ELB, CloudFront, Route 53) caused by a DDoS attack.
  • Shield Advanced includes AWS WAF and Firewall Manager at no additional charge for protected resources, and can apply automatic Layer 7 mitigation.
  • Resilience comes from architecture: CloudFront, Route 53, Global Accelerator, Auto Scaling, multiple AZs absorb and spread attack traffic.
  • Shield is a global service and complements, not replaces, WAF and network controls.

Detailed Notes

The DDoS problem

DDoS attacks target different layers:

LayerAttack examplesMitigation
Layer 3/4 (network/transport)SYN flood, UDP flood, reflection/amplification (DNS, NTP, memcached)Shield Standard/Advanced, CloudFront, Route 53
Layer 7 (application)HTTP GET/POST floods, slow requests, bot abuseAWS WAF (rate-based rules), CloudFront, Shield Advanced automatic L7 mitigation

Shield Standard vs. Advanced

CapabilityStandardAdvanced
CostFree, always on~$3,000/month + data transfer, 1-year term
Layer 3/4 protectionYes (automatic, inline)Yes, with enhanced detection and larger attack handling
Layer 7 protectionNo (use WAF)Automatic L7 mitigation with WAF rules
Protected resourcesAll AWS resources at edge (CloudFront, Route 53) get best protectionEIP, ELB, CloudFront, Route 53, Global Accelerator explicitly protected
VisibilityLimitedNear real-time metrics, attack reports, CloudWatch and Health-based detection
SupportStandard24/7 SRT (Business/Enterprise Support)
FinancialNoneCost protection for attack-related scaling
WAF and Firewall ManagerCharged separatelyIncluded for protected resources

How Shield Advanced is configured

  1. Subscribe (account or organisation level).
  2. Add protected resources (ARNs of EIPs, load balancers, distributions, hosted zones, accelerators).
  3. Optionally configure health-based detection using Route 53 health checks, which makes detection faster and more accurate.
  4. Optionally enable proactive engagement, where the SRT contacts you when an attack impacts health.
  5. Associate a WAF web ACL and enable automatic application layer DDoS mitigation.
bash
aws shield create-subscription
aws shield create-protection --name alb-protection \
  --resource-arn arn:aws:elasticloadbalancing:us-east-1:111122223333:loadbalancer/app/web/50dc6c495c0c9188
aws shield describe-attack --attack-id $ATTACK_ID

DDoS-resilient architecture (AWS best-practice whitepaper)

  • Reduce the attack surface: put only edge services (CloudFront, ALB, API Gateway) on the internet; hide origins with security groups, CloudFront-only access and private subnets.
  • Use Amazon CloudFront and Route 53: globally distributed, absorb volumetric attacks at the edge.
  • Use Global Accelerator for static anycast IPs and TCP/UDP protection near the edge.
  • Scale to absorb with Auto Scaling, ELB and enhanced networking.
  • Add WAF for L7 filtering and rate limiting.
  • Plan and monitor with CloudWatch alarms, runbooks and Shield Advanced engagement.

Shield with other services

ComboBenefit
Shield + CloudFront + Route 53Best-practice, DDoS-resilient edge for web workloads
Shield + WAFL3/4 plus L7 protection
Shield + Firewall ManagerEnforce protection across an organisation
Shield Advanced + Network FirewallAutomatic network-layer mitigation at the VPC edge

Support and response

The Shield Response Team (SRT) can write and deploy WAF rules on your behalf during an attack, with your authorisation. The Shield Advanced console shows attack timelines, vectors and mitigation. After an event you can request cost-protection credits for scale-out charges.

Real World Example

Scenario — an online gaming company defends launch day against a DDoS extortion attempt.

A game studio runs login services on NLBs with Elastic IPs and a public web store on CloudFront + ALB. Before the launch, attackers threaten a UDP flood and HTTP flood unless a ransom is paid.

The studio subscribes to Shield Advanced across its AWS Organization and registers the NLB Elastic IPs, ALB, CloudFront distribution and Route 53 hosted zones as protected resources. They:

  • Configure health-based detection with Route 53 health checks and CloudWatch alarms.
  • Associate a WAF web ACL with rate-based rules and enable automatic L7 mitigation.
  • Authorise the Shield Response Team with proactive engagement, and keep a Business Support plan.

On launch day a 300 Gbps UDP reflection flood hits the NLB. Shield absorbs it at the AWS edge, the SRT is engaged automatically, and players keep logging in. Afterwards the studio claims cost protection credits for the auto-scaled capacity used during the attack.

Architecture Diagram

DDoS-resilient edge architecture with Shield
Architecture
AWS Cloud
Legitimate users
DDoS attackers

AWS edge

Route 53DNS
CloudFront
ShieldStandard / Advanced
WAF
VPC
ALB
Auto ScalingEC2 fleet

Attack traffic is absorbed at the edge; only clean traffic reaches the VPC.

  1. 1DNS queries and web requests enter AWS through Route 53 and CloudFront, which are distributed and resilient.
  2. 2Shield detects and mitigates Layer 3/4 attacks automatically; Shield Advanced adds advanced detection and SRT support.
  3. 3WAF filters Layer 7 requests and applies rate-based rules.
  4. 4Only clean traffic reaches the ALB and an Auto Scaling fleet that can absorb the remaining load.

Best Practices

  • ✓Front applications with CloudFront and Route 53 so attacks are absorbed at the edge.
  • ✓Subscribe to Shield Advanced for business-critical internet-facing workloads and register all public endpoints.
  • ✓Combine Shield with WAF and rate-based rules for layered L3-L7 defence.
  • ✓Restrict origin access to CloudFront (prefix list, custom header, VPC origins) so attackers cannot bypass the edge.
  • ✓Enable health-based detection (Route 53 health checks) and CloudWatch alarms.
  • ✓Use Auto Scaling and multiple AZs to absorb residual load.
  • ✓Subscribe to Business/Enterprise Support to engage the SRT and enable proactive engagement.
  • ✓Use Firewall Manager to protect all accounts consistently and run DDoS game days.

Common Interview Questions

Exam Tips

SAA-C03 focus

  • DDoS protection -> AWS Shield. Standard = free, automatic, L3/L4; Advanced = paid, extra features.
  • Shield Advanced protects EIP/EC2, ELB, CloudFront, Route 53, Global Accelerator.
  • "24/7 DDoS Response Team" or "cost protection against scaling charges" -> Shield Advanced (needs Business/Enterprise Support).
  • Layer 7 flood / SQL injection -> WAF; Layer 3/4 flood -> Shield.
  • Most DDoS-resilient design: CloudFront + Route 53 + Shield Advanced + WAF + Auto Scaling.
  • Hide origin and restrict access to CloudFront so attackers can't bypass protections.
  • Shield Advanced bundles WAF and Firewall Manager at no extra cost for protected resources.
  • Don't confuse with GuardDuty: GuardDuty detects threats; Shield mitigates DDoS.

Chapter quiz

Monitoring and Security · 5 questions

  1. 1.A company runs a memory-intensive application on EC2 and wants to alarm when memory utilisation exceeds 85%. The CloudWatch console shows no memory metric. What should a solutions architect do?

  2. 2.During a security investigation, the team needs to find out which IAM user deleted an S3 bucket three weeks ago. Which service provides this information?

  3. 3.A company must detect when any resource violates its policy that all EBS volumes are encrypted and automatically remediate violations across multiple accounts. Which solution meets the requirements?

  4. 4.A public web application behind CloudFront and an Application Load Balancer is receiving SQL injection attempts and an HTTP flood from a few IP addresses. Which combination offers the MOST effective protection?

  5. 5.A gaming company needs protection against large volumetric DDoS attacks on its Network Load Balancers, access to 24/7 AWS DDoS experts, and credits for scaling costs caused by attacks. What should the company do?

0 of 5 answered

Finished this lesson?

0 of 64 lessons done · 0% of the course