Question 387 of 1,546
Monitoring, Logging, and RemediationeasyMultiple ChoiceObjective-mapped

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?

Question 1easymultiple choice
Full question →

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

    Why this is correct

    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.

    Related concept

    CloudWatch Logs metric filters extract numerical values from log events.

  • 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.

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.

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 →

How Courseiva writes practice questions · Editorial policy

Keep practising

More SOA-C02 practice questions

Last reviewed: Jun 11, 2026

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.

Loading comments…

Sign in to join the discussion.

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.