AWS Certified Developer – Associate — Question 249
A developer registered an AWS Lambda function as a target for an Application Load Balancer (ALB) using a CLI command. However, the Lambda function is not being invoked when the client sends requests through the ALB.
Why is the Lambda function not being invoked?
Answer options
- A. A Lambda function cannot be registered as a target for an ALB.
- B. A Lambda function can be registered with an ALB using AWS Management Console only.
- C. The permissions to invoke the Lambda function are missing.
- D. Cross-zone is not enabled on the ALB.
Correct answer: C
Explanation
The correct answer is C because without the proper permissions, the ALB cannot invoke the Lambda function. Option A is incorrect since Lambda functions can be targets for ALBs. Option B is false as Lambda functions can be registered through the CLI. Option D is irrelevant to the invocation of the Lambda function.