Course menuSOA-C03

Exams / SOA-C03 / EventBridge rules and notifications / Question 1

SOA-C03 practice question: EventBridge rules and notifications

Monitoring, Logging, Analysis, Remediation, and Performance Optimization A free question from our original SOA-C03 practice exam. Try it, then open the answer to see why each option is right or wrong.

A logistics broker created an EventBridge rule with the AWS CLI, with no IAM role on its target. It matches EC2 Instance State-change Notification events for the stopped state and targets a Lambda function that tags the instance and opens a ticket. In CloudWatch, the rule's TriggeredRules metric increases whenever an instance stops, and its FailedInvocations metric increases by the same amount. The function has never run. What is the MOST likely fix?

Choose one answer.

  1. A. Turn on a CloudTrail trail in the Region, because EventBridge receives EC2 state-change events only from CloudTrail.
  2. B. Add a statement to the function's resource-based policy that lets events.amazonaws.com invoke it from this rule.
  3. C. Add the events:PutEvents and lambda:InvokeFunction permissions to the Lambda function's execution role.
  4. D. Change the event pattern to match the detail-type field exactly, because the current pattern matches too many events.
Show the answer and explanation

Answer: B

Explanation

Rule metrics separate the two halves of the problem. TriggeredRules shows events match the pattern, and FailedInvocations shows delivery to the target fails. For Lambda targets created outside the console, the usual cause is a missing resource-based policy statement allowing events.amazonaws.com. A dead-letter queue on the target would also capture the error details for future failures.

Study

Keep practicing

Answer questions with a score at the end, or practice just this topic with the explanation after each one. No sign-up needed.