AWS Certified Developer – Associate (DVA-C02) — Question 321

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?

Answer options

Correct answer: D

Explanation

Amazon EventBridge rules provide a near-real-time, serverless mechanism to filter AWS CloudTrail events and route them directly to targets like Amazon SNS, satisfying the requirement for immediate notification. Options A, B, and C introduce unnecessary operational overhead and introduce a 15-minute delay due to their polling schedules. Therefore, using an EventBridge rule with the SNS topic as the target is the most efficient, real-time, and cost-effective solution.