
Ultimate access to all questions.
A solutions architect is deploying a serverless application using AWS Lambda and Amazon EventBridge. The architect must adhere to the principle of least privilege when configuring the Lambda function's permissions. Which configuration is appropriate for an EventBridge rule to invoke the Lambda function?
A
Assign an execution role with lambda:InvokeFunction and a wildcard principal.
B
Assign an execution role with lambda:InvokeFunction and Service: lambda.amazonaws.com as the principal.
C
Implement a resource-based policy allowing lambda:* actions for Service: events.amazonaws.com.*
D
Implement a resource-based policy specifically for lambda:InvokeFunction with Service: events.amazonaws.com as the principal.