How to Immediately Alert on Non-CloudFormation IAM Role Creation?
A company needs to deploy all its cloud resources by using AWS CloudFormation templates. A developer must create an Amazon Simple Notification Service (Amazon SNS) automatic notification to help enforce this rule. The developer creates an SNS topic and subscribes the email address of the company's security team to the SNS topic. The security team must receive a notification immediately if an IAM role is created without the use of CloudFormation. Which solution will meet this requirement?
Community Votes
100% of anonymous learners picked answer D. Votes are pick records left by other test-takers — they are not the verified answer.
Community Insight
The exam tests your ability to choose event-driven architectures over scheduled polling, with the common trap being the selection of Lambda or container-based solutions that inherently introduce latency.
This question tests implementing real-time AWS compliance monitoring using CloudTrail, EventBridge, and SNS. The community unanimously agrees that a direct EventBridge rule targeting SNS is the only solution that satisfies the immediate notification requirement without introducing polling delays.
Candidates occasionally select options involving Lambda or ECS, mistakenly believing custom compute is needed to process CloudTrail logs, while overlooking EventBridge's native filtering and target routing capabilities.
Community Discussion (5 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Why the Answer Is Correct
Amazon EventBridge natively integrates with AWS CloudTrail to capture management events like IAM role creation. By configuring an EventBridge rule with a precise event pattern, you can automatically route matching events directly to an SNS topic, ensuring near-instantaneous delivery to subscribed email addresses.Why the Other Options Are Wrong
Options A, B, and C all rely on scheduled execution intervals (e.g., every 15 minutes). This polling approach fundamentally contradicts the requirement for an immediate notification and introduces unnecessary operational overhead by provisioning Lambda functions, Fargate tasks, or EC2 instances.Community Comment Notes
Commenters consistently highlight that the word "immediate" eliminates any time-based scheduling mechanism [3]. Users also note that EventBridge rules are specifically designed to match event data and route it to parallel targets without custom code [1]. The unanimous vote distribution confirms this is a straightforward application of managed event-driven services.Official Reference
Exam Strategy
Always scan for timing keywords like 'immediate,' 'real-time,' or 'instant' in exam questions; they explicitly rule out scheduled or polling-based architectures. When asked to monitor AWS API activity, default to CloudTrail paired with EventBridge for serverless, low-latency automation before considering custom compute.
Related Analysis
Practice All DVA-C02 Questions
Access 100 questions with complete answers and detailed explanations.
View Full DVA-C02 Practice Test →