Home › Forums › AWS › AWS Certified Solutions Architect Associate › Lambda execution period
-
An application is using a Lambda function to process complex financial data that run for 15 minutes on average. Most invocations were successfully processed. However, you noticed that there are a few terminated invocations throughout the day, which caused data discrepancy in the application.
Which of the following is the most likely cause of this issue?
A) The failed Lambda functions have been running for over 15 minutes and reached the maximum execution time.
B) The concurrent execution limit has been reached.
C) The Lambda function contains a recursive code and has been running for over 15 minutes.
D) The failed Lambda Invocations contain a ServiceException error which means that the AWS Lambda service encountered an internal error.Hello everyone. I answered A but the answer is B. Why is that? What’s the difference?
Thanks,
Theodosios -
Hello theodosiostziomakas,
Thank you for posting here. The issue described in the scenario is most likely caused by the execution timeout limit of AWS Lambda, making Option 1 the correct answer. AWS Lambda has a maximum execution timeout of 15 minutes per invocation. When a function exceeds this limit, it is forcibly terminated. Since the application’s Lambda functions process complex financial data and run for approximately 15 minutes, any slight delay in execution would result in termination due to the timeout limit.
Option 2, on the other hand, refers to the concurrent execution limit, which governs the total number of Lambda instances that can run simultaneously. When this limit is reached, new invocations are throttled or rejected, but existing invocations are not affected. This means that the terminated invocations observed in the scenario cannot be attributed to reaching the concurrent execution limit.
The key difference is that the execution timeout terminates invocations exceeding the maximum time limit, while the concurrent execution limit only affects the ability to start new invocations.
Regards,
Nikee @ Tutorials Dojo -
Thank you, I understood it now.
Kind regards,
Theodosios
-
Hello theodosiostziomakas,
Happy to help!
If you have any further questions, please don’t hesitate to contact us.Best regards,
Nikee @ Tutorials Dojo
-
Log in to reply.