A developer is creating an AWS Lambda function in VPC mode. An Amazon S3 event will invoke the Lambda function when an object is uploaded into an S3 bucket. The Lambda function will process the object and produce some analytic results that will be recorded into a file. Each processed object will also generate a log entry that will be recorded into a file. Other Lambda functions, AWS services, and on-premises resources must have access to the result files and log file. Each log entry must also be appended to the same shared log file. The developer needs a solution that can share files and append results into an existing file. Which solution should the developer use to meet these requirements?
Select one answer.
Marked answer: A
Community Discussion
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
Chose A1
B) Eliminated - Amazon Elastic Block Store (EBS) volumes are designed for single-instance use or Multi-Attach for specific EC2 instances, not for Lambda functions or serverless environments. C) Eliminated - The /tmp directory in Lambda is ephemeral storage that exists only for the duration of the Lambda invocation. It is not shared between functions or persistent across invocations D) Eliminated - The /opt directory in Lambda is used for deploying custom runtimes or external libraries. It is read-only during execution, so it cannot be used to store or update files.