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?
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.
The other solutions are not as efficient as this solution. Solution A is inefficient because it uses two Lambda functions, which can add latency to the notification process. Solution B is inefficient because it uses the EC2 instance scheduler, which is not designed for real-time notifications. Solution D is inefficient because it requires the deployment of a custom application, which can be difficult to manage and scale.
You want to queue some data for EC2 to process, use SQS (simple queue service). You want to send a event notification (such as for EC2 startup), use SNS (simple notification service). "C" is the most inefficient and convoluted answer given (IMHO).
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Gomer
Highly Voted 1 year, 10 months agoAamee
Most Recent 6 months, 2 weeks agoBhrino
1 year, 8 months agovic614
1 year, 10 months agotts1234
1 year, 10 months agoShoppe
1 year, 11 months agoGomer
1 year, 10 months ago