exam questions

Exam AWS Certified Solutions Architect - Professional SAP-C02 All Questions

View all questions & answers for the AWS Certified Solutions Architect - Professional SAP-C02 exam

Exam AWS Certified Solutions Architect - Professional SAP-C02 topic 1 question 117 discussion

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.)

  • A. Create an Amazon EventBridge (Amazon CloudWatch Events) rule. Define a pattern with the detail-type value set to AWS API Call via CloudTrail and an eventName of CreateUser.
  • B. Configure CloudTrail to send a notification for the CreateUser event to an Amazon Simple Notification Service (Amazon SNS) topic.
  • C. Invoke a container that runs in Amazon Elastic Container Service (Amazon ECS) with AWS Fargate technology to remove access.
  • D. Invoke an AWS Step Functions state machine to remove access.
  • E. Use Amazon Simple Notification Service (Amazon SNS) to notify the security team.
  • F. Use Amazon Pinpoint to notify the security team.
Show Suggested Answer Hide Answer
Suggested Answer: ADE 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
God_Is_Love
Highly Voted 2 years, 2 months ago
Selected Answer: ADE
Event Bus (EventBridge) system to receive event notification (Option A). Step function can get triggered with workflow of doing steps like removing access and sending email etc..(Option D, E) EventBridge enables you to create event rules that match events from different sources, such as AWS services, SaaS applications, custom applications, and other AWS accounts. Once an event rule is triggered, EventBridge can route the event to one or more targets, such as AWS Lambda functions, Amazon SNS topics, Amazon SQS queues, or custom HTTP endpoints. AWS Step Functions supports several AWS services, such as AWS Lambda, Amazon Simple Notification Service (SNS), and Amazon Simple Queue Service (SQS). You can use these services to trigger actions and pass data between steps in your state machine. Pinpoint is chat system which question did not ask, F is wrong. Not C as
upvoted 14 times
Jay_2pt0_1
2 years ago
I agree with this.
upvoted 1 times
...
hobokabobo
2 years, 2 months ago
this explanation makes sense to me.
upvoted 1 times
...
...
amministrazione
Most Recent 8 months, 3 weeks ago
A. Create an Amazon EventBridge (Amazon CloudWatch Events) rule. Define a pattern with the detail-type value set to AWS API Call via CloudTrail and an eventName of CreateUser. D. Invoke an AWS Step Functions state machine to remove access. E. Use Amazon Simple Notification Service (Amazon SNS) to notify the security team.
upvoted 1 times
...
TonytheTiger
1 year, 1 month ago
Selected Answer: ACE
Option ADE: Most people agree with option AE. There can be situations where human intervention is required before the workflow can progress. For example, approving a substantial credit increase may require human approval https://docs.aws.amazon.com/step-functions/latest/dg/use-cases-security-automation.html
upvoted 1 times
helloworldabc
8 months, 3 weeks ago
just ADE
upvoted 1 times
...
...
24Gel
1 year, 2 months ago
Why not BCE? or ACE? How to use Step Function to remove permission?
upvoted 1 times
...
dankositzke
1 year, 3 months ago
Poorly constructed answer choices, but ADE is the least worst option.
upvoted 2 times
...
zanhsieh
1 year, 3 months ago
Selected Answer: ADE
I picked ADE. EventBridge, Lambda / Step Function, and SNS are required. BDE: No. CloudTrail can't trigger Step Function directly. ABE: No. This solution can't remove the user access automatically. Choosing B alone without A can't directly trigger Lambda / Step functions to remove the user access. C can't compare with D. F is not relevant.
upvoted 1 times
...
AWSLord32
1 year, 3 months ago
Selected Answer: BDE
Eventbridge is not needed. Cloudtrail can send notifications to SNS directly https://docs.aws.amazon.com/awscloudtrail/latest/userguide/configure-sns-notifications-for-cloudtrail.html
upvoted 3 times
altonh
4 months, 1 week ago
"You can be notified when CloudTrail publishes new log files to your Amazon S3 bucket. You manage notifications using Amazon Simple Notification Service (Amazon SNS)." That's the only notification you are getting. It's not good enough. You need the actual API call made, which is the user creation API.
upvoted 1 times
...
AWSLord32
1 year, 3 months ago
Also, if you select ADE how would the event ever trigger SNS to send the notification?
upvoted 2 times
fartosh
12 months ago
What do you mean? SNS topic is one of the (many) allowed targets for EventBridge. https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-targets.html Regarding "Eventbridge is not needed" - it's only true for notifications because CloudTrail integrates with SNS. CloudTrail alone cannot trigger any automation tools like Lambda or Step Function. That's why EventBridge is better in this case. You can add both targets to the same rule.
upvoted 1 times
...
...
...
bjexamprep
1 year, 3 months ago
Selected Answer: ACE
Step function is a process/workflow orchestrator. Usually process/workflow orchestrator doesn’t do actual task, cause the objective of a orchestrator is to maintain the stage of a process/workflow. Instead, the orchestrator call a service to complete the task and update the stage. So the task of removing access should be done by a Lambda function. Since lambda function is not an option, the only applicable option is C, while ECS introduces too much administration overhead, and is a very bad choice for this task.
upvoted 1 times
...
career360guru
1 year, 5 months ago
Selected Answer: ADE
A, D and E
upvoted 1 times
...
NikkyDicky
1 year, 10 months ago
Selected Answer: ADE
ADE. have to assume the step function calls lambda or some such to actually perform action
upvoted 1 times
...
Maria2023
2 years ago
Selected Answer: ADE
I've chosen the EventBridge option (A) because I really was not able to find a way to set Cloudtrail to trigger SNS on it's own. The rest 2 are common sense
upvoted 2 times
AWSLord32
1 year, 3 months ago
Here you go https://docs.aws.amazon.com/awscloudtrail/latest/userguide/configure-sns-notifications-for-cloudtrail.html
upvoted 1 times
...
...
OCHT
2 years, 1 month ago
Selected Answer: ABE
A. Create an Amazon EventBridge (Amazon CloudWatch Events) rule. Define a pattern with the detail-type value set to AWS API Call via CloudTrail and an eventName of CreateUser. B. Configure CloudTrail to send a notification for the CreateUser event to an Amazon Simple Notification Service (Amazon SNS) topic. E. Use Amazon Simple Notification Service (Amazon SNS) to notify the security team.
upvoted 2 times
OCHT
2 years, 1 month ago
By creating an Amazon EventBridge rule, the company can detect the CreateUser event in CloudTrail and use it to trigger actions such as sending notifications or invoking AWS Lambda functions. Configuring CloudTrail to send a notification for the CreateUser event to an Amazon SNS topic allows the security team to receive a notification whenever a new IAM user is created. Using Amazon SNS, the security team can receive the notification and approve or deny the new IAM user creation. If the security team denies the creation, access can be automatically removed using AWS Lambda or AWS Step Functions. Therefore, these three steps will allow the company to meet its requirements for user creation approval and access removal.
upvoted 2 times
...
...
mfsec
2 years, 1 month ago
Selected Answer: ADE
ADE is right
upvoted 1 times
...
[Removed]
2 years, 3 months ago
Selected Answer: ADE
ADE Step Functions works.
upvoted 1 times
...
Musk
2 years, 3 months ago
Selected Answer: ACE
I like ACE better. I am not sure Step Functions would work.
upvoted 1 times
moota
2 years, 3 months ago
According to ChatGPT, AWS Step Functions can interact with AWS APIs in a few different ways. One example is below. Directly invoking AWS APIs using the "Task" state in Step Functions. This state type allows you to run an AWS Lambda function, which can interact with AWS APIs as part of its logic.
upvoted 1 times
...
...
zhangyu20000
2 years, 4 months ago
ADE are correct
upvoted 1 times
...
masetromain
2 years, 4 months ago
Selected Answer: ADE
This is the correct answer because it follows these steps: - A: The first step is to create an EventBridge rule that listens for the specific API call to create a new IAM user. This will trigger the next step in the process. - D: The next step is to use an AWS Step Functions state machine to remove access for the new IAM user. This ensures that access is removed automatically, as required by the security team. - E: Finally, use Amazon SNS to notify the security team that a new user has been created and access has been removed. This allows the security team to review and approve the user as necessary. Option B is not correct because CloudTrail alone is not able to remove access for the new user. Option C is not correct because it is not specified in the question that the company is using Amazon Elastic Container Service and AWS Fargate technology. Option F is not correct because the question specifies that the company should use Amazon SNS to notify the security team, not Amazon Pinpoint.
upvoted 4 times
hobokabobo
2 years, 2 months ago
"the question specifies that the company should use Amazon SNS " -> no, it does not specify anything like that. "because it is not specified in the question that the company is using Amazon Elastic Container"-> so? is it specified that they use step function., can't find that either. The question must have changed, it does not match your explanations.
upvoted 1 times
Jesuisleon
2 years ago
He just copied the answer from chatgpt for every question, really made me sick
upvoted 7 times
BabaP
1 year, 11 months ago
it is annoying, I don't bother with reading them even if the answer they picked is correct
upvoted 3 times
...
...
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
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.

SaveCancel
Loading ...