QuestionQ29

VerifiedSecurity and Compliance

A company’s developers use Amazon EC2 instances as remote workstations. The company is concerned that users could create or modify EC2 security groups to permit unrestricted inbound access.

A DevOps engineer must develop a solution that detects when users create unrestricted security group rules. The solution must identify security group rule changes in near real time, remove unrestricted rules, and send email notifications to the security team. The DevOps engineer has created an AWS Lambda function that checks the input for a security group ID, removes rules granting unrestricted access, and sends notifications through Amazon Simple Notification Service (Amazon SNS).

What should the DevOps engineer do next to satisfy the requirements?

Explanation

Amazon EC2 API calls, including security group creation and rule-modification operations, can be delivered from AWS CloudTrail to the default Amazon EventBridge event bus. An EventBridge rule with an event pattern for the applicable EC2 security group events can invoke the Lambda function in near real time; the function can remediate the rule and publish the email notification through Amazon SNS.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!