Topic 1 Question 333
A developer is building an event-driven application by using AWS Lambda and Amazon EventBridge. The Lambda function needs to push events to an EventBridge event bus. The developer uses an SDK to run the PutEvents EventBridge action and specifies no credentials in the code. After deploying the Lambda function, the developer notices that the function is failing and there are AccessDeniedException errors in the logs.
How should the developer resolve this issue?
Configure a VPC peering connection between the Lambda function and EventBridge.
Modify their AWS credentials to include permissions for the PutEvents EventBridge action.
Modify the Lambda function execution role to include permissions for the PutEvents EventBridge action.
Add a resource-based policy to the Lambda function to include permissions for the PutEvents EventBridge action.
ユーザの投票
コメント(6)
C you use IAM roles on the sender event bus to give the sender event bus permission to send events to the receiver event bus. You use Resource-based policies on the receiver event bus to give the receiver event bus permission to receive events from the sender event bus.
https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-bus-to-bus.html
👍 3be1dca82024/04/11- 正解だと思う選択肢: C
Lambda Execution Role (IAM Role) • Grants the Lambda function permissions to AWS services / resources
👍 2outrageous72024/03/24 - 正解だと思う選択肢: C
As lambda is initiating the action (push), permission must be attached the the execution role.
👍 2DeaconStJohn2024/03/26
シャッフルモード