AWS Certified Developer Associate (#81)

A Lambda function is packaged for deployment to multiple environments, including development, test, production, etc. Each environment has unique set of resources such as databases, etc. How can the Lambda function use the resources for the current environment?

Apply tags to the Lambda functions.
Hardcore resources in the source code.
Use environment variables for the Lambda functions.
Use separate function for development and production.