Q45 — AWS DVA-C02 Ch.2
Question 45 of 100 | ← Chapter 2
A developer uses Amazon S3 as an event source, invoking 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 uses different versions of the Lambda function and frequently needs to update the notification configuration so Amazon S3 invokes the correct version.
- A. Use different Lambda triggers.
- B. Use Lambda environment variables.
- C. Use Lambda aliases. ✓
- D. Use Lambda tags.
Correct Answer: C. Use Lambda aliases.
Explanation
You can assign an alias to a specific version and link the S3 trigger to that alias. To change which Lambda version S3 invokes, you only need to update the alias.