A developer created a Lambda function triggered by S3 PutObject events. The function reformats the object and writes it back to the same bucket, causing a recursive invocation loop during testing. The developer asks the SysOps administrator to immediately stop the recursion without causing errors. What should the administrator do?
Choose an answer
Tap an option to check your answer.
Correct answer: Set the function’s reserved concurrency to 0..
Why this is the answer
Setting the function's reserved concurrency to 0 immediately stops new invocations of the Lambda function. This effectively halts the recursive loop without deleting data or causing access errors. The function will not be triggered while its reserved concurrency is 0. Deleting objects from the S3 bucket would stop events but also destroy data, which is not ideal. Modifying the S3 bucket policy to deny access would cause errors for the Lambda function and potentially other legitimate operations. Publishing a new version of the Lambda function would not immediately stop ongoing or new invocations of the problematic version, and the new version would likely still have the same recursive logic if not fixed.
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