Courseiva
Monitoring and Logging →easyMultiple Choice

DOP-C02 Monitoring and Logging Practice Question

A company is using AWS CloudFormation to manage infrastructure. The DevOps team wants to receive notifications when CloudFormation stack creation fails. Which AWS service should be used to capture the stack failure event and send a notification?

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

✓

Amazon EventBridge

Amazon EventBridge can capture CloudFormation stack events (such as CREATE_FAILED) using event rules and route them to targets like Amazon SNS for notifications. Option A is wrong because Amazon SQS is a message queue service and does not directly send notifications; it requires a consumer. Option B is wrong because Amazon CloudWatch Logs stores log data but does not capture CloudFormation events or send notifications. Option C is wrong because AWS CloudTrail records API calls but is not designed for real-time event-driven notifications; it is better suited for auditing.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    Amazon SQS

    Why it's wrong here

    Amazon SQS is a distributed message queue service designed for decoupling application components and buffering messages, not for generating or routing event notifications. While SQS can receive messages from services like EventBridge, it does not natively consume CloudFormation stack events or trigger downstream actions on its own; you would need a consumer polling the queue. Using SQS here would require additional integration layers to interpret CloudFormation events, making it an indirect and inappropriate choice for real-time operational alerting.

  • ✗

    Amazon CloudWatch Logs

    Why it's wrong here

    Amazon CloudWatch Logs is a centralized log storage and query service that captures log streams from resources, but it does not actively evaluate or react to service events unless log metric filters and alarms are explicitly configured. CloudFormation itself does not send built-in event data to CloudWatch Logs by default, so relying on it would mean missing or delayed visibility into stack lifecycle events. Moreover, CloudWatch Logs is designed for log analysis, not as a real-time event router like EventBridge, which natively matches and delivers CloudFormation events.

  • ✗

    AWS CloudTrail

    Why it's wrong here

    AWS CloudTrail records API calls and activity across AWS accounts as event history for auditing and governance, but it operates as a continuous log of API activity rather than a real-time event notification mechanism. Although CloudTrail can deliver events to Amazon S3 and CloudWatch Logs, the delivery is subject to latency (typically up to 15 minutes) and does not inherently invoke immediate actions without additional services such as EventBridge, which is the recommended integration for real-time CloudFormation event responses. CloudTrail’s primary purpose is trail auditing, not operational alerting.

  • ✓

    Amazon EventBridge

    Why this is correct

    Amazon EventBridge is the correct service because it is a serverless event bus that natively captures AWS service events, including CloudFormation stack lifecycle changes (CREATE, UPDATE, DELETE), and delivers them to targets like SNS, Lambda, or SQS for immediate action. EventBridge rules filter on resource type, event detail type, and other JSON fields, allowing you to build precise event-driven workflows without custom polling. This makes it the standard, low-latency solution for reacting to CloudFormation events in real time.

About these practice questions

Courseiva writes every DOP-C02 question from scratch — 1,298 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This DOP-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 DOP-C02 exam.