AWS Certified Developer – Associate (DVA-C02) — Question 125

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?

Answer options

Correct answer: A

Explanation

The correct answer is A because Amazon EFS allows multiple resources to access the same file system simultaneously, making it suitable for sharing files and appending log entries. Option B is incorrect as EBS does not support concurrent access from multiple Lambda functions, which is essential in this scenario. Options C and D are also not viable since the /tmp and /opt directories are not designed for persistent storage or concurrent access by multiple functions.