Question 886 of 1,740
Monitoring and LoggingmediumMultiple ChoiceObjective-mapped

Quick Answer

The correct approach is to configure an SNS topic as a notification option in the CloudFormation stack and subscribe to receive stack events. This works because CloudFormation natively publishes failure notifications to the specified SNS topic, and each event includes the logical resource ID and the status reason for the failure, giving you the exact resource details without needing to poll the API or set up additional monitoring. On the AWS Certified DevOps Engineer Professional DOP-C02 exam, this question tests your understanding of CloudFormation’s built-in notification mechanism versus workarounds like Lambda triggers or custom scripts—a common trap is assuming you need to parse CloudTrail logs or use EventBridge, but SNS is the simplest direct integration. For a quick memory tip, think “Stack fails, SNS mails the details”—the notification option is set at the stack level, not per resource, and it delivers the failing resource’s logical ID and reason in real time.

DOP-C02 Monitoring and Logging Practice Question

This DOP-C02 practice question tests your understanding of monitoring and logging. The scenario asks you to isolate a root cause — eliminate options that address a different problem before choosing. 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 company is using AWS CloudFormation to deploy infrastructure. They want to receive notifications when a stack operation fails, including the specific resource that caused the failure. Which approach should they use?

Question 1mediummultiple 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

Configure an SNS topic as a notification option in the CloudFormation stack and subscribe to receive stack events.

Option B is correct because CloudFormation allows you to specify an SNS topic ARN as a notification option when creating or updating a stack. When a stack operation fails, CloudFormation publishes a notification to that SNS topic, and the notification includes the logical resource ID and the status reason for the failure. This provides real-time, event-driven notifications without requiring polling or additional services.

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.

  • Create a CloudWatch alarm on the 'StackFailure' metric.

    Why it's wrong here

    CloudFormation does not emit a 'StackFailure' metric.

  • Configure an SNS topic as a notification option in the CloudFormation stack and subscribe to receive stack events.

    Why this is correct

    CloudFormation can send stack events (including failures) to SNS.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Create an AWS Lambda function that polls the CloudFormation DescribeStackEvents API every minute and sends an email on failure.

    Why it's wrong here

    Polling is inefficient; CloudFormation already supports SNS notifications.

  • Enable AWS CloudTrail to log CloudFormation API calls and configure an SNS notification on the trail.

    Why it's wrong here

    CloudTrail logs API calls, but not resource-level failure details.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates may confuse CloudWatch metrics or CloudTrail with CloudFormation's native notification capability, assuming that failure events are exposed as metrics or logs rather than through SNS topic subscriptions.

Detailed technical explanation

How to think about this question

CloudFormation stack notifications are sent to the specified SNS topic for every stack event, including successes and failures. The notification payload includes the StackId, LogicalResourceId, ResourceStatus, and ResourceStatusReason, enabling automated remediation via Lambda subscribers. In a production environment, you can combine this with a Lambda function that triggers rollback or sends alerts to a chat platform, ensuring rapid response to failures.

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 cloud solutions architect for a retail company is evaluating services for a new workload. The correct answer here reflects best practice for the specific scenario described — not a general cloud recommendation. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Cloud exam questions reward reading the constraint carefully: the same technology can be right or wrong depending on the use case.

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.

Related practice questions

Related DOP-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 DOP-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 DOP-C02 question test?

Monitoring and Logging — This question tests Monitoring and Logging — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Configure an SNS topic as a notification option in the CloudFormation stack and subscribe to receive stack events. — Option B is correct because CloudFormation allows you to specify an SNS topic ARN as a notification option when creating or updating a stack. When a stack operation fails, CloudFormation publishes a notification to that SNS topic, and the notification includes the logical resource ID and the status reason for the failure. This provides real-time, event-driven notifications without requiring polling or additional services.

What should I do if I get this DOP-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 →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

2 more ways this is tested on DOP-C02

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. A company is using AWS CloudFormation to deploy infrastructure. The DevOps team wants to receive notifications when a stack creation fails. Which services can be used together to send an email notification on stack failure? (Choose TWO.)

easy
  • A.AWS Lambda
  • B.Amazon Simple Queue Service (SQS)
  • C.Amazon Simple Notification Service (SNS)
  • D.AWS CloudFormation
  • E.Amazon CloudWatch

Why C: Amazon SNS (Option C) is correct because it can send email notifications to subscribers when a CloudFormation stack creation fails. AWS CloudFormation (Option D) is correct because it can directly publish failure events to an SNS topic via the 'NotificationARNs' parameter in stack creation, enabling automated email alerts without additional services.

Variation 2. 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?

easy
  • A.Amazon SQS
  • B.Amazon CloudWatch Logs
  • C.AWS CloudTrail
  • D.Amazon EventBridge

Why D: Option B is correct because Amazon EventBridge can capture CloudFormation stack events (such as CREATE_FAILED) and route them to an SNS topic for notification. Option A is wrong because CloudWatch Logs stores logs but does not directly send notifications. Option C is wrong because CloudTrail records API calls but is not the most efficient for real-time notifications. Option D is wrong because SQS is a queue, not a notification service.

Keep practising

More DOP-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 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.