INCORRECT: “Create an Auto Scaling Group (ASG) and register the Lambda function in the launch configuration” is incorrect as launch configurations and ASGs are used for launching Amazon EC2 instances, you cannot use an ASG with a Lambda function. If the request content matches a listener rule with an action to forward it to this target group, the load balancer invokes the registered Lambda function.ĬORRECT: “Create a target group and register the Lambda function using the AWS CLI” is the correct answer. You need to create a target group, which is used in request routing, and register a Lambda function to the target group.
When the load balancer forwards the request to a target group with a Lambda function as a target, it invokes your Lambda function and passes the content of the request to the Lambda function, in JSON format. You can register your Lambda functions as targets and configure a listener rule to forward requests to the target group for your Lambda function. How can this be achieved?ġ: Create a target group and register the Lambda function using the AWS CLI 2: Create an Auto Scaling Group (ASG) and register the Lambda function in the launch configurationģ: Setup an API in front of the ALB using API Gateway and use an integration request to map the request to the Lambda functionĤ: Configure an event-source mapping between the ALB and the Lambda function AWS Certified Developer Associate Exam Question and Answers with ExplanationĪ developer is planning to use a Lambda function to process incoming requests from an Application Load Balancer (ALB).