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 role to the function with lambda:InvokeFunction as the action and Service:amazonaws.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
Q546: An online photo-sharing company stores its photos
Q547: A solutions architect needs to design the
Q548: A company wants to run its critical
Q549: A company is designing a shared storage
Q550: An Amazon EC2 instance is located in
Q552: A solutions architect needs to design a
Q553: A company hosts its website on Amazon
Q554: A company has many projects that run
Q555: A security team needs to enforce the
Q556: A manufacturing company wants to implement predictive
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