volume_mute

What is the quickest and safest way to handle a situation where you deployed a recursive Lambda function by mistake?

publish date2024/08/30 02:16:52.137143 UTC

volume_mute
Delete the function and build a new one
Take your time to fix the function while it is still running
Set the concurrent execution limit to zero while you fix the code
Wait until it finishes execution then fix it

Correct Answer

Set the concurrent execution limit to zero while you fix the code

Explanation

Avoid a situation in which a function calls itself.  Recursive code could lead to uncontrolled scaling of invocations that would make you lose control of your concurrency. 

If you accidentally deploy recursive code, you can quickly set the concurrent execution limit to zero by using the console or command line to immediately throttle requests while you fix the code.

 
 

Reference

AWS Skill Builder


Quizzes you can take where this question appears