← Back to Index
Chapter 14 of 20

AWS Security Services

Domain 1 — Secure Architectures (30%)
🛡️
Question 1Scenario

A company's web application is being targeted by SQL injection and cross-site scripting (XSS) attacks. Which AWS service can detect and block these Layer 7 application attacks?

Explanation

AWS WAF works with CloudFront, ALB, API Gateway, and AppSync. You create Web ACLs with rules (AWS Managed Rule Groups or custom rules) to allow, block, or count matching requests. Pre-built managed rules cover OWASP Top 10, SQL injection, XSS, known bad inputs, and IP reputation lists. It operates at Layer 7.

Question 2Scenario

A security team wants to automatically detect when an IAM access key is used from an unusual geographic location and when EC2 instances are communicating with known cryptocurrency mining pools. Which service provides this ML-based threat detection?

Explanation

GuardDuty continuously analyses CloudTrail management events, S3 data events, VPC Flow Logs, and DNS logs. It detects threats like: compromised credentials, unusual API calls, crypto mining, data exfiltration, port scanning, and communication with malicious IPs. It requires no agents or additional infrastructure and is activated with one click.

Question 3Knowledge

A company wants DDoS protection for their CloudFront distribution and ELB at no additional cost. Which AWS service provides automatic, always-on protection against common network and transport layer DDoS attacks for free?

Explanation

AWS Shield Standard is automatically enabled for all AWS customers with no additional cost. It provides always-on detection and inline mitigation against common infrastructure (Layer 3/4) DDoS attacks. Shield Advanced adds DDoS cost protection, enhanced detection, AWS DDoS Response Team (DRT) access, and works with WAF for Layer 7 attacks.

Question 4Scenario

A company stores sensitive customer PII data in S3 and wants to automatically discover and classify this data, generating alerts when PII is detected in unexpected buckets. Which AWS service provides this?

Explanation

Amazon Macie analyses S3 objects using ML to identify sensitive data types (PII like names, credit cards, SSNs, health records). It provides a data inventory, sensitivity scores per bucket, and generates security findings (e.g., "bucket contains unencrypted credit card numbers"). Essential for GDPR, HIPAA, and PCI DSS compliance.

Question 5Scenario

A security team wants a single dashboard that aggregates security findings from GuardDuty, Inspector, Macie, and third-party tools, and checks compliance against CIS AWS Foundations Benchmark. Which service provides this?

Explanation

AWS Security Hub ingests findings from GuardDuty, Inspector, Macie, IAM Access Analyzer, Firewall Manager, and third-party products. It normalises findings into the AWS Security Finding Format (ASFF) and provides a unified view. It also runs automated compliance checks against standards like CIS AWS Foundations, PCI DSS, and AWS Foundational Security Best Practices.