
Answer-first summary for fast verification
Answer: Utilize Amazon EFS for shared file storage and Lambda mounting.
The requirement is to have a shared file system that allows for appending to files and can be accessed by multiple Lambda functions, AWS services, and on-premises resources. Amazon Elastic File System (Amazon EFS) is a good fit for these requirements. EFS provides a scalable and elastic NFS file system which can be mounted to multiple EC2 instances and Lambda functions at the same time, making it easier for these resources to share files. You can also append to existing files on an EFS file system, which meets the requirement for a shared log file that can have new entries appended to it.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
In VPC mode, an AWS Lambda function triggered by an S3 event must process objects, record analytics in files, and generate log entries appended to a shared log file. Lambda functions, AWS services, and on-premises resources require access to these files. What is the appropriate solution for file sharing and appending?
A
Utilize Amazon EFS for shared file storage and Lambda mounting.
B
Implement Amazon EBS Multi-Attach for volume attachment across Lambda functions.
C
Leverage the /tmp directory for file storage and log appending within Lambda.
D
/opt directory reference for file storage and log appending in Lambda.
No comments yet.