Topic 1 Question 442
A SysOps administrator created an AWS CloudFormation template that provisions an Amazon EventBridge rule that invokes an AWS Lambda function. The Lambda function is designed to write event details to an Amazon CloudWatch log group. The function has permissions to write events to Amazon CloudWatch Logs. However, the SysOps administrator discovered that the Lambda function is not running.
How should the SysOps administrator resolve the problem?
Update the CloudFormation stack to include an AWS::IAM::Role resource with the required IAM permissions for EventBridge to invoke the function. Assign the role to the EventBridge rule.
Update the CloudFormation stack to include an AWS::IAM::Role resource with the required IAM permissions for the function. Assign the role as the function execution role.
Update the CloudFormation stack with an AWS::Lambda::Permission resource to ensure events.amazonaws.com has permissions to invoke the function.
Update the CloudFormation stack with an AWS::Lambda::Permission resource to ensure lambda.amazonaws.com has permissions to invoke the function.
ユーザの投票
コメント(5)
- 正解だと思う選択肢: C
Here the issue is that the Lambda function is not running meaning that the function cannot be invoked. Well, EventBridge should invoke the function so the CloudFormation template would need an AWS::Lambda::Permission resource which ensures that events.amazonaws.com (the service principal for EventBridge) has the necessary permissions to invoke the Lambda function.
👍 4tgv2024/04/15 - 正解だと思う選択肢: C
The lambda function is fine, so the issue likely lies with EventBridge. It seems that EventBridge lacks the permission to invoke the Lambda function.
👍 2VerRi2024/07/25 - 正解だと思う選択肢: B
By updating the CloudFormation stack with an IAM role specifically for the Lambda function, the administrator ensures that the function has the necessary permissions to execute successfully.
👍 1mestule2024/04/24
シャッフルモード