QuestionQ53

VerifiedData Security and Governance

A data engineer creates an AWS Lambda function that an Amazon EventBridge event will invoke. When the data engineer attempts to invoke the Lambda function by using an EventBridge event, an AccessDeniedException message appears.

How should the data engineer resolve the exception?

Explanation

AWS Lambda invocation requires two permission layers: the EventBridge execution role (with lambda:InvokeFunction permission and a trust policy for events.amazonaws.com) and a Lambda function resource-based policy that explicitly grants EventBridge permission to invoke it. Both are necessary; the Lambda execution role's trust policy alone is insufficient because it governs who can assume the role, not who can invoke the function.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!