Scenario: You are designing a serverless architecture where multiple Lambda functions need to use a common library. How would you implement this using Lambda Layers?
- Create a layer containing the common library and attach it to each Lambda function requiring it
- Embed the library directly into each Lambda function
- Use Amazon S3 to store the library and download it within each function
- Utilize Amazon RDS for storing and accessing the library
By creating a layer containing the common library and associating it with each Lambda function, you ensure that the library is available to all functions without duplication.
Loading...
Related Quiz
- Scenario: You're tasked with performance testing a web application. How would you simulate concurrent user sessions to assess its scalability?
- How do you handle errors and retries when using custom event sources with AWS Lambda?
- Custom event sources enable AWS Lambda functions to respond to __________.
- Scenario: Your company's application experiences intermittent latency spikes. Explain how you would use CloudWatch Metrics to diagnose and address this issue.
- Scenario: Your application receives a sudden surge of incoming messages through SNS. How can you ensure that the AWS Lambda functions triggered by these messages can handle the increased load efficiently?