DVA-C02 · Question #793
DVA-C02 Question #793: Real Exam Question with Answer & Explanation
The correct answer is A: Add a policy to the execution role of the Lambda function to allow access to the event bus.. The Lambda function must have permission to call EventBridge APIs, which is granted by adding an IAM policy to the function’s execution role that allows putting events to the target event bus. In addition, because the event bus is in a different AWS account, the event bus must ha
Question
A developer is building an application that is based on an AWS Lambda function. The developer needs to allow the Lambda function to send events to an Amazon EventBridge event bus in another AWS account. Which combination of steps will meet this requirement? (Choose two.)
Options
- AAdd a policy to the execution role of the Lambda function to allow access to the event bus.
- BConfigure a Lambda destination to send events to the event bus.
- CConfigure an EventBridge rule to invoke the Lambda function. Configure an IAM role to allow
- DUpdate the Lambda function resource-based policy to allow access to the event bus.
- EUpdate the event bus resource-based policy to allow access from the AWS account that contains
Explanation
The Lambda function must have permission to call EventBridge APIs, which is granted by adding an IAM policy to the function’s execution role that allows putting events to the target event bus. In addition, because the event bus is in a different AWS account, the event bus must have a resource-based policy that explicitly allows the source AWS account (where the Lambda function runs) to put events to it.
Community Discussion
No community discussion yet for this question.