AWS Certified Developer – Associate — Question 200

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 AWS Lambda functions and other services to access the same file system concurrently, which is necessary for sharing and appending log entries. Options B, C, and D are incorrect because EBS does not support concurrent access by multiple Lambda functions, and local directories (/tmp and /opt) are not shared across different executions or functions, limiting access to results and logs.