Troubleshooting Detection
Unlock the complete study guide + 1,040 practice questions across 16 full exams.
Bundled into the existing AWS Certified Security - Specialty premium course — no separate purchase.
Included in this chapter:
- The telemetry chain: producer, delivery, consumer
- Missing logs: execution roles and account settings
- Denied delivery: CloudTrail, KMS, and the CloudWatch agent
- Findings that never fire: coverage and routing gaps
- Exam-pattern recognition
Missing-telemetry symptom to first root cause to check
| Symptom | Most likely root cause | Where to look | Typical fix |
|---|---|---|---|
| Lambda emits no logs | Execution role lacks logs:* permissions | Function execution role policy | Attach AWSLambdaBasicExecutionRole or the three logs: actions |
| API Gateway access logs empty | Account CloudWatch Logs role ARN not set | API Gateway account settings + stage logging | Set the account role ARN, enable stage logging, set log format |
| CloudTrail not delivering to S3 | Bucket policy or KMS key policy denies CloudTrail | Destination bucket policy + key policy | Allow cloudtrail.amazonaws.com PutObject and kms:GenerateDataKey |
| CloudWatch agent metrics missing | Bad agent config or instance role | Agent config / SSM parameter + instance role | Fix the config JSON, grant PutMetricData, restart the agent |
| GuardDuty finding never fired | Data source off or account not enrolled | Protection plans + Organizations members | Enable the data source, auto-enroll the member account |
| Alarm did not trigger | Metric filter pattern or threshold wrong | Metric filter + alarm definition | Correct the filter pattern and the alarm threshold/missing-data rule |
Decision tree
Cheat sheet
Unlock with Premium — includes all practice exams and the complete study guide.
References
- Analyzing log data with CloudWatch Logs metric filters
- Lambda execution role
- Set up CloudWatch logging for a REST API in API Gateway
- Configure and use standard logs (access logs) in CloudFront
- Amazon S3 bucket policy for CloudTrail
- Troubleshooting the CloudWatch agent
- Foundational data sources in GuardDuty
- Amazon EventBridge event patterns