- A
Use CloudWatch Logs Insights to run a query every hour and check the duration.
Why wrong: Incorrect. CloudWatch Logs Insights queries are ad hoc and do not provide continuous monitoring or automatic alerting based on real-time log streams.
- B
Use CloudWatch Events to capture the log events and trigger a Lambda function to compute duration.
Correct. CloudWatch Events can deliver log events in near real-time to a Lambda function, which can compute duration and trigger notifications.
- C
Create a metric filter that extracts the timestamp of JOB_START and JOB_END and computes the duration in a custom metric.
Why wrong: Incorrect. Metric filters cannot compute duration across two separate log events for the same job because they operate per event. Extracting timestamps into separate metrics does not enable per-job correlation.
- D
Create a Lambda function that is triggered by S3 to process the logs and publish a custom metric.
Why wrong: Incorrect. S3 is not involved in this scenario; logs reside in CloudWatch Logs. This approach introduces unnecessary complexity and is not the recommended solution.
SOA-C02 CloudWatch Events (Amazon EventBridge) Practice Question
This SOA-C02 practice question tests your understanding of monitoring, logging, and remediation. The scenario asks you to isolate a root cause — eliminate options that address a different problem before choosing. A key principle to apply: cloudWatch Events (Amazon EventBridge). 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
Use CloudWatch Events to capture the log events and trigger a Lambda function to compute duration.
Option B is correct because CloudWatch Events (now part of Amazon EventBridge) can capture log events in real-time and trigger a Lambda function. The Lambda function can then compute job duration by correlating JOB_START and JOB_END events (e.g., using a DynamoDB table to store start times) and publish a custom metric or trigger an alarm if duration exceeds 1 hour. This approach handles the per-job correlation that metric filters cannot achieve.
Key principle: CloudWatch Events (Amazon EventBridge)
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
Incorrect. CloudWatch Logs Insights queries are ad hoc and do not provide continuous monitoring or automatic alerting based on real-time log streams.
- ✓
Use CloudWatch Events to capture the log events and trigger a Lambda function to compute duration.
Why this is correct
Correct. CloudWatch Events can deliver log events in near real-time to a Lambda function, which can compute duration and trigger notifications.
Related concept
CloudWatch Events (Amazon EventBridge)
- ✗
Create a metric filter that extracts the timestamp of JOB_START and JOB_END and computes the duration in a custom metric.
Why it's wrong here
Incorrect. Metric filters cannot compute duration across two separate log events for the same job because they operate per event. Extracting timestamps into separate metrics does not enable per-job correlation.
- ✗
Create a Lambda function that is triggered by S3 to process the logs and publish a custom metric.
Why it's wrong here
Incorrect. S3 is not involved in this scenario; logs reside in CloudWatch Logs. This approach introduces unnecessary complexity and is not the recommended solution.
Common exam traps
Common exam trap: answer the scenario, not the keyword
Candidates often think metric filters can compute duration by extracting timestamps from JOB_START and JOB_END, but metric filters operate on individual log events and cannot correlate two events for the same job. The correct solution uses CloudWatch Events with Lambda for stateful computation.
Trap categories for this question
Scenario analysis trap
Incorrect. S3 is not involved in this scenario; logs reside in CloudWatch Logs. This approach introduces unnecessary complexity and is not the recommended solution.
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
- CloudWatch Events (Amazon EventBridge)
- AWS Lambda
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 Events (Amazon EventBridge)
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.
Quick reference
Cloud Service Model Comparison
| Model | You Manage | Provider Manages | Examples |
|---|---|---|---|
| IaaS | OS, runtime, apps, data | Hardware, hypervisor, networking | EC2, Azure VMs, GCP Compute Engine |
| PaaS | Apps and data | OS, runtime, middleware, hardware | Elastic Beanstalk, Azure App Service |
| SaaS | Data and settings only | Everything else | Microsoft 365, Salesforce, Workday |
| FaaS / Serverless | Function code only | Infra, scaling, runtime | Lambda, Azure Functions, Cloud Run |
| CaaS | Containers and apps | Kubernetes, OS, hardware | EKS, AKS, GKE |
What to study next
Got this wrong? Here's your next step.
Review cloudWatch Events (Amazon EventBridge), 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 Events (Amazon EventBridge).
What is the correct answer to this question?
The correct answer is: Use CloudWatch Events to capture the log events and trigger a Lambda function to compute duration. — Option B is correct because CloudWatch Events (now part of Amazon EventBridge) can capture log events in real-time and trigger a Lambda function. The Lambda function can then compute job duration by correlating JOB_START and JOB_END events (e.g., using a DynamoDB table to store start times) and publish a custom metric or trigger an alarm if duration exceeds 1 hour. This approach handles the per-job correlation that metric filters cannot achieve.
What should I do if I get this SOA-C02 question wrong?
Review cloudWatch Events (Amazon EventBridge), then practise related SOA-C02 questions on the same topic to reinforce the concept.
What is the key concept behind this question?
CloudWatch Events (Amazon EventBridge)
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 company uses Amazon CloudWatch Logs to store application logs. The SysOps administrator needs to count the occurrences…
- 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…
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.