SAP-C02 · Question #256
A company is running an application in the AWS Cloud. The company's security team must approve the creation of all new IAM users. When a new IAM user is created, all access for the user must be…
The correct answer is A. Create an Amazon EventBridge (Amazon CloudWatch Events) rule. D. Invoke an AWS Step Functions state machine to remove access. E. Use Amazon Simple Notification Service (Amazon SNS) to notify the security team. To automatically remove access for new IAM users and notify a security team for approval, an EventBridge rule should trigger an AWS Step Functions state machine, which then sends a notification via Amazon SNS.
Question
A company is running an application in the AWS Cloud. The company's security team must approve the creation of all new IAM users. When a new IAM user is created, all access for the user must be removed automatically. The security team must then receive a notification to approve the user. The company has a multi-Region AWS CloudTrail trail In the AWS account. Which combination of steps will meet these requirements? (Choose three.)
Options
- ACreate an Amazon EventBridge (Amazon CloudWatch Events) rule.
- BConfigure CloudTrail to send a notification for the CreateUser event to an Amazon Simple
- CInvoke a container that runs in Amazon Elastic Container Service (Amazon ECS) with AWS
- DInvoke an AWS Step Functions state machine to remove access.
- EUse Amazon Simple Notification Service (Amazon SNS) to notify the security team.
- FUse Amazon Pinpoint to notify the security team.
How the community answered
(30 responses)- A47% (14)
- B30% (9)
- C17% (5)
- F7% (2)
Why each option
To automatically remove access for new IAM users and notify a security team for approval, an EventBridge rule should trigger an AWS Step Functions state machine, which then sends a notification via Amazon SNS.
An Amazon EventBridge rule is the appropriate mechanism to detect the `CreateUser` event captured by CloudTrail and trigger subsequent automated actions based on that event.
While CloudTrail can send notifications to SNS, EventBridge is the more flexible and recommended service for filtering events and orchestrating complex workflows beyond a simple notification.
While a container could perform the access removal, an AWS Step Functions state machine is a more suitable serverless orchestration service for managing multi-step workflows with state and error handling.
An AWS Step Functions state machine can orchestrate the complex workflow of removing all access for a newly created IAM user, ensuring all necessary IAM API calls are made and managing the state of the approval process.
Amazon Simple Notification Service (SNS) is the standard and most direct way to send notifications, such as an approval request, to the security team via various subscription endpoints like email or SMS.
Amazon Pinpoint is primarily for customer engagement campaigns and is less suitable for internal system notifications compared to the simpler and more direct Amazon SNS.
Concept tested: Event-driven automation with CloudTrail, EventBridge, Step Functions, and SNS
Source: https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-troubleshooting.html
Community Discussion
No community discussion yet for this question.