Skip to content
Draft: this topic has not been reviewed yet. Check facts against the linked AWS documentation before relying on them.

AWS security services — which one does what

Cloud Practitioner · Domain 2 · Security and ComplianceTask 2.4: Identify components and resources for securityTask 2.2: Understand AWS Cloud security, governance, and compliance conceptsLevel 120 minComparisonDraft
Difficulty
Confidence

AWS has many security services, and their names do not always explain what they do. The exam usually describes a need in one sentence and asks which service fits, so the best way to learn them is by the job each one does.

The services fall into three groups: protecting the front door, finding threats and weaknesses, and bringing it all together.

Protecting the front door

AWS WAF (web application firewall)

WAF inspects incoming web requests (HTTP and HTTPS) and blocks the ones that match your rules. It can stop common attacks such as SQL injection and cross-site scripting (XSS), block traffic from certain IP addresses or countries, and limit clients that send too many requests.

WAF protects resources such as CloudFront distributions, Application Load Balancers and API Gateway APIs. You can write your own rules or use managed rule groups.

AWS Shield (DDoS protection)

A distributed denial-of-service (DDoS) attack floods your application with traffic from many sources so real users cannot get through.

  • Shield Standard is automatic and free for every AWS customer. It protects against the most common network-layer attacks.
  • Shield Advanced is a paid service with more protection for applications on services such as CloudFront, Route 53 and load balancers, 24/7 access to the Shield Response Team, and cost protection for scaling charges caused by an attack.

AWS Firewall Manager

If you have many AWS accounts, setting up firewall rules in each one is slow and error-prone. Firewall Manager applies WAF rules, Shield Advanced protections and security group rules centrally across all accounts in AWS Organizations, including new accounts as they are created.

Finding threats and weaknesses

Service Its job What it looks at Example finding
Amazon GuardDuty Threat detection CloudTrail events, VPC flow logs and DNS logs, using machine learning and threat intelligence “An instance is talking to a known crypto-mining server”
Amazon Inspector Vulnerability scanning EC2 instances, container images in Amazon ECR and Lambda functions “This server has a software package with a known critical vulnerability”
Amazon Macie Sensitive data discovery Objects in Amazon S3 “This bucket contains files with credit card numbers”
Amazon Detective Investigation Findings and logs, linked into visual graphs “Here is everything this suspicious IP address did over the last week”

A useful distinction:

  • GuardDuty finds suspicious activity happening now (a threat).
  • Inspector finds weaknesses that could be exploited (a vulnerability).
  • Detective helps you investigate a finding to find the root cause.

Bringing it all together

  • AWS Security Hub collects findings from GuardDuty, Inspector, Macie and other tools into one dashboard, and checks your accounts against security standards and best practices.
  • AWS Trusted Advisor checks your account against AWS best practices. Its security checks include MFA on the root user, security groups with unrestricted ports, and S3 bucket permissions.

Third-party tools and security information

  • AWS Marketplace sells third-party security products, such as firewalls, antivirus and endpoint protection, which you can buy and deploy with billing through your AWS account.
  • AWS Security Center (aws.amazon.com/security) explains AWS’s security approach and links to whitepapers.
  • AWS Security Blog covers new features, how-tos and best practices.
  • AWS Knowledge Center on AWS re:Post answers common security questions.

Putting it together: protecting a web shop

Need Service
Block SQL injection attempts on the website AWS WAF
Stay online during a traffic flood attack AWS Shield (Standard automatically; Advanced for extra help)
Get alerted if a server starts contacting known malicious IPs Amazon GuardDuty
Find servers with unpatched software Amazon Inspector
Make sure no bucket holds customer passport scans by mistake Amazon Macie
Investigate what a compromised user did Amazon Detective
See all findings and compliance scores in one place AWS Security Hub
Apply the same WAF rules to 50 accounts AWS Firewall Manager

Common mix-ups

  • WAF vs Shield. WAF filters bad web requests by rules (layer 7). Shield defends against floods of traffic (DDoS).
  • WAF vs security groups. Security groups allow or block traffic by port and IP at the instance level; WAF understands web requests and can spot attack patterns in them.
  • GuardDuty vs Inspector. Threats vs vulnerabilities.
  • Security Hub vs Trusted Advisor. Security Hub focuses on security findings and standards; Trusted Advisor gives best-practice checks across cost, performance, security, fault tolerance, service limits and operational excellence.

Check yourself

Which service protects a website from SQL injection attacks?

AWS WAF.

Which DDoS protection do all AWS customers get at no extra cost?

AWS Shield Standard.

A company needs to find personal data stored in S3 buckets. Which service?

Amazon Macie.

What is the difference between Amazon GuardDuty and Amazon Inspector?

GuardDuty detects active threats by analyzing logs; Inspector scans resources for software vulnerabilities and unintended network exposure.

Key takeaways

  • Front door: WAF (web request rules), Shield (DDoS), Firewall Manager (central rules).
  • Detection: GuardDuty (threats), Inspector (vulnerabilities), Macie (sensitive data), Detective (investigation).
  • Overview: Security Hub (all findings) and Trusted Advisor (best-practice checks).

Cloud Study Lab is an independent study site. It is not affiliated with or endorsed by Amazon Web Services. AWS and the names of AWS certifications are trademarks of Amazon.com, Inc. or its affiliates.