A Lambda image transformation needs native libraries and dictionaries larger than the deployment package limit.
Several functions should read the same files without copying them into temporary storage on every invocation.
Which design or service is most appropriate?
Mounting Amazon EFS to Lambda separates large shared libraries from function code and makes them available at runtime.
Detailed explanation
This complicates binary distribution and does not provide a shared runtime file system.
This complicates binary distribution and does not provide a shared runtime file system.
CloudTrail stores audit logs and is not a mounted application file store.
CloudTrail stores audit logs and is not a mounted application file store.
Large dependencies are separated from code and can be read from the mounted path at runtime.
Large dependencies are separated from code and can be read from the mounted path at runtime.
Stage variables are configuration values, not storage for large shared files.
Stage variables are configuration values, not storage for large shared files.
Check official documentation
Compare the following points with the official documentation.
AWS LambdaのAmazon EFS統合、VPC設定、アクセスポイント、同時実行時の性能特性を確認する。
What to confirm
Lambdaのコードパッケージ、レイヤー、EFS、設定値ストレージの用途を区別できる。
Key points
- Lambda
- Amazon EFS
- Mount
- Access point
Notes
- Environment: AWS公式DEA-C01試験ガイドと各サービスの公式ドキュメントの確認
- Confirm the relevant DEA-C01 Skill and current AWS service documentation.
Foundation review
Package boundary
Keep code and small dependencies in the deployment unit and large shared files in storage.
Network access
Check VPC, mount targets, security groups, and throughput when Lambda uses EFS.