All exams← All AWS Certified Advanced Networking - Specialty notes

Network Security and Compliance: AWS Certified Advanced Networking - Specialty revision notes

Revision notes

## Network Security and Compliance in AWS Advanced Networking

AWS provides a robust suite of services to secure network infrastructure and maintain compliance. Understanding these services and their advanced configurations is crucial for the AWS Certified Advanced Networking - Specialty exam.

DDoS Protection and Web Application Security

AWS Shield Standard offers automatic protection against common, frequently occurring DDoS attacks. For higher-level protection, AWS Shield Advanced provides enhanced detection, attack mitigation, and access to the AWS DDoS Response Team (DRT). It integrates with AWS WAF (Web Application Firewall), which allows you to define custom rules to filter malicious traffic based on IP addresses, HTTP headers, body, or URI strings, protecting web applications running on Application Load Balancers, Amazon CloudFront, or API Gateway.

Network Firewalling and Traffic Filtering

At the instance level, Security Groups act as stateful firewalls, controlling inbound and outbound traffic. At the subnet level, Network Access Control Lists (NACLs) are stateless firewalls, allowing or denying traffic based on rules. For centralized, managed network protection across VPCs and AWS accounts, AWS Network Firewall provides intrusion prevention and detection, URL filtering, and stateful packet inspection. It can be deployed in a centralized inspection VPC using AWS Transit Gateway for routing traffic. For integrating third-party firewalls, the Gateway Load Balancer (GLB) simplifies deployment by acting as a transparent network gateway for virtual appliances, directing traffic to and from them.

Traffic Visibility and Monitoring

VPC Flow Logs capture detailed information about IP traffic going to and from network interfaces in your VPC, aiding in security analysis and troubleshooting. VPC Traffic Mirroring allows you to copy network traffic from an elastic network interface (ENI) to a monitoring ENI for deep packet inspection, threat detection, and compliance. Amazon GuardDuty is a threat detection service that continuously monitors for malicious activity and unauthorized behavior, leveraging VPC Flow Logs, DNS logs, and CloudTrail event logs.

Data Encryption and Compliance

Ensuring data encryption in transit is paramount. AWS Site-to-Site VPN and AWS Direct Connect connections can be secured using IPsec for data encryption between on-premises networks and AWS. MACsec can be used for encryption over Direct Connect dedicated connections. For web traffic, TLS/SSL is standard. AWS IAM policies and Service Control Policies (SCPs) enforce granular access control. For compliance, AWS Config monitors resource configurations, and AWS Security Hub provides a comprehensive view of your security posture across AWS accounts.

Key facts

Flashcards

What is the primary difference between AWS Shield Standard and Shield Advanced?
Shield Advanced offers enhanced DDoS protection, cost protection, and access to the AWS DDoS Response Team (DRT), while Standard is automatic and free for common attacks.
tap to reveal
How do Security Groups and Network ACLs differ in their statefulness?
Security Groups are stateful (automatically allow return traffic), whereas Network ACLs are stateless (require explicit rules for both inbound and outbound traffic).
tap to reveal
What AWS service allows for centralized, managed network firewalling across multiple VPCs and accounts?
AWS Network Firewall.
tap to reveal
Which AWS service enables transparent integration of third-party network virtual appliances like firewalls?
Gateway Load Balancer (GLB).
tap to reveal
How can you perform deep packet inspection of network traffic within a VPC without impacting application performance?
Use VPC Traffic Mirroring to copy traffic from an Elastic Network Interface (ENI) to a monitoring ENI.
tap to reveal
What encryption protocol is commonly used to secure data in transit over AWS Site-to-Site VPN and Direct Connect?
IPsec (Internet Protocol Security). For Direct Connect dedicated connections, MACsec can also be used.
tap to reveal
Which AWS service continuously monitors for malicious activity and unauthorized behavior by analyzing VPC Flow Logs, DNS logs, and CloudTrail events?
Amazon GuardDuty.
tap to reveal
What is the purpose of AWS WAF in network security?
AWS WAF protects web applications from common web exploits and bots by allowing you to define custom rules to filter malicious HTTP/HTTPS traffic.
tap to reveal
Practice questions

Network Security and Compliance: 5 practice questions

Q1. A network administrator has configured a Network ACL (NACL) to allow inbound traffic on TCP port 443. An EC2 instance in the associated subnet is not responding to HTTPS requests from the internet. What is the most likely reason for this connectivity failure, assuming the instance's security group is correctly configured to allow the traffic?
  • A.  NACLs are stateful, so the problem must be with the Security Group.
  • B.  An explicit outbound rule is required in the NACL to allow the return traffic.
  • C.  Security Groups are stateless and are blocking the return traffic.
  • D.  The NACL is blocking traffic because it operates at the application layer.
Show answer & explanation
✓ Answer: B. An explicit outbound rule is required in the NACL to allow the return traffic.
Network ACLs are stateless. This means that if you allow inbound traffic, you must also explicitly create a corresponding outbound rule to allow the return (ephemeral port) traffic. Security Groups, in contrast, are stateful.
Q2. A company wants to inspect all traffic between its spoke VPCs and from the spoke VPCs to the internet. They are using an AWS Transit Gateway to connect the VPCs. Which architecture should be implemented to achieve this centralized inspection in the most scalable and manageable way?
  • A.  Create a VPC peering mesh between all spoke VPCs and route traffic through a central EC2 instance.
  • B.  Configure route tables in each spoke VPC to send all traffic to an Inspection VPC attached to the Transit Gateway.
  • C.  Deploy AWS WAF in each spoke VPC to inspect all traffic locally.
  • D.  Use VPC Flow Logs in a central logging account to perform deep packet inspection.
Show answer & explanation
✓ Answer: B. Configure route tables in each spoke VPC to send all traffic to an Inspection VPC attached to the Transit Gateway.
The standard architecture for centralized inspection is to create a dedicated Inspection VPC attached to the Transit Gateway. Route tables on the TGW and in the spoke VPCs are modified to force all inter-VPC and egress traffic through security appliances in the Inspection VPC.
Q3. When a packet is processed by an AWS Network Firewall, what is the correct order of evaluation for the firewall policy's rule groups and default actions?
  • A.  Stateful rule groups, then stateless rule groups, then default actions.
  • B.  Stateless rule groups, then stateful rule groups, then default actions.
  • C.  Default actions, then stateless rule groups, then stateful rule groups.
  • D.  Stateful and stateless rule groups are evaluated in parallel, followed by default actions.
Show answer & explanation
✓ Answer: B. Stateless rule groups, then stateful rule groups, then default actions.
AWS Network Firewall processes packets in a specific order: first, stateless rule groups are evaluated for a quick pass/drop/forward decision. If forwarded, the packet is then evaluated against the stateful rule engine. If no match is found, the default actions for the packet are applied.
Q4. A company is hosting a public web application on EC2 instances behind an Application Load Balancer (ALB). They need to protect the application from common web exploits like SQL injection and cross-site scripting (XSS) at the application layer. Which AWS service should be integrated with the ALB to provide this protection?
  • A.  AWS Shield Advanced
  • B.  AWS Network Firewall
  • C.  Amazon GuardDuty
  • D.  AWS WAF (Web Application Firewall)
Show answer & explanation
✓ Answer: D. AWS WAF (Web Application Firewall)
AWS WAF is a web application firewall that helps protect your web applications from common web exploits that could affect application availability, compromise security, or consume excessive resources. It integrates directly with an Application Load Balancer, Amazon CloudFront, or API Gateway.
Q5. A financial services company requires end-to-end encryption for a new 10 Gbps AWS Direct Connect connection to meet compliance standards. The solution must provide line-rate, Layer 2 encryption without introducing significant performance overhead. What is the most suitable option?
  • A.  Establish an IPsec VPN tunnel over the Direct Connect public VIF.
  • B.  Use a Direct Connect connection that supports MACsec (IEEE 802.1AE).
  • C.  Enable SSL/TLS for all application traffic traversing the Direct Connect link.
  • D.  Configure AWS Certificate Manager (ACM) on the Direct Connect gateway.
Show answer & explanation
✓ Answer: B. Use a Direct Connect connection that supports MACsec (IEEE 802.1AE).
MACsec provides point-to-point security at Layer 2, encrypting data between your on-premises router and the AWS Direct Connect location. It is designed for high-speed, line-rate encryption (10 Gbps and 100 Gbps) and is the ideal solution for this requirement.
Test yourself
See the AWS Certified Advanced Networking - Specialty page

More AWS Certified Advanced Networking - Specialty topics