Topic 1 Question 211
A developer is creating an AWS Lambda function that will generate and export a file. The function requires 100 MB of temporary storage for temporary files while running. These files will not be needed after the function is complete.
How can the developer MOST efficiently handle the temporary files?
Store the files in Amazon Elastic Block Store (Amazon EBS) and delete the files at the end of the Lambda function.
Copy the files to Amazon Elastic File System (Amazon EFS) and delete the files at the end of the Lambda function.
Store the files in the /tmp directory and delete the files at the end of the Lambda function.
Copy the files to an Amazon S3 bucket with a lifecycle policy to delete the files.
ユーザの投票
コメント(4)
C. Store the files in the /tmp directory and delete the files at the end of the Lambda function. The /tmp directory is a dedicated temporary storage location provided by AWS Lambda for storing temporary files during the execution of the function.
It's cost-effective and efficient because it doesn't involve additional AWS services or storage costs.
AWS Lambda automatically manages the /tmp directory for you, including clearing its contents after the function execution is complete. You don't need to explicitly delete the files; Lambda takes care of it.
👍 3Claire_KMT2023/10/27- 正解だと思う選択肢: C
Option C is the best choice for efficient handling of temporary files within an AWS Lambda function.
👍 2LemonGremlin2023/10/27 Starting March 2022, Lambda now supports increasing /tmp directory's maximum size limit up to 10,240MB. More information available. https://aws.amazon.com/blogs/aws/aws-lambda-now-supports-up-to-10-gb-ephemeral-storage/
👍 2sankhagg2023/12/08
シャッフルモード