SOA-C02 Monitoring, Logging, and Remediation Practice Question
A company uses AWS CloudFormation to deploy its infrastructure. The SysOps administrator needs to be notified if a stack creation fails. Which method is the most efficient way to achieve this?
⚠ Common exam trap
The trap here is that candidates may overcomplicate the solution by choosing CloudTrail or Lambda polling, missing the fact that CloudFormation has a built-in, efficient notification mechanism via SNS that requires no additional services or custom code.
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
✓
Specify an SNS topic ARN in the 'NotificationARNs' parameter of the stack.
CloudFormation natively supports specifying an Amazon SNS topic ARN in the 'NotificationARNs' parameter of the stack. When a stack creation fails, CloudFormation automatically publishes a notification to the SNS topic, which can then deliver the message via email, SMS, or other protocols without any custom polling or additional services.
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 Amazon Simple Email Service (SES) to send emails on stack failure.
Why it's wrong here
Amazon Simple Email Service (SES) is a service for sending email, but CloudFormation does not support SES as a direct notification target. Stack event notifications are delivered to SNS topics that you specify, and those topics can have email subscribers. To use SES, you would need to build a separate Lambda function to fetch the event from SNS and send it via SES, which is additional complexity. This is not a native CloudFormation integration, so it is incorrect for responding to stack failures.
- ✓
Specify an SNS topic ARN in the 'NotificationARNs' parameter of the stack.
Why this is correct
CloudFormation provides a native push-based notification mechanism through the 'NotificationARNs' property of a stack. When you create or update a stack, you can supply up to five Amazon SNS topic ARNs, and CloudFormation automatically publishes all stack events—including failure states like CREATE_FAILED—to those topics. Subscribers such as email, SMS, or Lambda receive the notification immediately without any custom code. This is the simplest and most reliable way to be alerted on stack failure.
- ✗
Create a Lambda function that polls the CloudFormation API for stack status changes.
Why it's wrong here
Writing a Lambda function that periodically polls the CloudFormation API for status changes is an anti-pattern because it requires a separate scheduler (such as an Amazon CloudWatch Events rule) to invoke the function, adds latency between the failure event and the notification, and incurs additional API call costs as you poll repeatedly. CloudFormation already offers a push-based SNS notification mechanism that is immediate and serverless. A custom polling loop is inefficient, error-prone, and not the recommended AWS native approach.
- ✗
Enable CloudTrail and create a metric filter for 'CreateStack' events.
Why it's wrong here
CloudTrail records the CreateStack API call itself, but that log entry is generated when the request is received, not when the stack reaches a final status like CREATE_FAILED or CREATE_COMPLETE. A metric filter applied to CreateStack events would trigger on every stack creation attempt, regardless of outcome, and would not provide information about the actual result. CloudFormation status changes are emitted as stack events and are not captured as separate CloudTrail events, so this method cannot be used to reliably detect stack creation failure.
Go deeper
Related to this question
About these practice questions
One of 1,169 original SOA-C02 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
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.