Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam AWS Certified SysOps Administrator - Associate All Questions

View all questions & answers for the AWS Certified SysOps Administrator - Associate exam

Exam AWS Certified SysOps Administrator - Associate topic 1 question 442 discussion

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?

  • A. 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.
  • B. 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.
  • C. Update the CloudFormation stack with an AWS::Lambda::Permission resource to ensure events.amazonaws.com has permissions to invoke the function.
  • D. Update the CloudFormation stack with an AWS::Lambda::Permission resource to ensure lambda.amazonaws.com has permissions to invoke the function.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Aamee
2 weeks, 3 days ago
Selected Answer: C
C seems to be..
upvoted 1 times
...
VerRi
3 months, 2 weeks ago
Selected Answer: 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.
upvoted 2 times
...
6022a06
5 months, 3 weeks ago
Selected Answer: C
i vote c because is reported in the page that : When you use AWS CLI, SDK, or AWS CloudFormation to create a rule, you must manually apply the permissions in the resource policy. https://repost.aws/knowledge-center/eventbridge-lambda-not-triggered
upvoted 1 times
...
mestule
6 months, 3 weeks ago
Selected Answer: 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.
upvoted 1 times
...
tgv
7 months ago
Selected Answer: 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.
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...