- A
Use CloudWatch Logs Insights to run a query every hour and check the duration.
Why wrong: Insights is for ad-hoc querying, not for continuous monitoring and alarming.
- B
Use CloudWatch Events to capture the log events and trigger a Lambda function to compute duration.
Why wrong: This is possible but more complex than necessary; metric filters are simpler.
- C
Create a metric filter that extracts the timestamp of JOB_START and JOB_END and computes the duration in a custom metric.
Metric filters can extract values from log events and create custom metrics that can be used for alarming.
- D
Create a Lambda function that is triggered by S3 to process the logs and publish a custom metric.
Why wrong: Logs are in CloudWatch Logs, not S3; this would require additional configuration.
Quick Answer
The correct approach is to create a metric filter that extracts the timestamp of JOB_START and JOB_END and computes the duration in a custom metric. This works because CloudWatch Logs metric filters can parse numeric values from log events and emit a custom metric representing the time difference, allowing you to directly monitor batch job duration without spinning up additional compute resources. On the AWS Certified SysOps Administrator Associate SOA-C02 exam, this scenario tests your understanding of how metric filters can transform unstructured log data into actionable metrics, a key skill for cost-efficient monitoring. A common trap is assuming you need a separate Lambda function or CloudWatch Events rule to calculate the duration, but the metric filter’s ability to extract and compute values natively handles this. Remember the mnemonic: “Filter first, compute second—no Lambda needed for the duration.”
SOA-C02 Monitoring, Logging, and Remediation Practice Question
This SOA-C02 practice question tests your understanding of monitoring, logging, and remediation. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. 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 SysOps administrator manages a fleet of EC2 instances that run a batch processing job. The job runs every hour and takes about 45 minutes to complete. The administrator wants to be notified if any job takes longer than 1 hour. Currently, the administrator uses CloudWatch Logs to capture job start and end times from application logs. The job writes a log message at start with 'JOB_START' and at end with 'JOB_END'. The administrator wants to create a metric filter that counts jobs that exceed 1 hour. However, the administrator is unsure how to achieve this with CloudWatch Logs. What should the administrator do?
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 that extracts the timestamp of JOB_START and JOB_END and computes the duration in a custom metric.
Option C is correct because CloudWatch Logs metric filters can extract numeric values from log events and compute custom metrics. By creating a metric filter that extracts the timestamp of JOB_START and JOB_END, you can use the filter pattern to capture both events and then use a custom metric to compute the duration (e.g., by emitting a metric value representing the time difference). This allows you to set an alarm on the metric when the duration exceeds 1 hour, directly meeting the requirement without additional compute resources.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Use CloudWatch Logs Insights to run a query every hour and check the duration.
Why it's wrong here
Insights is for ad-hoc querying, not for continuous monitoring and alarming.
- ✗
Use CloudWatch Events to capture the log events and trigger a Lambda function to compute duration.
Why it's wrong here
This is possible but more complex than necessary; metric filters are simpler.
- ✓
Create a metric filter that extracts the timestamp of JOB_START and JOB_END and computes the duration in a custom metric.
Why this is correct
Metric filters can extract values from log events and create custom metrics that can be used for alarming.
Related concept
Read the scenario before looking for a memorised answer.
- ✗
Create a Lambda function that is triggered by S3 to process the logs and publish a custom metric.
Why it's wrong here
Logs are in CloudWatch Logs, not S3; this would require additional configuration.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates may overcomplicate the solution by thinking they need external compute (Lambda) or separate query tools (Logs Insights) when CloudWatch Logs metric filters can directly extract and compute metrics from log events natively.
Detailed technical explanation
How to think about this question
CloudWatch Logs metric filters work by scanning log events in real-time as they are ingested, extracting values using patterns like '[timestamp, JOB_START]' and '[timestamp, JOB_END]', and then emitting a custom metric (e.g., 'JobDuration') with a value computed from the difference. The metric filter can use a 'value' extracted from the log event, but for duration calculation, you would typically emit two separate metrics (start and end timestamps) and then use a CloudWatch math expression in an alarm to compute the difference. Alternatively, you can use a filter pattern that captures both events and emits a single metric with the duration if the application logs include the duration directly. This approach is serverless, cost-effective, and provides sub-minute granularity for alarm evaluation.
KKey Concepts to Remember
- Read the scenario before looking for a memorised answer.
- Find the constraint that changes the correct option.
- Eliminate answers that are true in general but not in this case.
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
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A media company stores terabytes of video archives that are accessed once a year for audit purposes. Moving these objects to a cold storage tier (Azure Archive, S3 Glacier, or Google Nearline) costs a fraction of hot storage. Questions like this test whether you understand storage tiers, access frequency tradeoffs, and retrieval latency requirements.
What to study next
Got this wrong? Here's your next step.
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
- →
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 — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: Create a metric filter that extracts the timestamp of JOB_START and JOB_END and computes the duration in a custom metric. — Option C is correct because CloudWatch Logs metric filters can extract numeric values from log events and compute custom metrics. By creating a metric filter that extracts the timestamp of JOB_START and JOB_END, you can use the filter pattern to capture both events and then use a custom metric to compute the duration (e.g., by emitting a metric value representing the time difference). This allows you to set an alarm on the metric when the duration exceeds 1 hour, directly meeting the requirement without additional compute resources.
What should I do if I get this SOA-C02 question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
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 →
Last reviewed: Jun 24, 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.