AWS SysOps Admin SOA-C02 · Monitoring, Logging, and Remediation · hard
A legacy application running on EC2 streams plain-text application logs to a CloudWatch Logs log group (/prod/order-service). Whenever a database deadlock occurs, the application writes a line containing the exact string FATAL_DB_DEADLOCK_ERR. The operations team wants a CloudWatch alarm to trigger if FATAL_DB_DEADLOCK_ERR appears 5 or more times within any 1-minute window, and automatically invoke an AWS Systems Manager Automation runbook to restart the service. Which two steps should the SysOps administrator configure? (Select two.)
Published · Last updated · checked before publication — how we verify questions
Options
Answers: B. Create a CloudWatch Logs Metric Filter on /prod/order-service for FATAL_DB_DEADLOCK_ERR; C. Configure a CloudWatch Alarm (Sum >= 5 in 60s) triggering SSM Automation via EventBridge
To turn text patterns in a CloudWatch Logs log group into an actionable alarm with automated remediation: (B) create a CloudWatch Logs Metric Filter on /prod/order-service matching "FATAL_DB_DEADLOCK_ERR" that publishes a metric value of 1 per match (B), and (C) create a CloudWatch Metric Alarm (Sum >= 5 over 1 minute) that triggers an Amazon EventBridge rule / Systems Manager Automation runbook (C).
Why the other options are wrong
- A. Enable VPC Flow Logs on the EC2 elastic network interface (eth0) with a 1-minute interval — VPC Flow Logs only capture IP header metadata and never inspect application log strings.
- D. Create an S3 Lifecycle rule transitioning /prod/order-service to Glacier — S3 Lifecycle rules manage object storage tiers and do not parse CloudWatch Logs in real time.
More Monitoring, Logging, and Remediation questions
- A financial services auditor requires proof that AWS CloudTrail log files delivered to a central Amazon S3 audit…
- An application cluster frequently experiences brief, harmless 2-minute CPU spikes during scheduled cache warming…
- A SysOps administrator needs to create an Amazon CloudWatch alarm that triggers whenever an Amazon EC2 Linux…
- An Amazon EC2 instance fails its System Status Check (StatusCheckFailed_System = 1) while its Instance Status Check…
- A security auditor suspects that an attacker who briefly compromised an IAM role may have modified or deleted a single…
All Monitoring, Logging, and Remediation questions and the topic overview →
AWS and Amazon Web Services are trademarks of Amazon.com, Inc. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by Amazon Web Services.