A developer registered a Lambda function as a target for an Application Load Balancer (ALB) using the CLI, but the Lambda is not invoked when requests hit the ALB. Why is the Lambda not being called?
Choose an answer
Tap an option to check your answer.
Correct answer: The Lambda function is missing the required permissions to allow invocation by the ALB..
Why this is the answer
The correct answer is that the Lambda function is missing the required permissions to allow invocation by the ALB. When an ALB invokes a Lambda function, it acts as a principal that needs permission to call the lambda:InvokeFunction API action. This permission is granted via a resource-based policy attached to the Lambda function. Without this policy, the ALB cannot invoke the function, even if it's correctly registered as a target. Lambda functions can be registered as targets for an ALB, so the first option is incorrect. While the AWS Management Console can be used, registration via the CLI is also fully supported, making the second option incorrect. Cross-zone load balancing is a feature for distributing traffic across multiple Availability Zones for EC2 instances, not directly related to Lambda invocation by an ALB, so the fourth option is incorrect.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed