A developer created an AWS Lambda function to process data in an application. The function pulls large objects from an Amazon S3 bucket, processes the data, and loads the processed data into a second S3 bucket. Application users have reported slow response times. The developer checks the logs and finds that Lambda function invocations run much slower than expected. The function itself is simple and has a small deployment package. The function initializes quickly. The developer needs to improve the performance of the application. Which solution will meet this requirement with the LEAST operational overhead?
Configuring the Lambda function to use ephemeral storage and processing data in the /tmp directory improves performance by leveraging local storage during execution.
Why Option C is Correct:
Ephemeral Storage: Lambda provides temporary storage (up to 10 GB) in the /tmp directory for each invocation, which is faster than pulling data directly from S3 multiple times.
Performance Boost: Data can be downloaded to /tmp, processed locally, and uploaded to the destination S3 bucket, minimizing S3 network calls.
Low Overhead: This approach requires only minimal changes to the function's configuration.
Why Not Other Options:
Option A: Using Amazon EFS adds complexity and is unnecessary for this use case.
Option B: Scheduling the function does not address the root cause of slow performance.
Option D: Lambda layers improve deployment efficiency, not runtime performance for this scenario.
Eleni
9 days agoFranklyn
14 days agoShakira
19 days agoKent
24 days agoValda
30 days agoIlene
1 month agoSkye
1 month agoHana
2 months agoGoldie
2 months agoKenny
2 months agoCarey
2 months agoAhmad
2 months agoNaomi
2 months agoElbert
3 months agoMerri
3 months agoDeonna
3 months agoDenny
3 months agoAmber
3 months agoOcie
4 months agoJohnna
4 months agoLizbeth
4 months agoAlease
4 months agoStarr
4 months agoVirgina
5 months agoQuentin
5 months ago