AWS Certified SysOps Administrator – Associate — Question 258

A developer creates an AWS Lambda function that runs when an object is put into an Amazon S3 bucket. The function reformats the object and places the object back into the S3 bucket. During testing, the developer notices a recursive invocation loop. The developer asks a SysOps administrator to immediately stop the recursive invocations.

What should the SysOps administrator do to stop the loop without errors?

Answer options

Correct answer: B

Explanation

The correct answer is B because setting the function’s reserved concurrency to 0 effectively prevents any instances of the function from running, thereby stopping the recursive invocations. Option A would delete data and not address the issue directly. Option C would prevent the function from accessing the bucket, but not stop the invocations that are already queued. Option D does not stop the current invocations either; it simply creates a new version of the function.