Learn Domain 1: Detection (AWS SCS-C03) with Interactive Flashcards

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

Amazon GuardDuty

Amazon GuardDuty is a fully managed, intelligent threat detection service provided by AWS that continuously monitors your AWS accounts, workloads, and data for malicious activity and unauthorized behavior. It is a cornerstone service within Domain 1: Threat Detection and Incident Response of the AWS Certified Security – Specialty (SCS-C02) exam.

GuardDuty leverages machine learning, anomaly detection, and integrated threat intelligence feeds (including AWS-curated sources and third-party feeds like CrowdStrike and Proofpoint) to identify potential threats. It analyzes multiple data sources, including AWS CloudTrail event logs (management and data events), Amazon VPC Flow Logs, DNS query logs, Amazon EKS audit logs, Amazon S3 data events, and RDS login activity.

Key features include:

1. **Finding Types**: GuardDuty generates findings categorized into three main threat categories — Reconnaissance (e.g., port scanning), Instance Compromise (e.g., cryptocurrency mining, malware communication), and Account Compromise (e.g., unusual API calls from anomalous locations).

2. **Multi-Account Support**: Through AWS Organizations integration, GuardDuty supports centralized management via a delegated administrator account, enabling organization-wide threat detection.

3. **Automated Response**: Findings can be sent to Amazon EventBridge, enabling automated remediation workflows using AWS Lambda, AWS Step Functions, or integration with AWS Security Hub for centralized security management.

4. **Malware Protection**: GuardDuty offers malware scanning for Amazon EBS volumes attached to EC2 instances and container workloads when suspicious activity is detected.

5. **Severity Levels**: Findings are classified as Low, Medium, or High severity, helping security teams prioritize incident response efforts.

6. **No Infrastructure Management**: GuardDuty requires no agents, sensors, or additional infrastructure — it can be enabled with a single click and operates independently without impacting workload performance.

For the SCS-C02 exam, understanding how GuardDuty integrates with Security Hub, EventBridge, and Lambda for automated incident response pipelines is critical. It is a foundational service for building a robust threat detection and response architecture on AWS.

AWS Security Hub

AWS Security Hub is a comprehensive cloud security posture management (CSPM) service that provides a centralized view of your security state across your AWS environment. It is a critical service covered under Domain 1: Threat Detection and Incident Response of the AWS Certified Security – Specialty (SCS-C02) exam.

**Key Features:**

1. **Centralized Security Dashboard:** Security Hub aggregates, organizes, and prioritizes security findings from multiple AWS services such as Amazon GuardDuty, Amazon Inspector, Amazon Macie, AWS Firewall Manager, and AWS IAM Access Analyzer, as well as third-party partner solutions.

2. **Automated Compliance Checks:** It continuously evaluates your AWS resources against security standards and best practices, including AWS Foundational Security Best Practices (FSBP), CIS AWS Foundations Benchmark, PCI DSS, and NIST 800-53.

3. **AWS Security Finding Format (ASFF):** All findings are normalized into a standardized format called ASFF, enabling consistent analysis and correlation across multiple security tools.

4. **Cross-Account and Cross-Region Aggregation:** Security Hub supports multi-account management through AWS Organizations integration, allowing a delegated administrator to aggregate findings from all member accounts and regions into a single pane of glass.

5. **Automated Response and Remediation:** Security Hub integrates with Amazon EventBridge, enabling automated workflows for incident response. You can create custom actions to trigger Lambda functions, send notifications via SNS, or initiate remediation steps.

6. **Insights:** Security Hub provides managed and custom insights, which are collections of related findings that help identify trends and prioritize security issues requiring attention.

**Exam Relevance:**
For the SCS-C02 exam, understanding how Security Hub centralizes threat detection findings, enables automated incident response through EventBridge integration, and supports compliance monitoring is essential. You should know how it integrates with other AWS security services, how to configure cross-account aggregation, and how to leverage automated remediation pipelines to respond to security events efficiently.

Amazon Macie

Amazon Macie is a fully managed data security and data privacy service provided by AWS that uses machine learning and pattern matching to discover, classify, and protect sensitive data stored in Amazon S3. It is a critical service within the AWS security ecosystem, particularly relevant to Domain 1: Threat Detection and Incident Response of the SCS-C02 exam.

**Key Capabilities:**

1. **Sensitive Data Discovery:** Macie automatically scans S3 buckets to identify sensitive data such as Personally Identifiable Information (PII), financial data (credit card numbers), Protected Health Information (PHI), API keys, and credentials. It uses managed data identifiers and supports custom data identifiers using regex patterns.

2. **S3 Security Posture Assessment:** Macie continuously evaluates your S3 environment to detect buckets that are publicly accessible, unencrypted, or shared with external AWS accounts. It provides a comprehensive inventory and security assessment of your S3 resources.

3. **Automated Alerting:** When sensitive data or security issues are detected, Macie generates findings that can be published to AWS Security Hub, Amazon EventBridge, or viewed directly in the Macie console. This enables automated incident response workflows.

4. **Integration with AWS Services:** Macie integrates with EventBridge to trigger Lambda functions, SNS notifications, or Step Functions for automated remediation. It also feeds findings into Security Hub for centralized security management.

5. **Multi-Account Support:** Through AWS Organizations integration, Macie can be managed centrally across multiple accounts using a delegated administrator model.

**Relevance to Threat Detection:**
Macie plays a vital role in identifying data exposure risks before they become incidents. It helps detect accidental data leaks, misconfigured bucket policies, and unauthorized data access patterns. Security teams can use Macie findings to prioritize remediation efforts and respond to potential data breaches proactively.

**Cost Consideration:** Pricing is based on the number of S3 buckets evaluated and the volume of data inspected for sensitive content, making it important to scope scanning jobs appropriately.

AWS CloudTrail

AWS CloudTrail is a critical AWS service that provides governance, compliance, operational auditing, and risk auditing of your AWS account. It continuously records and logs API calls and events made across your AWS infrastructure, capturing who made the request, what service was accessed, what action was performed, the parameters of the action, and the response returned.

CloudTrail is essential for Domain 2 (Security Logging and Monitoring) of the SCS-C02 exam. Here are its key aspects:

**Event Types:**
1. **Management Events** – Capture control plane operations like creating EC2 instances, configuring IAM policies, or setting up VPCs. These are enabled by default.
2. **Data Events** – Track data plane operations such as S3 object-level activity (GetObject, PutObject) and Lambda function invocations. These must be explicitly enabled.
3. **Insights Events** – Detect unusual API activity patterns, such as spikes in resource provisioning or IAM actions.

**Key Features:**
- **Trail Configuration**: Trails can be single-region or multi-region (recommended for security best practices). Organization trails can cover all accounts in AWS Organizations.
- **Log Storage**: Events are delivered to S3 buckets and optionally to CloudWatch Logs for real-time monitoring and alerting.
- **Log Integrity**: CloudTrail supports log file integrity validation using SHA-256 hashing to detect tampering.
- **Encryption**: Log files are encrypted by default using SSE-S3, but can be configured with SSE-KMS for enhanced security.
- **Integration**: Works with Amazon EventBridge, CloudWatch Alarms, SNS notifications, and AWS Athena for querying logs.

**Security Best Practices:**
- Enable multi-region trails across all accounts.
- Enable log file integrity validation.
- Restrict access to CloudTrail S3 buckets using bucket policies.
- Use KMS encryption for sensitive logs.
- Store logs in a centralized, dedicated security account.
- Monitor for trail disabling or modification using CloudWatch alarms.

CloudTrail Lake provides managed storage and SQL-based querying of events without needing separate S3 storage, simplifying log analysis for security investigations.

Amazon CloudWatch Logs and Metrics

Amazon CloudWatch Logs and Metrics are fundamental AWS services for security logging and monitoring, critical to the SCS-C02 exam's Domain 2.

**CloudWatch Logs** enables you to centralize, monitor, and store log data from AWS services, applications, and on-premises resources. Key features include:

- **Log Groups & Log Streams**: Logs are organized into log groups (containers) and log streams (sequences of events from the same source).
- **Log Insights**: A powerful query language for analyzing log data interactively, enabling security investigations and troubleshooting.
- **Metric Filters**: Transform log data into actionable CloudWatch metrics by defining patterns to search for (e.g., failed login attempts, unauthorized API calls).
- **Subscription Filters**: Real-time streaming of log data to services like AWS Lambda, Amazon Kinesis, or Amazon OpenSearch for further processing.
- **Encryption**: Logs can be encrypted using AWS KMS keys for data protection at rest.
- **Retention Policies**: Configurable retention periods from 1 day to indefinite, supporting compliance requirements.

**CloudWatch Metrics** provides real-time monitoring of AWS resources and applications:

- **Standard Metrics**: Automatically collected from AWS services (EC2 CPU utilization, S3 bucket sizes, etc.).
- **Custom Metrics**: User-defined metrics published via the PutMetricData API.
- **Alarms**: Trigger notifications via SNS or automated actions (e.g., Lambda functions, Auto Scaling) when thresholds are breached.
- **Anomaly Detection**: Uses machine learning to detect unusual patterns indicating potential security incidents.
- **Dashboards**: Visual representations for centralized security monitoring.

**Security Relevance:**
CloudWatch integrates with AWS CloudTrail to monitor API activity, VPC Flow Logs for network traffic analysis, and GuardDuty findings. Metric filters can detect suspicious patterns like root account usage, security group changes, or IAM policy modifications. CloudWatch Alarms enable automated incident response, while cross-account log aggregation supports centralized security monitoring in multi-account environments.

These services form the backbone of AWS security observability, enabling detection, alerting, and compliance auditing across your infrastructure.

VPC Flow Logs

VPC Flow Logs is a feature in Amazon Web Services (AWS) that enables you to capture detailed information about the IP traffic going to and from network interfaces in your Virtual Private Cloud (VPC). This is a critical tool for security logging and monitoring, directly relevant to Domain 2 of the AWS Certified Security – Specialty (SCS-C02) exam.

VPC Flow Logs can be configured at three levels: the VPC level, subnet level, or individual network interface level. Each flow log record captures fields such as source and destination IP addresses, source and destination ports, protocol, packet count, byte count, action (ACCEPT or REJECT), and log status.

Flow log data can be published to three destinations: Amazon CloudWatch Logs, Amazon S3, or Amazon Kinesis Data Firehose. When sent to S3, logs can be queried using Amazon Athena for cost-effective analysis. CloudWatch Logs enable real-time monitoring and alarm creation via metric filters.

From a security perspective, VPC Flow Logs are invaluable for several use cases: detecting unusual traffic patterns that may indicate a breach, identifying overly permissive security group rules by analyzing rejected versus accepted traffic, conducting forensic investigations after a security incident, and meeting compliance requirements for network traffic auditing.

Key considerations include: Flow Logs do not capture real-time data (there is a delay of several minutes). They do not log DNS traffic to Amazon-provided DNS servers, DHCP traffic, traffic to the instance metadata service (169.254.169.254), or Amazon Time Sync Service traffic. Flow Logs are not mutable once created — you must delete and recreate them to change configurations.

For the SCS-C02 exam, understanding how to integrate VPC Flow Logs with other AWS services like AWS CloudTrail, Amazon GuardDuty (which uses Flow Logs as a data source), and AWS Security Hub is essential. Enabling Flow Logs across all VPCs is considered a security best practice and supports a defense-in-depth monitoring strategy.

Athena for Security Analysis

Amazon Athena is a serverless, interactive query service that plays a critical role in security analysis within AWS environments. It allows security professionals to analyze large volumes of log data stored in Amazon S3 using standard SQL queries, without the need to set up or manage any infrastructure.

**Key Security Use Cases:**

1. **VPC Flow Log Analysis:** Athena can query VPC Flow Logs to identify suspicious network traffic patterns, unauthorized access attempts, unusual data transfers, and connections to known malicious IP addresses.

2. **CloudTrail Log Analysis:** Security teams can use Athena to investigate API activity across AWS accounts, detect unauthorized API calls, identify privilege escalation attempts, and trace the timeline of security incidents.

3. **S3 Access Log Analysis:** Athena enables querying S3 server access logs to detect unauthorized data access, unusual download patterns, or potential data exfiltration attempts.

4. **ALB/ELB Log Analysis:** Load balancer logs can be analyzed to identify web application attacks, DDoS patterns, and anomalous request behaviors.

**How It Works:**
Athena uses AWS Glue Data Catalog to define table schemas over raw log data in S3. Once tables are created, analysts can run SQL queries directly against the data. It supports various formats including JSON, CSV, Parquet, and ORC.

**Security Benefits:**
- **Serverless:** No infrastructure to secure or maintain
- **Cost-Effective:** Pay only per query and data scanned
- **Scalable:** Handles petabytes of log data seamlessly
- **Integration:** Works with Amazon QuickSight for visualization and AWS Security Hub for centralized findings
- **Partitioning:** Supports data partitioning by date/region to optimize query performance and reduce costs

**Best Practices:**
- Use columnar formats like Parquet to reduce data scanned
- Partition logs by date for efficient querying
- Use workgroups to control query access and costs
- Encrypt query results using KMS

Athena is an essential tool for incident response, threat hunting, and continuous security monitoring in the AWS ecosystem.

Centralized Logging Architecture

Centralized Logging Architecture in AWS is a critical design pattern for the Security Specialty exam, focusing on aggregating logs from multiple AWS accounts, regions, and services into a single, secure location for analysis, monitoring, and compliance.

**Core Components:**

The architecture typically revolves around a dedicated **Log Archive account**, which serves as the central repository. AWS Organizations enables multi-account log aggregation, while AWS CloudTrail, VPC Flow Logs, AWS Config, and CloudWatch Logs serve as primary log sources.

**Key Design Principles:**

1. **Cross-Account Log Aggregation:** Organizations use CloudTrail organization trails to automatically collect API activity across all member accounts. S3 bucket policies and cross-account IAM roles allow logs to flow into the central logging account.

2. **Amazon S3 as Central Repository:** Logs are stored in dedicated S3 buckets with server-side encryption (SSE-KMS), versioning, Object Lock (WORM compliance), and lifecycle policies for cost-effective retention.

3. **Real-Time Streaming:** CloudWatch Logs subscription filters with Amazon Kinesis Data Firehose enable real-time log delivery to services like Amazon OpenSearch Service or Amazon S3 for immediate analysis.

4. **Security Controls:** The log archive account should have strict access controls, SCPs preventing log deletion, MFA delete on S3 buckets, and AWS KMS encryption keys managed centrally.

5. **AWS Control Tower Integration:** Control Tower automatically provisions a Log Archive account with preconfigured CloudTrail and AWS Config logging across all enrolled accounts.

**Analysis and Monitoring:**

Amazon Athena queries logs directly from S3, while Amazon OpenSearch provides search and visualization capabilities. Amazon Security Lake normalizes security logs into the OCSF format, enabling standardized analysis across multiple log sources.

**Compliance Benefits:**

Centralized logging supports regulatory requirements (PCI DSS, HIPAA, SOC 2) by ensuring log integrity, immutability, and defined retention periods. CloudTrail log file validation ensures tamper detection.

This architecture ensures complete visibility, rapid incident response, and audit readiness across the entire AWS environment.

Amazon Security Lake and Log Data Lakes

Amazon Security Lake is a fully managed service that centralizes security data from AWS environments, SaaS providers, on-premises systems, and third-party tools into a purpose-built data lake stored in Amazon S3 within your own account. For the SCS-C03 Detection domain, it matters because it simplifies collecting, normalizing, and analyzing logs at scale.

Core concepts:
1. OCSF normalization: Security Lake converts data into the Open Cybersecurity Schema Framework (OCSF), an open standard, and stores it in Apache Parquet format. This enables consistent, efficient querying across very different sources.
2. Native AWS sources: It can collect AWS CloudTrail management and data events, VPC Flow Logs, Route 53 Resolver query logs, AWS Security Hub findings, Amazon EKS audit logs, and AWS WAF logs.
3. Custom sources: Third-party and on-premises data can be ingested once it is converted to OCSF.
4. Multi-account and multi-Region: Integrated with AWS Organizations, a delegated administrator can enable collection across all member accounts. Rollup Regions consolidate data from contributing Regions, supporting both data residency and centralized analysis.
5. Subscribers: Data access subscribers read S3 objects and receive notifications through Amazon SQS, while query access subscribers use AWS Lake Formation shares and Amazon Athena to query tables. Common consumers include SIEM platforms such as Splunk, Amazon OpenSearch Service, and partner analytics tools.
6. Governance: Lake Formation manages fine-grained permissions, AWS KMS encrypts data, and retention plus S3 lifecycle settings control storage tiers and cost.

Log data lakes in general: Before Security Lake, teams built custom lakes using S3, AWS Glue crawlers and the Data Catalog, Athena, Amazon Data Firehose, and Lake Formation. The exam may ask you to compare a custom pipeline with a managed option; Security Lake greatly reduces operational overhead.

Exam tips: Select Security Lake when a scenario requires centralized, normalized, long-term security log storage across many accounts, mentions OCSF, or emphasizes the least operational effort. Remember that data stays in customer-owned S3 buckets, Athena queries rely on Glue Data Catalog tables that Security Lake creates, and Lake Formation controls who can access which tables.

Troubleshooting Monitoring, Logging and Alerting

Troubleshooting monitoring, logging, and alerting is a core Domain 1 skill in SCS-C03 because detection controls only add value when telemetry reaches its destination and triggers the correct response. The exam expects you to diagnose why logs, findings, or alerts are missing, delayed, or incomplete.

Permissions are the most common root cause. CloudTrail delivery to Amazon S3 requires a bucket policy that grants cloudtrail.amazonaws.com s3:PutObject, ideally scoped with aws:SourceArn conditions. If the bucket uses SSE-KMS, the key policy must also allow CloudTrail to use the key. VPC Flow Logs and Route 53 Resolver query logs need an IAM role or resource policy that permits delivery to CloudWatch Logs or S3. The CloudWatch agent on EC2 needs an instance profile with CloudWatchAgentServerPolicy, a valid agent configuration file, and network reachability through VPC endpoints or a NAT gateway.

Configuration gaps are another frequent issue. CloudTrail records management events by default, but data events such as S3 object-level actions and Lambda invocations must be enabled explicitly. Multi-Region trails and organization trails ensure coverage across all accounts. GuardDuty and Security Hub must be enabled in every Region and linked to a delegated administrator. AWS Config must record the relevant resource types for its rules to evaluate them.

Alerting failures often come from EventBridge rules with incorrect event patterns or rules in the wrong Region. For example, events from global services such as IAM are delivered in us-east-1. SNS topics need an access policy that allows EventBridge or CloudWatch to publish. Encrypted topics also need KMS key policy permissions for the publishing service. CloudWatch alarms may remain in INSUFFICIENT_DATA when metric filters do not match the log format or when missing-data treatment is misconfigured.

Useful troubleshooting tools include CloudTrail Lake and Amazon Athena for querying logs, and CloudTrail log file integrity validation for confirming log authenticity. Other aids are the CloudWatch agent logs, EventBridge FailedInvocations metrics, dead-letter queues, and the IAM policy simulator for permission errors. Also remember normal delivery latency (CloudTrail events typically arrive within about five minutes) and check service quotas before assuming a misconfiguration.

More Domain 1: Detection questions
286 questions (total)
Practice questions
One session at a time, always new questions