SOA-C02 Monitoring, Logging, and Remediation Practice Question
A company uses AWS CloudFormation to deploy its infrastructure. The SysOps administrator needs to be notified when a stack creation fails. Which solution meets this requirement with the LEAST effort?
⚠ Common exam trap
The trap here is that candidates often overthink and choose CloudWatch alarms or CloudTrail, not realizing that CloudFormation's built-in SNS notification parameter provides a zero-configuration, event-driven solution for stack failure alerts.
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 in the CloudFormation stack's 'NotificationARNs' parameter.
CloudFormation natively supports specifying an SNS topic in the 'NotificationARNs' parameter, which automatically sends notifications on stack events such as creation failure. This requires no additional infrastructure, scripting, or monitoring setup, making it the least-effort solution.
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 that triggers when the CloudFormation stack status is 'CREATE_FAILED'.
Why it's wrong here
CloudWatch alarms operate only on CloudWatch metrics or metric math, and CloudFormation does not publish stack status (such as CREATE_FAILED) as a CloudWatch metric by default. Without a custom resource or external script that calls PutMetricData, there is no metric for an alarm to evaluate, so this alarm cannot be created natively. Even if you approximated it with a CloudWatch Logs metric filter from stack event logs, that introduces delay and additional infrastructure.
- ✗
Use AWS CloudTrail to monitor CreateStack API calls and trigger an SNS notification.
Why it's wrong here
CloudTrail records API activity for auditing, but delivers events to S3 or CloudWatch Logs asynchronously and does not natively trigger an SNS notification on each event. To act on a CreateStack call, you would need to create an Amazon EventBridge rule matching the CloudTrail API event, then attach an SNS target, which is extra setup. Moreover, the CreateStack API event alone does not convey whether the stack reached CREATE_FAILED, so it fails to meet the notification requirement directly.
- ✓
Configure an SNS topic in the CloudFormation stack's 'NotificationARNs' parameter.
Why this is correct
The NotificationARNs parameter is a native CloudFormation feature that accepts one or more Amazon SNS topic ARNs, causing CloudFormation to publish all stack lifecycle events—including CREATE_FAILED, ROLLBACK_COMPLETE, and resource-level failures—to the topic. This is the built-in, real-time mechanism designed exactly for this scenario, requiring no custom code, polling, or metric configuration. Simply specify the SNS topic ARN when creating or updating the stack, and ensure the topic policy trusts CloudFormation's publishing role.
- ✗
Write a custom script that polls the CloudFormation API every minute and sends an SNS notification on failure.
Why it's wrong here
A custom polling script that calls DescribeStacks every minute is functionally possible, but it introduces up to 60 seconds of latency, requires a continuously running compute resource, and places the burden of error handling, credentials, and retry logic on you. It also creates operational risk because if the script or its scheduled job fails, you can miss the failure notification entirely. CloudFormation's built-in SNS integration provides immediate, reliable notifications without any custom application code.
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 →
Same concept, more angles
1 more way this is tested on SOA-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. An organization is using AWS CloudFormation to deploy infrastructure. The SysOps administrator needs to receive notifications when stack creation fails. What is the simplest way to achieve this?
medium- A.Create a CloudWatch alarm on the 'StackCreationFailure' metric.
- ✓ B.Provide an SNS topic ARN in the --notification-arns parameter when creating the stack.
- C.Create an EventBridge rule that triggers on CloudFormation events.
- D.Enable CloudTrail and create a metric filter for 'CreateStack' failures.
Why B: The `--notification-arns` parameter in the AWS CLI `create-stack` command directly associates an SNS topic with the stack, causing CloudFormation to publish notifications for all stack events, including failures. This is the simplest method as it requires no additional services or configuration beyond specifying the SNS topic ARN at stack creation.
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.