AWS Certified Data Engineer Associate · Free Practice Question Medium
Question 39
When troubleshooting a data processing application that frequently times out during peak load times on AWS Lambda, what is the FIRST step you should take to address the issue?
- A Convert the Lambda function to an EC2 instance.
- B Decrease the timeout setting on the Lambda function.
- C Increase the memory allocation to the Lambda function.
- D Implement an Amazon SQS queue to buffer incoming requests.
Reveal correct answer
Correct answer: C
Explanation
Increasing the memory allocation to a Lambda function can improve its execution time, as more memory generally comes with a proportional increase in CPU and network throughput. This can help to mitigate timeouts during peak loads by allowing the function to process events faster.A. Converting the Lambda function to an EC2 instance is not the first step to take when troubleshooting timeouts on AWS Lambda. While EC2 instances can provide more control and flexibility, they may not address the underlying issue causing the timeouts during peak load times.
B. Decreasing the timeout setting on the Lambda function is not recommended as the first step to address timeouts during peak load times. This may result in prematurely terminating the function before it completes processing, potentially causing data loss or incomplete operations.
C. Increasing the memory allocation to the Lambda function can improve its performance during peak load times by providing more resources for processing. This can help reduce the likelihood of timeouts and improve the overall stability of the application.
D. Implementing an Amazon SQS queue to buffer incoming requests may help with managing the workload and reducing the impact of peak load times on the Lambda function. However, this solution may not directly address the root cause of the timeouts and should be considered after optimizing the Lambda function itself.
Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
