How to provide Lambda access to shared data and libraries?
A developer has AWS Lambda functions that need to access a company's internal data science libraries and reference data. Separate teams manage the libraries and the data. The teams must be able to update and upload new data independently. The Lambda functions are connected to the company's central VPC. Which solution will provide the Lambda functions with access to the libraries and data?
Community Votes
100% of anonymous learners picked answer C. Votes are pick records left by other test-takers — they are not the verified answer.
Community Insight
This question tests the ability to integrate persistent shared storage with Lambda, specifically distinguishing between the compatible EFS service and the incompatible EBS service.
To provide AWS Lambda functions with access to shared libraries and reference data that require independent updates, Amazon Elastic File System (Amazon EFS) is the optimal solution. The community consensus confirms that mounting an EFS file system allows Lambda functions to persistently access shared data within a VPC.
Selecting Amazon EBS is a common error because EBS volumes are strictly for EC2 instances and cannot be attached to Lambda functions.
Community Discussion (4 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Why the Answer Is Correct
Amazon EFS provides a scalable, elastic file system that supports network file system (NFS) protocols, making it ideal for Lambda functions running in a VPC. It allows concurrent read/write access, enabling separate teams to update libraries and data independently without modifying the Lambda function code or deployment packages. This architecture satisfies the requirement for shared, persistent storage accessible by multiple compute resources.Why the Other Options Are Wrong
Option A is incorrect because Lambda functions do not support attaching Amazon EBS volumes; EBS is block storage designed exclusively for EC2 instances. Option B is incorrect because the/tmp directory is ephemeral, local to the specific execution environment, and limited in size (up to 10 GB), making it unsuitable for sharing data across different functions or teams. Option D is incorrect because Amazon FSx for Windows File Server relies on SMB protocols, which are not natively compatible with the Linux-based environment where Lambda functions operate.Community Comment Notes
Community members unanimously selected Option C, emphasizing that EBS cannot be used with Lambda. Several comments cited official AWS documentation regarding Lambda configuration for file systems, reinforcing that EFS is the standard best practice for providing shared file access to serverless functions in a VPC.Official Reference
Exam Strategy
Remember that Lambda functions are ephemeral and stateless. Whenever the scenario requires persistent, shared, or large-scale file storage accessible by multiple functions or teams, immediately identify Amazon EFS as the correct service and rule out EBS.
Related Analysis
Practice All DVA-C02 Questions
Access 100 questions with complete answers and detailed explanations.
View Full DVA-C02 Practice Test →