
Answer-first summary for fast verification
Answer: Ensure that both the IAM role that EventBridge uses and the Lambda function's resource-based policy have the necessary permissions.
Option B is CORRECT because to resolve the AccessDeniedException message, it is necessary to ensure that both the IAM role that EventBridge uses and the Lambda function's resource-based policy have the necessary permissions. Specifically, the Lambda function's resource-based policy must allow the events.amazonaws.com principal to invoke the Lambda function.
Author: Ritesh Yadav
Ultimate access to all questions.
Question 26/60
A data engineer creates an AWS Lambda function that an Amazon EventBridge event will invoke. When the data engineer tries to invoke the Lambda function by using an EventBridge event, an AccessDeniedException message appears.
How should the data engineer resolve the exception?
A
Ensure that the trust policy of the Lambda function execution role allows EventBridge to assume the execution role.
B
Ensure that both the IAM role that EventBridge uses and the Lambda function's resource-based policy have the necessary permissions.
C
Ensure that the subnet where the Lambda function is deployed is configured to be a private subnet.
D
Ensure that EventBridge schemas are valid and that the event mapping configuration is correct.
No comments yet.