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

  • AEnable VPC Flow Logs on the EC2 elastic network interface (eth0) with a 1-minute interval
  • BCreate a CloudWatch Logs Metric Filter on /prod/order-service for FATAL_DB_DEADLOCK_ERRCorrect answer
  • CConfigure a CloudWatch Alarm (Sum >= 5 in 60s) triggering SSM Automation via EventBridgeCorrect answer
  • DCreate an S3 Lifecycle rule transitioning /prod/order-service to Glacier

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.

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.