Question 1,424 of 1,546
Monitoring, Logging, and RemediationhardMultiple ChoiceObjective-mapped

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

ModelYou ManageProvider ManagesExamples
IaaSOS, runtime, apps, dataHardware, hypervisor, networkingEC2, Azure VMs, GCP Compute Engine
PaaSApps and dataOS, runtime, middleware, hardwareElastic Beanstalk, Azure App Service
SaaSData and settings onlyEverything elseMicrosoft 365, Salesforce, Workday
FaaS / ServerlessFunction code onlyInfra, scaling, runtimeLambda, Azure Functions, Cloud Run
CaaSContainers and appsKubernetes, OS, hardwareEKS, 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.

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 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 →

How Courseiva writes practice questions · Editorial policy

Keep practising

More SOA-C02 practice questions

Last reviewed: Jun 24, 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.