A developer is using Amazon S3 as the event source that invokes a Lambda function when new objects are created in the bucket.The event source mapping information is stored in the bucket notification configuration.The developer is working with different versions of the Lambda function, and has a constant need to update notification configuration so that Amazon S3 invokes the correct version.
What is the MOST efficient and effective way to achieve mapping between the S3 event and Lambda?
Use a different Lambda trigger.
Use Lambda environment variables.
Use a Lambda alias.
Use Lambda tags.
Explanations:
Using a different Lambda trigger doesn’t address the need to reference specific Lambda versions or aliases.
Lambda environment variables are configuration settings within the function and don’t control S3 event mappings.
A Lambda alias allows S3 to invoke a specific version consistently, even if versions are updated regularly.
Lambda tags are metadata used for organization and management, not for managing event source mappings.