nerdexam
Amazon

SOA-C02 · Question #341

A SysOps administrator must ensure that a company's Amazon EC2 instances auto scale as expected. The SysOps administrator configures an Amazon EC2 Auto Scaling lifecycle hook to send an event to Amazo

The correct answer is A. Add a permission to the Lambda function so that it can be invoked by the EventBridge. To allow the EventBridge (CloudWatch Events) rule to invoke the Lambda function, the function's execution role needs to have the necessary permissions to be invoked by the rule. Specifically, the execution role needs to have an event pattern that matches the rule and an IAM polic

Submitted by jakub_pl· Mar 30, 2026Deployment, Provisioning, and Automation

Question

A SysOps administrator must ensure that a company's Amazon EC2 instances auto scale as expected. The SysOps administrator configures an Amazon EC2 Auto Scaling lifecycle hook to send an event to Amazon EventBridge (Amazon CloudWatch Events), which then invokes an AWS Lambda function to configure the EC2 instances. When the configuration is complete, the Lambda function calls the complete-lifecycle-action event to put the EC2 instances into service. In testing, the SysOps administrator discovers that the Lambda function is not invoked when the EC2 instances auto scale. What should the SysOps administrator do to resolve this issue?

Options

  • AAdd a permission to the Lambda function so that it can be invoked by the EventBridge
  • BChange the lifecycle hook action to CONTINUE if the lifecycle hook experiences a fa* we or
  • CConfigure a retry policy in the EventBridge (CloudWatch Events) rule to retry the Lambda function
  • DUpdate the Lambda function execution role so that it has permission to call the complete lifecycle-

How the community answered

(39 responses)
  • A
    82% (32)
  • B
    5% (2)
  • C
    10% (4)
  • D
    3% (1)

Explanation

To allow the EventBridge (CloudWatch Events) rule to invoke the Lambda function, the function's execution role needs to have the necessary permissions to be invoked by the rule. Specifically, the execution role needs to have an event pattern that matches the rule and an IAM policy that grants the necessary permissions to execute the Lambda function. By adding the necessary permissions to the Lambda function, the SysOps administrator can ensure that the function is invoked when the EC2 instances auto scale. Option D is incorrect because updating the Lambda function execution role so that it has permission to call the complete-lifecycle-action event will not address the issue of the Lambda function not being invoked by the EventBridge (CloudWatch Events) rule.

Topics

#Auto Scaling lifecycle hook#EventBridge#Lambda resource policy#permissions

Community Discussion

No community discussion yet for this question.

Full SOA-C02 Practice