A Lambda function behind an ALB needs to call a downstream HTTP service but must honor client-supplied timeouts and cap total request time. Which configuration best ensures the Lambda doesn’t exceed the ALB/Lambda integration limit and that timeouts behave predictably?

Answer

Set Lambda timeout slightly less than the ALB/lambda integration limit and set HTTP client timeout to be lower than the remaining execution time

Explanation

Aligning Lambda timeout and downstream HTTP timeout prevents truncated responses and avoids the function being killed mid-request. A client can request timeouts that are then bounded by server-side execution limits.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list