A company is preparing to deploy a new serverless workload. A solutions architect needs to configure permissions for invoking an AWS Lambda function. The function will be triggered by an Amazon EventBridge (Amazon CloudWatch Events) rule. Permissions should be configured using the principle of least privilege. Which solution will meet these requirements?
A) Add an execution role to the function with lambda:InvokeFunction as the action and * as the principal.
B) Add an execution rote to the function with lambda:InvokeFunction as the action and Service:eventsamazonaws.com as the principal.
C) Add a resource-based policy to the function with lambda:' as the action and Service:events.amazonaws.com as the principal.
D) Add a resource-based policy to the function with lambda:InvokeFunction as the action and Service:events.amazonaws.com as the principal.
Correct Answer:
Verified
Q199: A company has an on-premises application that
Q200: A company receives 10 TB of instrumentation
Q201: A company needs to store data in
Q202: A company requires that all versions of
Q203: A company wants to automate the security
Q205: A solutions architect is creating a data
Q206: A company is planning to use an
Q207: A company is building its web application
Q208: A company has applications hosted on Amazon
Q209: A company is reviewing a recent migration
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents