Learn Domain 3: Infrastructure Security (AWS SCS-C03) with Interactive Flashcards

Master key concepts in Domain 3: Infrastructure Security through our interactive flashcard system. Click on each card to reveal detailed explanations and enhance your understanding.

AWS WAF and Shield

AWS WAF (Web Application Firewall) and AWS Shield are critical security services designed to protect applications from web-based threats and DDoS (Distributed Denial of Service) attacks, both essential topics under Domain 1: Threat Detection and Incident Response of the SCS-C02 exam.

**AWS WAF** is a web application firewall that allows you to monitor and control HTTP/HTTPS requests forwarded to protected resources such as Amazon CloudFront, Application Load Balancer (ALB), Amazon API Gateway, and AWS AppSync. It works by defining Web ACLs (Access Control Lists) containing rules that inspect incoming traffic based on conditions like IP addresses, HTTP headers, URI strings, SQL injection patterns, and cross-site scripting (XSS). Rules can be custom-built or sourced from AWS Managed Rule Groups and AWS Marketplace. WAF supports rate-based rules to detect and mitigate request flooding. It integrates with AWS Firewall Manager for centralized management across multiple accounts.

**AWS Shield** provides DDoS protection at two tiers:

1. **Shield Standard** – Automatically included at no extra cost for all AWS customers. It protects against common Layer 3 and Layer 4 DDoS attacks such as SYN floods, UDP reflection attacks, and DNS query floods.

2. **Shield Advanced** – A paid service offering enhanced protection for Amazon EC2, Elastic Load Balancing, CloudFront, Global Accelerator, and Route 53. It provides real-time attack visibility, advanced attack mitigation, 24/7 access to the AWS DDoS Response Team (DRT), cost protection against DDoS-related scaling charges, and detailed attack diagnostics via AWS Shield Advanced dashboards.

For incident response, both services integrate with Amazon CloudWatch for monitoring, AWS CloudTrail for audit logging, and Amazon SNS for alerting. WAF logs can be sent to Amazon S3, CloudWatch Logs, or Amazon Kinesis Data Firehose for analysis. Together, AWS WAF and Shield form a layered defense strategy, enabling proactive threat detection, automated mitigation, and rapid incident response against web-layer and volumetric attacks.

VPC Security (Security Groups, NACLs)

VPC Security is a fundamental component of AWS infrastructure security, primarily managed through Security Groups and Network Access Control Lists (NACLs). These two mechanisms work together to provide layered defense for resources within a Virtual Private Cloud (VPC).

**Security Groups** act as virtual firewalls at the instance level (ENI level). Key characteristics include:
- **Stateful**: Return traffic is automatically allowed regardless of outbound rules. If you allow inbound traffic on port 443, the response is automatically permitted.
- **Allow-only rules**: You can only specify allow rules; there are no explicit deny rules.
- **Default behavior**: All inbound traffic is denied by default, and all outbound traffic is allowed by default.
- **Rule evaluation**: All rules are evaluated before deciding whether to allow traffic.
- **Chaining**: Security groups can reference other security groups, enabling flexible, identity-based access control.

**Network ACLs (NACLs)** operate at the subnet level and provide an additional layer of security. Key characteristics include:
- **Stateless**: Return traffic must be explicitly allowed through outbound rules. You must configure ephemeral port ranges for response traffic.
- **Allow and deny rules**: Both allow and deny rules can be specified, enabling explicit blocking of specific IPs or ranges.
- **Default behavior**: The default NACL allows all inbound and outbound traffic. Custom NACLs deny all traffic by default.
- **Rule evaluation**: Rules are evaluated in numerical order (lowest first), and processing stops at the first match.
- **Subnet association**: Each subnet must be associated with exactly one NACL.

**Defense in Depth Strategy**: For the SCS-C02 exam, understanding the layered approach is critical. Security Groups provide instance-level protection while NACLs add subnet-level control. Best practices include using Security Groups as the primary defense mechanism and NACLs for broad subnet-level blocking (e.g., denying known malicious IP ranges). Together, they form a robust multi-layered security architecture essential for protecting AWS workloads.

AWS Network Firewall

AWS Network Firewall is a managed, stateful network firewall and intrusion detection/prevention service designed to protect Amazon VPC environments. It is a critical component within Domain 3 (Infrastructure Security) of the AWS Certified Security – Specialty (SCS-C02) exam.

**Key Features:**

1. **Stateful and Stateless Inspection:** AWS Network Firewall supports both stateless rule groups (operating on individual packets based on source/destination IP, port, and protocol) and stateful rule groups (which track connection states and can inspect traffic at the application layer).

2. **Intrusion Prevention System (IPS):** It provides signature-based detection using Suricata-compatible IPS rules, enabling detection and blocking of known threats, malware, and exploits.

3. **Deep Packet Inspection:** The firewall can inspect traffic payloads, including TLS-encrypted traffic through TLS inspection capabilities, allowing visibility into encrypted communications.

4. **Domain Filtering:** You can create allow or deny lists based on domain names, enabling outbound traffic filtering to restrict access to specific websites or services.

5. **Integration with AWS Services:** Network Firewall integrates with AWS Firewall Manager for centralized policy management across multiple accounts and VPCs. It also sends logs to Amazon S3, CloudWatch Logs, and Kinesis Data Firehose for monitoring and analysis.

**Architecture:**
Network Firewall is deployed within a dedicated firewall subnet in your VPC. Traffic is routed through the firewall endpoint using VPC route table modifications. It operates transparently and scales automatically to handle traffic demands.

**Deployment Patterns:**
- Centralized deployment using AWS Transit Gateway for inspecting traffic across multiple VPCs
- Distributed deployment within individual VPCs
- Combined ingress/egress filtering

**Security Exam Relevance:**
For SCS-C02, understanding when to use Network Firewall versus Security Groups, NACLs, or AWS WAF is essential. Network Firewall fills the gap for advanced Layer 3-7 filtering, IPS capabilities, and protocol-level inspection that simpler controls cannot provide. It is ideal for compliance-driven environments requiring deep traffic inspection and centralized network security enforcement.

AWS Systems Manager

AWS Systems Manager (SSM) is a comprehensive management service that provides visibility and control over your AWS infrastructure. In the context of the AWS Certified Security – Specialty (SCS-C02) exam and Domain 3: Infrastructure Security, it plays a critical role in maintaining secure and compliant infrastructure.

**Key Security Features:**

1. **Session Manager**: Provides secure, auditable shell access to EC2 instances without opening inbound ports, eliminating the need for SSH keys or bastion hosts. All sessions are logged to CloudTrail, S3, and CloudWatch.

2. **Patch Manager**: Automates the process of patching managed instances with security-related updates. You can define patch baselines, maintenance windows, and compliance rules to ensure systems remain up-to-date.

3. **Parameter Store**: Securely stores configuration data, secrets, and passwords. It integrates with AWS KMS for encryption and supports hierarchical storage with fine-grained IAM access controls.

4. **Inventory**: Collects metadata about instances, installed applications, network configurations, and more, enabling compliance auditing and drift detection.

5. **State Manager**: Ensures instances maintain a defined configuration state, automatically remediating configuration drift.

6. **Run Command**: Executes commands remotely across multiple instances without SSH access, with full audit logging.

7. **Compliance**: Provides a dashboard showing patch compliance and configuration consistency across your fleet.

**Security Architecture Considerations:**

- SSM Agent communicates outbound to Systems Manager endpoints, eliminating inbound port requirements.
- Instances require an IAM instance profile with appropriate SSM permissions (AmazonSSMManagedInstanceCore).
- VPC Endpoints (PrivateLink) can be configured for SSM to keep traffic within the AWS network.
- All API calls are logged in CloudTrail for auditing.

**Integration Points:**
Systems Manager integrates with AWS Config, CloudWatch, EventBridge, and AWS Organizations for centralized security management across multiple accounts.

For the SCS-C02 exam, understanding how Systems Manager eliminates direct instance access, enforces patching compliance, manages secrets securely, and maintains infrastructure configuration is essential for infrastructure security questions.

Amazon Inspector

Amazon Inspector is an automated security assessment service offered by AWS that helps improve the security and compliance of applications and workloads deployed on AWS. It is a critical service within Domain 3: Infrastructure Security of the AWS Certified Security – Specialty (SCS-C02) exam.

Amazon Inspector continuously scans AWS workloads for software vulnerabilities and unintended network exposure. It automatically discovers and scans running Amazon EC2 instances, container images stored in Amazon ECR, and AWS Lambda functions for known vulnerabilities and network reachability issues.

Key features of Amazon Inspector include:

1. **Automated Discovery and Scanning**: Inspector automatically detects eligible resources and begins scanning them without manual configuration. It uses an SSM (Systems Manager) agent for EC2 assessments.

2. **Vulnerability Management**: It leverages the Common Vulnerabilities and Exposures (CVE) database to identify software vulnerabilities, providing detailed findings with severity ratings and remediation guidance.

3. **Network Reachability Analysis**: Inspector evaluates network configurations to identify unintended network exposure, such as open ports accessible from the internet.

4. **Risk Scoring**: Each finding includes an Inspector risk score that contextualizes vulnerabilities based on factors like network accessibility and exploitability, going beyond standard CVSS scores.

5. **Integration with AWS Services**: Inspector integrates with AWS Security Hub for centralized security findings, Amazon EventBridge for automated workflows, and AWS Organizations for multi-account management.

6. **Continuous Monitoring**: Unlike one-time assessments, Inspector provides continuous scanning, automatically re-scanning resources when new CVEs are published or when changes occur in the environment.

7. **Software Bill of Materials (SBOM)**: Inspector can export SBOMs for monitored resources, supporting compliance and supply chain security requirements.

For the SCS-C02 exam, understanding Inspector's role in vulnerability management, its integration points, the difference between network and host assessments, and how it supports a defense-in-depth strategy is essential. It plays a vital role in maintaining a strong security posture across AWS infrastructure.

CloudFront Security

Amazon CloudFront is AWS's Content Delivery Network (CDN) service that plays a critical role in infrastructure security. Here's a comprehensive overview of CloudFront Security:

**Origin Security:**
CloudFront supports Origin Access Control (OAC) and legacy Origin Access Identity (OAI) to restrict direct access to S3 bucket origins. For custom origins, you can use custom headers, SSL/TLS certificates, and security groups to ensure only CloudFront can reach your backend.

**Encryption in Transit:**
CloudFront enforces HTTPS between viewers and edge locations (Viewer Protocol Policy) and between edge locations and origins (Origin Protocol Policy). You can configure policies like 'Redirect HTTP to HTTPS' or 'HTTPS Only.' CloudFront supports TLS 1.2/1.3 and allows custom SSL certificates via AWS Certificate Manager (ACM).

**Access Controls:**
CloudFront supports signed URLs and signed cookies for restricting access to private content. These use trusted key groups or trusted signers with RSA key pairs to control who can access your distributions.

**AWS WAF Integration:**
CloudFront natively integrates with AWS WAF, enabling you to create Web ACLs with rules to block SQL injection, XSS, rate-based attacks, geo-restrictions, and IP-based filtering at the edge.

**DDoS Protection:**
CloudFront is automatically protected by AWS Shield Standard, providing protection against common Layer 3/4 DDoS attacks. AWS Shield Advanced can be added for enhanced protection with 24/7 DRT support.

**Field-Level Encryption:**
CloudFront supports field-level encryption, allowing sensitive data fields to be encrypted at edge locations using asymmetric encryption, ensuring only authorized applications can decrypt the data.

**Security Policies:**
Security policies define minimum TLS protocol versions and cipher suites for HTTPS connections. You can choose policies like TLSv1.2_2021 for stronger security.

**Geo-Restriction:**
CloudFront enables geographic restrictions using allowlists or denylists to control content access by country.

**Logging and Monitoring:**
CloudFront provides standard and real-time logs, integrates with CloudWatch metrics, and supports CloudTrail for API-level auditing.

Protections and Guardrails for Generative AI Applications

In SCS-C03 Domain 3, protections and guardrails for generative AI applications are the layered controls that secure the infrastructure hosting foundation models (FMs) and control how users and applications interact with them.

Amazon Bedrock Guardrails is the core service-level control. It provides configurable policies: content filters that block hate, insults, sexual content, violence, misconduct, and prompt attacks such as jailbreaks and prompt injection; denied topics that restrict off-scope subjects; word filters for profanity or custom terms; sensitive information filters that block or mask PII and custom regex patterns; contextual grounding checks that reduce hallucinations in RAG responses; and Automated Reasoning checks that validate outputs against defined rules. Guardrails evaluate both prompts and responses. Through the ApplyGuardrail API, they can also protect models hosted outside Bedrock, such as on SageMaker or third-party platforms.

Infrastructure controls form the next layer. Use VPC interface endpoints (AWS PrivateLink) so Bedrock and SageMaker traffic stays off the public internet. Enable SageMaker network isolation for training and inference containers. Place AWS WAF in front of API Gateway or CloudFront endpoints that expose AI applications to filter malicious requests and apply rate-based rules against abuse and cost exhaustion attacks. AWS Shield adds DDoS protection.

Identity and governance controls enforce guardrails at scale. IAM policies can require a specific guardrail using the bedrock:GuardrailIdentifier condition key. Service control policies (SCPs) can restrict which models or Regions are allowed across AWS Organizations. Apply least privilege to model invocation, knowledge bases, and agents, and scope Bedrock Agent action groups tightly to limit excessive agency.

Data protection includes AWS KMS customer managed keys for custom models, knowledge bases, and logs, plus Amazon Macie to discover sensitive data in training or RAG source buckets.

Finally, monitoring relies on Bedrock model invocation logging to CloudWatch or S3, CloudTrail for API activity, and CloudWatch metrics for guardrail interventions. Exam scenarios often map these controls to the OWASP Top 10 for LLM Applications.

Edge Integrations: OCSF and Third-Party WAF Rules

In Domain 3 (Infrastructure Security), edge integrations cover how AWS edge protections connect with standardized security data and partner-built defenses. Two key topics are the Open Cybersecurity Schema Framework (OCSF) and third-party AWS WAF rules.

OCSF is an open-source, vendor-neutral schema that normalizes security events into consistent fields and classes, such as network activity, HTTP activity, and findings. Amazon Security Lake uses OCSF to centralize logs in an S3-based data lake, stored in Apache Parquet format for efficient querying. Native sources include CloudTrail, VPC Flow Logs, Route 53 Resolver query logs, Security Hub findings, EKS audit logs, and AWS WAF logs. Edge telemetry from AWS WAF attached to CloudFront, Application Load Balancers, or API Gateway can be correlated with network and identity events using common field names. Custom sources, such as third-party firewalls or CDNs, must send data already converted to OCSF. Subscribers like SIEM or XDR tools (Splunk, IBM QRadar, CrowdStrike) receive data access or query access. You can analyze it with Amazon Athena or OpenSearch. Exam tip: when a question asks for centralized, normalized, multi-account security analytics with minimal custom parsing, Security Lake with OCSF is usually the answer.

Third-party WAF rules are managed rule groups sold by security vendors, such as F5, Fortinet, Imperva, and Cyber Security Cloud, through AWS Marketplace. After subscribing, you add the rule group to a web ACL alongside AWS Managed Rules and custom rules. Key considerations include Web ACL Capacity Units (WCUs), rule priority ordering, version management, and testing in Count mode before switching to Block. You can override individual rule actions or apply scope-down statements to limit evaluation. Vendors maintain signatures for emerging threats like zero-day exploits or bot patterns, reducing operational effort. AWS Firewall Manager can enforce these rule groups consistently across all accounts in AWS Organizations.

Together, these features let you block threats at the edge and investigate them with standardized, cross-source visibility.

Hardened AMIs and Container Images

Hardened AMIs and container images are foundational to infrastructure security in AWS because they set a trusted, minimal, and compliant baseline before any workload runs. Domain 3 of SCS-C03 expects you to know how to build, validate, distribute, and maintain these "golden images."

A hardened Amazon Machine Image (AMI) starts from a trusted source, such as an AWS-provided image or a CIS-hardened image from AWS Marketplace. Hardening includes:
- Removing unnecessary packages and services, and closing unused ports.
- Enforcing secure SSH settings, or replacing SSH with Session Manager.
- Applying the latest OS patches.
- Installing the SSM Agent and the CloudWatch agent, and configuring logging.

EC2 Image Builder automates this pipeline using components, recipes, and infrastructure configurations. It can apply STIG or CIS hardening components, run validation tests, and use Amazon Inspector findings before it distributes AMIs across accounts and Regions.

Governance is equally important:
- Share AMIs through AWS Organizations or AWS RAM.
- Encrypt the underlying EBS snapshots with customer managed AWS KMS keys.
- Enforce approved AMIs with AWS Config rules (approved-amis-by-id or approved-amis-by-tag), Service Control Policies, or the EC2 Allowed AMIs setting.
- Use Systems Manager Patch Manager to keep running instances aligned.
- Rebuild images on a schedule to prevent configuration drift, deprecate outdated AMIs, and turn on block public access for AMIs to stop accidental exposure.

For containers, hardening means:
- Using minimal base images, such as distroless or Alpine, and minimal hosts like Bottlerocket.
- Running processes as non-root.
- Stripping shells and package managers.
- Keeping secrets out of images; inject them at runtime from AWS Secrets Manager or Parameter Store instead.

Amazon ECR adds several protections: basic scanning, and enhanced scanning through Amazon Inspector for OS and programming-language package vulnerabilities. It also offers tag immutability, KMS encryption, and repository policies for least-privilege access. Image signing with AWS Signer and Notation, verified at deployment by admission controllers in Amazon EKS, confirms image integrity and provenance.

Exam scenarios often test automated image pipelines, enforcement of approved images only, continuous vulnerability scanning, and remediating findings by rebuilding and redeploying images rather than patching live instances or containers.

Finding and Fixing Vulnerabilities in a Pipeline

In the SCS-C03 exam, Domain 3 (Infrastructure Security) expects you to know how to embed vulnerability detection and remediation into CI/CD pipelines, an approach often called "shifting security left." The goal is to catch flaws before they reach production, where fixing them costs more and exposes more risk.

Finding vulnerabilities: A typical AWS pipeline uses AWS CodePipeline to orchestrate stages and AWS CodeBuild to compile, test, and scan. Key detection layers include:
1. Static code analysis: Amazon CodeGuru Security (or third-party SAST tools) reviews source code for issues such as injection flaws, hardcoded credentials, and weak cryptography.
2. Dependency and image scanning: Amazon Inspector integrates with CodeBuild and CI tools through its SBOM generator and ScanSbom API to identify vulnerable packages. Amazon ECR enhanced scanning, powered by Inspector, continuously checks container images for CVEs on push and when new CVEs are published.
3. Infrastructure as Code (IaC) checks: AWS CloudFormation Guard, cfn-nag, or Checkov validate templates against policies, flagging open security groups, unencrypted storage, or overly permissive IAM policies.
4. Secrets detection: Tools such as git-secrets prevent credentials from being committed, and AWS Secrets Manager supplies secrets at build time.

Fixing vulnerabilities: Configure quality gates so that a build fails when findings exceed a severity threshold (for example, Critical or High CVEs). Findings flow to AWS Security Hub for centralized visibility. Amazon EventBridge rules can trigger AWS Lambda functions or Systems Manager Automation runbooks to open tickets, notify teams through Amazon SNS, or rebuild images with patched base layers. EC2 Image Builder produces hardened, regularly patched golden AMIs and container images, while Systems Manager Patch Manager keeps running instances current.

Pipeline hardening: Secure the pipeline itself by granting least-privilege IAM roles to CodeBuild and CodePipeline, encrypting artifacts in S3 with AWS KMS, requiring manual approval stages for production, signing images with AWS Signer, and logging activity with AWS CloudTrail.

Exam tip: When a question asks for automated, scalable, low-overhead vulnerability management in pipelines, favor managed services such as Inspector, ECR enhanced scanning, Security Hub, and EventBridge-driven remediation.

Secure Hybrid and Multi-Cloud Connectivity

Secure hybrid and multi-cloud connectivity covers how AWS workloads communicate safely with on-premises data centers and other cloud providers. For the SCS-C03 exam, you should know the connectivity options, how to encrypt traffic in transit, and how to apply segmentation and monitoring across network boundaries.

1. AWS Site-to-Site VPN creates IPsec tunnels over the internet between a customer gateway and a virtual private gateway or AWS Transit Gateway. It provides encryption by default, supports IKEv2, and offers two tunnels for redundancy. It is quick to deploy and works well as a primary link for smaller workloads or as a backup for Direct Connect.

2. AWS Direct Connect provides dedicated private bandwidth with consistent performance. Traffic on Direct Connect is not encrypted by default. To secure it, use MACsec (Layer 2 encryption on supported dedicated connections) or run an IPsec VPN over a public or transit virtual interface. Exam questions often test whether you recognize this encryption gap.

3. AWS Transit Gateway acts as a central hub connecting VPCs, VPNs, and Direct Connect gateways. Separate route tables enable segmentation, for example isolating production from development or inspecting traffic through a security VPC that runs AWS Network Firewall or third-party appliances through Gateway Load Balancer.

4. AWS Client VPN gives remote users secure access, with authentication through Active Directory, SAML federation, or mutual certificates, plus authorization rules that limit reachable networks.

5. For multi-cloud, common patterns include IPsec VPNs between AWS and other providers, partner interconnects, and AWS PrivateLink to expose services privately. Consistent identity is achieved through IAM Roles Anywhere, which lets external workloads use X.509 certificates to obtain temporary AWS credentials instead of long-term access keys.

Supporting controls include VPC Flow Logs, Transit Gateway Flow Logs, Route 53 Resolver endpoints for hybrid DNS with DNS Firewall, CloudWatch alarms on tunnel status, and least-privilege security groups and network ACLs. The exam rewards choosing designs that combine encryption, redundancy, segmentation, and visibility.

AWS Verified Access and Unnecessary Network Access

AWS Verified Access is a Zero Trust service that gives users secure access to corporate applications with no VPN required. It supports HTTP(S) applications and non-HTTP resources, such as databases and EC2 instances reached over TCP. Every request is evaluated in real time against fine-grained policies written in the Cedar language. These policies use signals from identity trust providers, such as IAM Identity Center or OIDC-compatible IdPs like Okta, and from device trust providers, such as CrowdStrike, Jamf, or JumpCloud. Access decisions rely on user identity, group membership, device posture, and request context rather than network location.

The core components are:
- Verified Access instances.
- Trust providers.
- Groups, which are collections of endpoints that share a policy.
- Endpoints, such as load balancers, network interfaces, RDS databases, or CIDR ranges.

Access logs can be delivered to CloudWatch Logs, S3, or Kinesis Data Firehose in OCSF format, which supports auditing and Amazon Security Lake integration. AWS WAF integration adds Layer 7 protection.

Unnecessary network access is overly permissive connectivity that expands the attack surface. Common examples include:
- Security groups that allow 0.0.0.0/0 on SSH (22) or RDP (3389).
- Broad NACL rules.
- Internal workloads placed in public subnets.
- Flat VPC peering meshes.
- VPNs that grant full network reach once a user connects.

Traditional VPNs illustrate the risk well, because authenticated users often gain lateral movement opportunities across entire subnets.

For the exam, link the two concepts. Verified Access reduces unnecessary network access by enforcing least privilege per application and removing implicit network-level trust. Complementary controls include:
- Systems Manager Session Manager or EC2 Instance Connect Endpoint instead of open SSH ports.
- Security group referencing.
- PrivateLink-based VPC endpoints.
- AWS Network Firewall.
- AWS Firewall Manager for centralized policy enforcement.

Detection tools include:
- AWS Config rules such as restricted-ssh and vpc-sg-open-only-to-authorized-ports.
- Security Hub findings.
- Network Access Analyzer, which identifies unintended network paths.
- Amazon Inspector network reachability findings.

Scenario tip: when a question asks how to replace VPN-based access to internal applications with identity-aware and device-aware controls, choose AWS Verified Access.

More Domain 3: Infrastructure Security questions
316 questions (total)
Practice questions
One session at a time, always new questions