Ravindra BagaleCourses & study guides English Track your progress

AWS Shield Standard vs Advanced: DDoS Layers, SRT आणि Cost Protection

Mei Chen (Singapore gaming) SYN flood: SG/WAF अपुरे — Shield. Standard (free) vs Advanced (SRT, cost protection, health-based, protection groups). L7 साठी WAF अजून.

या chapter मध्ये तुम्ही काय शिकाल

  • DDoS ला Shield का
  • Standard vs Advanced
  • SRT + extras
  • Buy decision
  • Interview

1. रोजचे उदाहरण

Lucas Meyer (Berlin): UDP flood → CF+Shield Standard. App-layer → WAF rate. survey.

2. Shield का?

हे का लागतं?

DDoS = bandwidth/pps/connections/workers. WAF = HTTP. Shield = volumetric/protocol + Advanced extras.

3. Shield Standard काय?

हे काय आहे?

Automatic, free — common L3/L4 DDoS. CF, R53, AGA, इतर. On करायला नको — आहेच.

4. Shield Advanced काय?

Paid: enhanced mitigation, SRT, cost protection, health-based detection, protection groups, visibility. Pricing आधी वाचा.

TopicStandardAdvanced
CostIncludedMonthly + usage
L3/L4CommonEnhanced
L7CF indirectWAF + SRT
SRTनाहीहो — engage
Cost protectionनाहीहो — eligible
Health-basedनाहीHealth checks
Protection groupsनाहीहो — group

5. DDoS layers 3/4/7

  • L3: volumetric — Shield.
  • L4: SYN/connections.
  • L7: HTTP — WAF (+ Advanced).
Attack → edge+Shield → WAF → originStandard = common L3/L4
Advanced = SRT+health+cost

6. SRT

Advanced = SRT engage. On-call बदली नाही — multiplier. Black Friday आधी tabletop.

7. Cost protection

Eligible DDoS-driven charges → cost protection terms. Fine print वाचा. Budgets ठेवाच.

8. Health-based detection

R53 health checks → Advanced detection. “Large traffic” पेक्षा unhealthy signal.

9. Protection groups

Resources bundle — एक unit म्हणून mitigate/visibility.

10. Advanced केव्हा घ्यावे

  • Revenue-critical + threat
  • Regulated + SRT
  • Bill-shock fear
  • Internal-only → wait

Ravindra Bagale's Tip

Advanced ≠ DDoS-proof. WAF + ASG limits + R53 failover + runbook (पुढचा chapter) लागतात.

11. Lab: inventory + decision memo

Org block नसेल तर ap-south-1 (Mumbai). आधी budget alert.

कसं करायचं (step by step)

  1. List entry points.
  2. Standard screenshot.
  3. Decision memo.
  4. List protections.

Cleanup (billing थांबवा)

  1. No surprise Advanced.
  2. Wiki memo.

12. सामान्य errors आणि fixes

प्रत्येक row = खरी चूक. Panic करण्याआधी fix वाचा.

Error / लक्षणFix
No blocksScope + Count.
False positiveCount + Allow.
Rate silentThreshold + IP source.
Health 403Allow health IPs.
CAPTCHA on APIAPI = Block/rate.
Empty logsARN + bucket policy.
CF associate failus-east-1.
Shield costConfirm pricing.
Shield≠WAFKeep WAF.
Wrong accountOrg plan.
No healthAdd checks.
SRT on StandardNeed Advanced.

13. Troubleshooting checklist

  1. Scope check.
  2. Sampled requests.
  3. Priority order.
  4. curl -v.
  5. Log ruleId.
  6. CF region.
  7. ALB ARN.
  8. Shield health.
  9. Layer triage.
  10. Shield metrics.
  11. SRT path.

14. FAQ

प्र. WAF = network firewall?

नाही — WAF = L7 HTTP.

प्र. CF असताना WAF?

CF ≠ WAF; L7 rules साठी WAF.

प्र. Count vs Block?

Count शिकण्यासाठी; Block नंतर.

प्र. Standard vs Advanced?

Free L3/L4 vs paid extras.

प्र. Startup brochure?

CF+WAF; later Advanced.

प्र. Advanced = WAF?

WAF वेगळे configure.

प्र. Group vs resource?

Aggregate.

प्र. Cost protection auto?

Process+evidence.

15. Interview Q&A

प्र. 30s compare?

Free vs paid extras.

प्र. WAF layer?

L7.

प्र. 2 Advanced-only?

SRT, cost…

प्र. Before WAF?

L3/L4 edge.

प्र. MNC justify?

Revenue+SRT+cost.

प्र. MNC tabletop?

Detect→act→comms.

प्र. R53?

DNS flood edge.

प्र. SG stop DDoS?

नाही volumetric.

16. Tips — English, मराठी आणि हिंदी

Ravindra Bagale's Tip (EN)

Say “Standard is free and automatic; Advanced buys people and money protection.” Then mention WAF for L7.

Ravindra Bagale's Tip (MR)

“Standard free automatic; Advanced = people + money protection.” नंतर L7 WAF.

Tip (HI)

Standard मुफ़्त व automatic है; Advanced लोगों और cost protection के लिए। L7 के लिए WAF.

घरी करून बघा

  1. Memo draft.
  2. Layers diagram.
  3. 3 SRT questions.

थोडक्यात सांगायचं तर

  1. Standard.
  2. Advanced.
  3. WAF stays.
  4. Memo.
  5. Next project.

17. Publish करण्याआधी WAF checklist

  1. Threat एका वाक्यात.
  2. Global vs regional scope.
  3. Default action.
  4. Priority bands.
  5. Count first.
  6. CAPTCHA for humans.
  7. Logging first.
  8. Allow + 403 tests.
  9. On-call owner.
  10. CF+WAF survey link.

18. Copy-paste WAF CLI runbook

# Region for REGIONAL Web ACL (ALB / API GW). Use --scope CLOUDFRONT + us-east-1 for CDN.
export AWS_REGION=ap-south-1
export NAME=rb-waf-lab-$(date +%s)

# IP set (office allowlist example)
aws wafv2 create-ip-set --name $NAME-office --scope REGIONAL --region $AWS_REGION \
  --ip-address-version IPV4 --addresses 203.0.113.10/32

# Web ACL skeleton (default Allow; add rules in console or JSON)
aws wafv2 create-web-acl --name $NAME --scope REGIONAL --region $AWS_REGION \
  --default-action Allow={} --visibility-config SampledRequestsEnabled=true,CloudWatchMetricsEnabled=true,MetricName=$NAME \
  --rules file://rules.json

# Associate to ALB
aws wafv2 associate-web-acl --web-acl-arn $WEB_ACL_ARN --resource-arn $ALB_ARN --region $AWS_REGION

# Logging
aws wafv2 put-logging-configuration --logging-configuration \
  ResourceArn=$WEB_ACL_ARN,LogDestinationConfigs=$LOG_BUCKET_ARN

# Test
curl -s -o /dev/null -w "%{http_code}\n" https://app.example.com/
# expect 200 for allow path; 403 for blocked path

19. Interview-friendly priority bands

  • 0–99: emergency Block
  • 100–199: Allow exceptions
  • 200–499: geo/bot
  • 500–799: Managed Rules
  • 800–899: custom
  • 900–999: rate-based

छोटा number = उच्च priority. पहिला terminating action जिंकतो. Count terminate होत नाही.

20. Industry story bank

एकच WAF pattern; फक्त IP/geo/URI/rate बदला.

  • Fintech: /login /otp rate + CAPTCHA.
  • Healthcare: geo + SQLi.
  • EdTech: Challenge scrapers.
  • Ecommerce: Bot + 429.
  • Media: search rate.
  • SaaS: webhook allowlist.
  • Logistics: geo + rate.
  • Gov: CRS + CAPTCHA.
  • Gaming: Shield + rate.
  • Travel: geo + card-test block.

21. False-positive unlock runbook

  1. Sampled / logs → rule id.
  2. curl -v reproduce.
  3. Block→Count.
  4. Narrow Allow above.
  5. Label exclusions.
  6. Retest + ticket.
  7. Default Allow + empty नको.

22. PR review checklist

  • Correct scope.
  • Priority table.
  • Count → Block date.
  • Logs encrypted.
  • 200 + 403 proofs.
  • Survey link.
  • Shield decision.
  • CF+WAF survey: chapter
  • Well-Architected — पुढचा.
  • S3 policy projects.

24. Metric आणि alarm starter pack

Day-one alarms. Thresholds = starting points.

  • BlockedRequests spike
  • CountedRequests review
  • ALB 5xx
  • ASG at max
  • DDoSDetected
  • CF error rate
  • R53 unhealthy
  • Log delivery

25. Sampled requests वाचन

  1. Sampled → rule.
  2. Action/URI/country.
  3. TP/FP/CAPTCHA.
  4. Request ids → ticket.
  5. Samples+logs.

26. Glossary

TermMeaning
Web ACLRules + default
ScopeREGIONAL / CLOUDFRONT
Managed rule groupAWS/marketplace
LabelDownstream tag
Rate-based5-min threshold
SRTAdvanced humans
Protection groupShield bundle
Firewall ManagerOrg policies
Cost protectionAttack bill relief
ChallengeSilent JS

27. 15-minute tabletop

  1. Scenario inject.
  2. Classify.
  3. First clicks + page.
  4. Comms.
  5. Gap note.

28. Cost notes

WAF = ACL+rules+requests; Bot/ATP जास्त. Shield Advanced = monthly+usage. Logs = storage. Budgets ठेवा.

29. WAF पलीकडे hygiene

  • No CF bypass.
  • IAM least privilege.
  • Log bucket BPA.
  • Quarterly IP/geo.
  • Redact secrets.
  • Break-glass doc.

30. इतर chapters शी pairing

Origin OAC = S3 projects. Security pillar = Well-Architected. CDN/HTTPS = CF+WAF survey.

31. Request flow deep dive

Browser → R53 → CF → WAF → (ALB WAF) → app. Shield पहातो. Logs → SOC.

  1. DNS+TLS (Shield).
  2. Edge WAF.
  3. Cache.
  4. Origin + regional WAF.
  5. ASG serve.
  6. Metrics/logs/SRT.

32. Rule JSON anatomy

{
  "Name": "RateLogin1000",
  "Priority": 900,
  "Action": {"Block": {"CustomResponse": {"ResponseCode": 429}}},
  "VisibilityConfig": {
    "SampledRequestsEnabled": true,
    "CloudWatchMetricsEnabled": true,
    "MetricName": "RateLogin1000"
  },
  "Statement": {
    "RateBasedStatement": {
      "Limit": 1000,
      "AggregateKeyType": "IP",
      "ScopeDownStatement": {
        "ByteMatchStatement": {
          "SearchString": "/login",
          "FieldToMatch": {"UriPath": {}},
          "TextTransformations": [{"Priority": 0, "Type": "LOWERCASE"}],
          "PositionalConstraint": "STARTS_WITH"
        }
      }
    }
  }
}

33. Text transformations

  • LOWERCASE
  • URL_DECODE
  • HTML_ENTITY_DECODE
  • CMD_LINE
  • Compress/Strip
  • Ordered transforms

34. Office-hours drills

  1. Drill 1 Count.
  2. Drill 2 priority.
  3. Drill 3 curl.
  4. Drill 4 Shield.
  5. Drill 5 runbook.
  6. Drill 6 region.
  7. Drill 7 order.
  8. Drill 8 redact.

35. Change calendar

  • Day 0
  • Day 1
  • Day 2–3
  • Day 4
  • Day 5
  • Day 7
  • Day 14
  • Day 30

उजळणी, मुलाखत आणि तुलना cards

हा lesson काही मिनिटांत revise करा. Cards phone वर save करा किंवा PNG download करा. प्रत्येक card वरचा QR हा lesson उघडतो.

उजळणी card: Shield Standard vs Advanced. Need Shield for floods. Free vs paid extras. Inventory → memo → protect. Gaming Advanced.
उजळणी card: Shield Standard vs Advanced · PNG download करा · Card page उघडा
उजळणी card: DDoS layers 3/4/7. Classify layer first. L3/L4 Shield; L7 WAF. Triage → runbook → act. Tabletop layers.
उजळणी card: DDoS layers 3/4/7 · PNG download करा · Card page उघडा
तुलना: Shield Standard vs Shield Advanced. Shield Standard: Free common L3/L4. Shield Advanced: Paid extras.
तुलना: Shield Standard vs Shield Advanced · PNG download करा · Card page उघडा
तुलना: AWS Shield vs AWS WAF. AWS Shield: DDoS layers. AWS WAF: HTTP rules.
तुलना: AWS Shield vs AWS WAF · PNG download करा · Card page उघडा
मुलाखत card: Standard vs Advanced. Compare. Free vs paid extras. Keep WAF.
मुलाखत card: Standard vs Advanced · PNG download करा · Card page उघडा
मुलाखत card: SRT काय?. People. Advanced humans. On-call stays.
मुलाखत card: SRT काय? · PNG download करा · Card page उघडा
मुलाखत card: Cost protection?. Money. Eligible charges. Evidence + budgets.
मुलाखत card: Cost protection? · PNG download करा · Card page उघडा
मुलाखत card: Shield vs WAF vs SG. One-liners. DDoS / L7 / ports. SG ≠ volumetric.
मुलाखत card: Shield vs WAF vs SG · PNG download करा · Card page उघडा

अजून cards: Ravi Sir's Cards.

सराव Tasks

या scenario बद्दल

London Legal LLP हा लंडन मधला कायदा सेवा व्यवसाय आहे. Oliver Hughes त्यांचं IT व cloud काम पाहतात. त्यांचे पैसे GBP मध्ये मोजले जातात आणि AWS resources eu-west-2 Region मध्ये चालतात. खालच्या tasks मध्ये तुम्ही या lesson मध्ये शिकलेलं वापरून त्यांची खरी कामं करता. सगळी नावं, account IDs, IP addresses व numbers सरावासाठी काल्पनिक आहेत.

0 / 16

सोपं Standard

का: Free.

काय करायचं: Standard included तर 1.

कसं करायचं:
  1. Task मधले numbers लिहून घ्या.
  2. कागदावर step by step काढा.
  3. Box मध्ये फक्त final उत्तर लिहा.
  4. Check answer दाबा.

सोपं SRT

का: Humans.

काय करायचं: SRT Advanced तर 1.

कसं करायचं:
  1. Task मधले numbers लिहून घ्या.
  2. कागदावर step by step काढा.
  3. Box मध्ये फक्त final उत्तर लिहा.
  4. Check answer दाबा.

सोपं L3

का: Flood.

काय करायचं: L3 तर 1.

कसं करायचं:
  1. Task मधले numbers लिहून घ्या.
  2. कागदावर step by step काढा.
  3. Box मध्ये फक्त final उत्तर लिहा.
  4. Check answer दाबा.

सोपं Shield

का: Name.

काय करायचं: Shield.

कसं करायचं:
  1. Task मधल्या top-level keys पासून सुरू करा.
  2. Child keys 2 spaces ने indent करा (tabs नकोत).
  3. प्रत्येक property मध्ये task मधली value भरा.
  4. Check answer दाबा. Keys चा क्रम महत्त्वाचा नाही.

सोपं Subscription

का: Advanced?

काय करायचं: Subscription state.

कसं करायचं:
  1. Task वाचा आणि ते कोणत्या AWS service बद्दल आहे ते ठरवा.
  2. aws लिहा, मग service चं नाव, मग operation (action शब्द).
  3. प्रत्येक आवश्यक flag (--name) व त्यापुढे task मधली value लिहा.
  4. Flags कोणत्याही क्रमाने चालतात. Check answer दाबा.

मध्यम L7

का: App.

काय करायचं: WAF L7 तर 1.

कसं करायचं:
  1. Task मधले numbers लिहून घ्या.
  2. कागदावर step by step काढा.
  3. Box मध्ये फक्त final उत्तर लिहा.
  4. Check answer दाबा.

मध्यम SYN

का: Transport.

काय करायचं: L4 तर 1.

कसं करायचं:
  1. Task मधले numbers लिहून घ्या.
  2. कागदावर step by step काढा.
  3. Box मध्ये फक्त final उत्तर लिहा.
  4. Check answer दाबा.

मध्यम Cost

का: Bill.

काय करायचं: Cost Adv तर 1.

कसं करायचं:
  1. Task मधले numbers लिहून घ्या.
  2. कागदावर step by step काढा.
  3. Box मध्ये फक्त final उत्तर लिहा.
  4. Check answer दाबा.

मध्यम Tier

का: Paid.

काय करायचं: Advanced.

कसं करायचं:
  1. Task मधल्या top-level keys पासून सुरू करा.
  2. Child keys 2 spaces ने indent करा (tabs नकोत).
  3. प्रत्येक property मध्ये task मधली value भरा.
  4. Check answer दाबा. Keys चा क्रम महत्त्वाचा नाही.

मध्यम Protections

का: Inventory.

काय करायचं: List protections.

कसं करायचं:
  1. Task वाचा आणि ते कोणत्या AWS service बद्दल आहे ते ठरवा.
  2. aws लिहा, मग service चं नाव, मग operation (action शब्द).
  3. प्रत्येक आवश्यक flag (--name) व त्यापुढे task मधली value लिहा.
  4. Flags कोणत्याही क्रमाने चालतात. Check answer दाबा.

मध्यम Attacks

का: History.

काय करायचं: List attacks.

कसं करायचं:
  1. Task वाचा आणि ते कोणत्या AWS service बद्दल आहे ते ठरवा.
  2. aws लिहा, मग service चं नाव, मग operation (action शब्द).
  3. प्रत्येक आवश्यक flag (--name) व त्यापुढे task मधली value लिहा.
  4. Flags कोणत्याही क्रमाने चालतात. Check answer दाबा.

अवघड Health

का: R53.

काय करायचं: Health checks तर 1.

कसं करायचं:
  1. Task मधले numbers लिहून घ्या.
  2. कागदावर step by step काढा.
  3. Box मध्ये फक्त final उत्तर लिहा.
  4. Check answer दाबा.

अवघड Groups

का: Bundle.

काय करायचं: Groups Adv तर 1.

कसं करायचं:
  1. Task मधले numbers लिहून घ्या.
  2. कागदावर step by step काढा.
  3. Box मध्ये फक्त final उत्तर लिहा.
  4. Check answer दाबा.

अवघड Layer

का: 4.

काय करायचं: 4.

कसं करायचं:
  1. Task मधल्या top-level keys पासून सुरू करा.
  2. Child keys 2 spaces ने indent करा (tabs नकोत).
  3. प्रत्येक property मध्ये task मधली value भरा.
  4. Check answer दाबा. Keys चा क्रम महत्त्वाचा नाही.

अवघड SRT

का: Call.

काय करायचं: SRT.

कसं करायचं:
  1. Task मधल्या top-level keys पासून सुरू करा.
  2. Child keys 2 spaces ने indent करा (tabs नकोत).
  3. प्रत्येक property मध्ये task मधली value भरा.
  4. Check answer दाबा. Keys चा क्रम महत्त्वाचा नाही.

अवघड Groups

का: Bundles.

काय करायचं: List groups.

कसं करायचं:
  1. Task वाचा आणि ते कोणत्या AWS service बद्दल आहे ते ठरवा.
  2. aws लिहा, मग service चं नाव, मग operation (action शब्द).
  3. प्रत्येक आवश्यक flag (--name) व त्यापुढे task मधली value लिहा.
  4. Flags कोणत्याही क्रमाने चालतात. Check answer दाबा.