BrainyBeeBrainyBee
ExploreBlogStart Studying
HomeAWS Certified DevOps Engineer - Professional (DOP-C02)AWS Network Security Components: Defense in Depth
Study Guide1,080 words

AWS Network Security Components: Defense in Depth

Network security components (for example, security groups, network ACLs, routing, AWS Network Firewall, AWS WAF, AWS Shield)

AWS Network Security Components: Defense in Depth

This study guide covers the essential network security components required for the AWS Certified DevOps Engineer - Professional (DOP-C02) exam, focusing on automating security controls and implementing layered protection.

Learning Objectives

  • Differentiate between stateful and stateless filtering mechanisms (Security Groups vs. Network ACLs).
  • Architect multi-layered security using AWS WAF, AWS Shield, and AWS Network Firewall.
  • Implement automated security controls for traffic filtering and routing in multi-account environments.
  • Understand the role of Intrusion Detection and Prevention Systems (IDS/IPS) in the cloud.

Key Terms & Glossary

  • Stateful Filtering: A firewall that tracks the state of active connections and automatically allows return traffic. (Example: Security Groups).
  • Stateless Filtering: A firewall that treats each packet as an isolated unit; return traffic must be explicitly allowed. (Example: Network ACLs).
  • IDS/IPS (Intrusion Detection/Prevention System): Tools that monitor network traffic for malicious activity and can take action to block it. (Example: AWS Network Firewall).
  • DDoS (Distributed Denial of Service): An attempt to make an online service unavailable by overwhelming it with traffic from multiple sources. (Example protected by: AWS Shield).
  • WAF (Web Application Firewall): A firewall that monitors and filters HTTP/S traffic to protect web applications from common exploits like SQL injection. (Example: AWS WAF).

The "Big Idea"

The core philosophy of AWS Network Security is Defense in Depth. No single tool is a "silver bullet." Instead, security is achieved by layering controls at the edge (CloudFront/WAF/Shield), the network perimeter (Network Firewall/Routing), and the resource level (Security Groups). This ensures that if one layer is compromised, others remain to protect the data.

Formula / Concept Box

ComponentLayerNatureScope
AWS WAFLayer 7 (Application)StatefulCloudFront, ALB, API Gateway
Security GroupLayer 4 (Instance)StatefulElastic Network Interface (ENI)
Network ACLLayer 4 (Subnet)StatelessSubnet Boundary
Network FirewallLayer 3-7 (VPC)Stateful/StatelessVPC Perimeter/Transit Gateway

Hierarchical Outline

  • I. Host-Level Security
    • Security Groups (SG)
      • Stateful: Automatically allows response traffic.
      • Rules: Allow-only (implicit deny).
      • Evaluation: All rules are evaluated before traffic is allowed.
  • II. Subnet-Level Security
    • Network Access Control Lists (NACL)
      • Stateless: Requires separate inbound/outbound rules.
      • Rules: Support Allow and Deny.
      • Evaluation: Processed in numbered order (lowest first).
  • III. VPC Perimeter & Inter-VPC Security
    • AWS Network Firewall
      • Managed IDS/IPS capabilities.
      • Fine-grained filtering for outbound (egress) traffic (FQDN filtering).
      • Deep packet inspection for VPC-to-VPC traffic.
  • IV. Edge & Application Security
    • AWS WAF: Protections against SQLi, XSS, and bot scrapers.
    • AWS Shield: Standard (free) vs. Advanced (paid DDoS protection with specialized support).

Visual Anchors

Traffic Flow Inspection

Loading Diagram...
Figure 1 — Mermaid diagram

VPC Layering

Compiling TikZ diagram…
⏳
Running TeX engine…
This may take a few seconds
Figure 2 — TikZ diagram

Definition-Example Pairs

  • FQDN Filtering: Restricting outbound traffic to specific domain names rather than just IP addresses.
    • Example: A DevOps engineer uses AWS Network Firewall to ensure that internal servers can only reach *.updates.microsoft.com and github.com for patches, blocking all other internet-bound traffic.
  • WAF Rule Groups: Pre-configured sets of rules (managed by AWS or partners) to block common threats.
    • Example: Enabling the "Core Rule Set" (CRS) in AWS WAF to automatically block common OWASP Top 10 vulnerabilities like Shellshock or SQL injection without writing custom regex.

Worked Examples

Scenario: Securing a High-Traffic API

Problem: An API hosted on an Application Load Balancer (ALB) is being targeted by a distributed botnet performing credential stuffing.

Step-by-Step Solution:

  1. Deploy AWS WAF: Associate a Web ACL with the ALB.
  2. Enable Rate-based Rules: Set a threshold (e.g., 100 requests per 5 minutes per IP) to slow down the botnet.
  3. Implement Managed Rules: Add the "Anonymous IP list" and "Known bad inputs" rule groups from AWS Managed Rules.
  4. AWS Shield Advanced: Subscribe to Shield Advanced for higher-level DDoS protection and access to the Shield Response Team (SRT).

Checkpoint Questions

  1. Why would you use a Network ACL to block a specific IP address instead of a Security Group?
  2. Which service would you use to perform deep packet inspection for traffic moving between two different VPCs connected via Transit Gateway?
  3. If a Security Group has an inbound rule allowing port 80, but the NACL has no outbound rules, will the web server be able to respond to requests? Why or why not?

Muddy Points & Cross-Refs

  • SG vs. NACL: This is a classic exam trap. Remember: SG = Resource level/Stateful; NACL = Subnet level/Stateless. If you block an IP in an SG, it only affects that resource. If you block it in a NACL, it affects everything in that subnet.
  • WAF vs. Network Firewall: WAF is Layer 7 (HTTP/S) only. Network Firewall can handle Layer 3-7 and is used for non-web protocols (like SSH, SFTP, or general outbound traffic).
  • Shield Standard vs. Advanced: Standard is automatic and free (Layer 3/4). Advanced provides Layer 7 protection, cost protection (bill credits for scaling during an attack), and 24/7 expert support.

Comparison Tables

Security Groups vs. Network ACLs

FeatureSecurity GroupNetwork ACL
LayerInstance / ENI (Layer 4)Subnet (Layer 4)
StateStateful (Returns allowed)Stateless (Must allow both ways)
RulesAllow rules onlyAllow and Deny rules
ProcessingAll rules evaluatedProcessed in order
Recommended UseGranular resource protectionDefault 'safety net' for subnets

AWS WAF vs. AWS Network Firewall

FeatureAWS WAFAWS Network Firewall
Primary GoalWeb Application ProtectionVPC/Perimeter Protection
Traffic TypeHTTP / HTTPS (Layer 7)IP, TCP/UDP, FQDN (Layer 3-7)
DeploymentALB, CloudFront, API GatewayVPC Endpoints, Transit Gateway
Key CapabilitySQLi/XSS blocking, Bot controlIDS/IPS, Egress filtering
All AWS Certified DevOps Engineer - Professional (DOP-C02) Study Resources

Related Notes

  • Mastering AWS Alerting and Automated Remediation1,050 words
  • Study Guide: Analyzing Failed Deployments in AWS940 words
  • Incident Analysis: Troubleshooting Failed Processes in AWS1,050 words
  • Mastering AWS Monitoring & Security Analytics: Logs, Metrics, and Findings1,050 words
  • AWS Log Analysis: Athena, CloudWatch Insights, and OpenSearch920 words
  • Analyzing Real-Time Log Streams with Amazon Kinesis Data Streams985 words
  • CloudWatch Anomaly Detection Alarms: Professional Study Guide820 words
  • AWS Application Storage Patterns: EBS, EFS, and S31,054 words
  • Lab: Automating Security Controls and Data Protection with AWS Secrets Manager and Config942 words
  • Master Study Guide: Automating Security Controls & Data Protection (AWS DOP-C02)1,184 words
  • Mastering AWS CloudFormation StackSets: Multi-Account & Multi-Region Orchestration895 words
  • Mastering System Configuration Changes in AWS945 words

Ready to study AWS Certified DevOps Engineer - Professional (DOP-C02)?

Practice tests, flashcards, and all study notes — free, no sign-up.

Start Studying

Ready to study AWS Certified DevOps Engineer - Professional (DOP-C02)?

Practice tests, flashcards, and all study notes — free, no sign-up needed.

Start Studying — Free
AWS Certified DevOps Engineer - Professional (DOP-C02) ResourcesExplore All HivesBlogHome

© 2026 BrainyBee. Free AI-powered exam prep.

Loading Diagram...
Flowchart, top to bottom. Internet Traffic connects to AWS Shield / WAF. B connects to VPC Gateway (Clean). C connects to Network ACL. D connects to Security Group (Allowed). E connects to EC2 / Lambda / Container (Allowed). B connects to Blocked/Dropped (Malicious). D connects to G (Deny Rule). E connects to G (No Match).