
Answer-first summary for fast verification
Answer: the /tmp directory
The correct answer is A. For AWS Lambda functions, temporary files that do not need to be saved or retrieved after invocation should be stored in the /tmp directory. This directory provides a writable local storage capacity of up to 10,240 MB and is designed specifically for temporary storage within the Lambda execution environment. Other options such as Amazon EFS, Amazon EBS, and Amazon S3 are either persistent storage solutions or more expensive for temporary file handling.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
In an AWS Lambda function, where should temporary files, which are less than 10 MB, frequently accessed and modified, and not required for future retrieval, be stored?
A
the /tmp directory
B
Amazon Elastic File System (Amazon EFS)
C
Amazon Elastic Block Store (Amazon EBS)
D
Amazon S3
No comments yet.