- A
Create a metric filter on the log group and then create a CloudWatch alarm on the resulting metric
Creating a metric filter on the log group produces a metric that can be used in a CloudWatch alarm. This is the standard, low-operational-overhead approach.
- B
Create a CloudWatch alarm directly on the log group
Why wrong: CloudWatch alarms cannot be created directly on log groups. Alarms must be based on metrics, not raw log data.
- C
Create an AWS Lambda function to parse the logs and send a notification to Amazon SNS
Why wrong: Using a Lambda function to parse logs and send notifications introduces unnecessary complexity and cost. CloudWatch Logs metric filters provide a built-in solution.
- D
Create an Amazon EventBridge rule to filter log events and send to SNS
Why wrong: Amazon EventBridge can react to events but does not natively filter log patterns from CloudWatch Logs. This use case is better handled by metric filters and alarms.
SOA-C02 Monitoring, Logging, and Remediation Practice Question
This SOA-C02 practice question tests your understanding of monitoring, logging, and remediation. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. A key principle to apply: cloudWatch Logs metric filters extract numerical values from log events.. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
A company uses Amazon CloudWatch Logs to store application logs. The SysOps administrator needs to count the occurrences of the string 'ERROR' in the logs and trigger an Amazon SNS notification when more than 10 errors occur within a 5-minute window. Which steps should the administrator take?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
Create a metric filter on the log group and then create a CloudWatch alarm on the resulting metric
A metric filter on a CloudWatch Logs log group extracts a numeric metric (e.g., count of 'ERROR' occurrences) and publishes it to a CloudWatch custom metric. A CloudWatch alarm can then be configured on that metric to evaluate a threshold (e.g., >10) over a specified period (e.g., 5 minutes) and trigger an SNS notification when breached. This is the native, serverless, and cost-effective approach for counting log patterns and alerting.
Key principle: CloudWatch Logs metric filters extract numerical values from log events.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Create a metric filter on the log group and then create a CloudWatch alarm on the resulting metric
- ✗
Create a CloudWatch alarm directly on the log group
Why it's wrong here
CloudWatch alarms cannot be created directly on log groups. Alarms must be based on metrics, not raw log data.
- ✗
Create an AWS Lambda function to parse the logs and send a notification to Amazon SNS
Why it's wrong here
Using a Lambda function to parse logs and send notifications introduces unnecessary complexity and cost. CloudWatch Logs metric filters provide a built-in solution.
- ✗
Create an Amazon EventBridge rule to filter log events and send to SNS
Why it's wrong here
Amazon EventBridge can react to events but does not natively filter log patterns from CloudWatch Logs. This use case is better handled by metric filters and alarms.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates may think they can directly alarm on a log group (Option B) or assume a Lambda function is required for custom log parsing (Option C), but the exam expects knowledge of CloudWatch Logs metric filters as the native solution for counting patterns and triggering alarms.
Detailed technical explanation
How to think about this question
Under the hood, a metric filter defines a pattern (e.g., 'ERROR') and a value to emit (e.g., 1 per occurrence), which CloudWatch Logs asynchronously publishes to a custom metric namespace. The alarm then evaluates the metric using a statistic (e.g., Sum) over the specified period (300 seconds) and transitions to ALARM state when the threshold is exceeded. A subtle behavior: metric filters count occurrences per log event, so if a single log line contains 'ERROR' multiple times, it counts each occurrence unless the filter is designed to count only unique events.
KKey Concepts to Remember
- CloudWatch Logs metric filters extract numerical values from log events.
- Metric filters create custom CloudWatch metrics based on log patterns.
- CloudWatch alarms monitor metrics and trigger actions when thresholds are breached.
- SNS topics are common targets for CloudWatch alarm notifications.
TExam Day Tips
- Watch for words such as best, first, most likely and least administrative effort.
- Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
CloudWatch Logs metric filters extract numerical values from log events.
Real-world example
How this comes up in practice
A startup's cloud architect reviews their monthly bill and notices costs are higher than expected for a long-running batch job. Switching from on-demand instances to Reserved Instances — or using Spot/Preemptible VMs — can reduce compute costs by up to 72 %. Questions like this test whether you understand the tradeoffs between commitment, flexibility, and cost across cloud pricing models.
What to study next
Got this wrong? Here's your next step.
Review cloudWatch Logs metric filters extract numerical values from log events., then practise related SOA-C02 questions on the same topic to reinforce the concept.
- →
Monitoring, Logging, and Remediation — study guide chapter
Learn the concepts, then practise the questions
- →
Monitoring, Logging, and Remediation practice questions
Targeted practice on this topic area only
- →
All SOA-C02 questions
1,546 questions across all exam domains
- →
AWS Certified SysOps Administrator Associate SOA-C02 study guide
Full concept coverage aligned to exam objectives
- →
SOA-C02 practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related SOA-C02 practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Monitoring, Logging, and Remediation practice questions
Practise SOA-C02 questions linked to Monitoring, Logging, and Remediation.
Reliability and Business Continuity practice questions
Practise SOA-C02 questions linked to Reliability and Business Continuity.
Deployment, Provisioning, and Automation practice questions
Practise SOA-C02 questions linked to Deployment, Provisioning, and Automation.
Security and Compliance practice questions
Practise SOA-C02 questions linked to Security and Compliance.
Networking and Content Delivery practice questions
Practise SOA-C02 questions linked to Networking and Content Delivery.
Cost and Performance Optimization practice questions
Practise SOA-C02 questions linked to Cost and Performance Optimization.
SOA-C02 fundamentals practice questions
Practise SOA-C02 questions linked to SOA-C02 fundamentals.
SOA-C02 scenario practice questions
Practise SOA-C02 questions linked to SOA-C02 scenario.
SOA-C02 troubleshooting practice questions
Practise SOA-C02 questions linked to SOA-C02 troubleshooting.
Practice this exam
Start a free SOA-C02 practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this SOA-C02 question test?
Monitoring, Logging, and Remediation — This question tests Monitoring, Logging, and Remediation — CloudWatch Logs metric filters extract numerical values from log events..
What is the correct answer to this question?
The correct answer is: Create a metric filter on the log group and then create a CloudWatch alarm on the resulting metric — A metric filter on a CloudWatch Logs log group extracts a numeric metric (e.g., count of 'ERROR' occurrences) and publishes it to a CloudWatch custom metric. A CloudWatch alarm can then be configured on that metric to evaluate a threshold (e.g., >10) over a specified period (e.g., 5 minutes) and trigger an SNS notification when breached. This is the native, serverless, and cost-effective approach for counting log patterns and alerting.
What should I do if I get this SOA-C02 question wrong?
Review cloudWatch Logs metric filters extract numerical values from log events., then practise related SOA-C02 questions on the same topic to reinforce the concept.
What is the key concept behind this question?
CloudWatch Logs metric filters extract numerical values from log events.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Keep practising
More SOA-C02 practice questions
- A company uses an Amazon DynamoDB table with on-demand capacity mode. The table handles a workload with a steady baselin…
- A SysOps administrator needs to monitor the CPU utilization of an Amazon EC2 instance and send an alert when it exceeds…
- A SysOps administrator needs to monitor the CPU utilization of an Amazon EC2 instance fleet and send an alert when the a…
- A company's security policy requires that all Amazon S3 buckets must have server-side encryption enabled. The SysOps adm…
- A SysOps administrator uses AWS CloudFormation to deploy a stack that includes an Amazon EC2 instance. The administrator…
- A company runs a production web application on a single Amazon EC2 instance. The application experiences a predictable a…
Last reviewed: Jun 11, 2026
This SOA-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SOA-C02 exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.