
Answer-first summary for fast verification
Answer: Extend the Lambda function's execution role to include the PutEvents permission for EventBridge.
The issue is occurring because the Lambda function lacks the necessary permissions to perform the PutEvents action on the EventBridge event bus. To resolve this, you need to modify the Lambda function's execution role to include the required permissions for the PutEvents action. This ensures that the Lambda function can interact with the EventBridge event bus as intended. Therefore, the correct option is C.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
A developer encounters AccessDeniedException errors after deploying a Lambda function intended to push events to an EventBridge event bus using the SDK. How can they resolve the permission issue?
A
Establish a VPC peering connection for the Lambda function and EventBridge.
B
Update AWS credentials to grant PutEvents permission for EventBridge.
C
Extend the Lambda function's execution role to include the PutEvents permission for EventBridge.
D
Implement a resource-based policy for the Lambda function to permit the PutEvents action for EventBridge.