AWS Certified SysOps Administrator – Associate — Question 216
A company’s architecture team must receive immediate email notification whenever new Amazon EC2 instances are launched in the company's main AWS production account.
‘What should a SysOps administrator do to meet this requirement?
Answer options
- A. Create a user data script that sends an email message through a smart host connector. Include the architecture team's email address in the user data script as the recipient. Ensure that all new EC2 instances include the user data script as part of a standardized build process.
- B. Create an Amazon Simple Notification Service (Amazon SNS) topic and a subscription that uses the email protocol. Enter the architecture team's email address as the subscriber. Create an Amazon EventBridge rule that reacts when EC2 instances are launched. Specify the SNS topic as the rule's target.
- C. Create an Amazon Simple Queue Service (Amazon SQS) queue and a subscription that uses the email protocol. Enter the architecture team's email address as the subscriber. Create an Amazon EventBridge rule that reacts when EC2 instances are launched. Specify the SQS queue as the rule's target.
- D. Create an Amazon Simple Notification Service (Amazon SNS) topic. Configure AWS Systems Manager to publish EC2 events to the SNS topic. Create an AWS Lambda function to poll the SNS topic. Configure the Lambda function to send any messages to the architecture team's email address.
Correct answer: B
Explanation
The correct answer, B, is effective because it directly uses Amazon SNS to send email notifications when EC2 instances are launched, ensuring prompt alerts. Option A relies on user data scripts, which are not as immediate. Option C uses SQS instead of SNS, which is not designed for direct email notifications. Option D introduces unnecessary complexity by involving AWS Lambda and Systems Manager when SNS can handle the requirement more straightforwardly.