QuestionQ97

VerifiedDeployment

A developer is building a new application on AWS. The application uses an AWS Lambda function that retrieves information from an Amazon DynamoDB table. The developer hard coded the DynamoDB table name into the Lambda function code. The table name might change over time. The developer does not want to modify the Lambda code if the table name changes.

Which solution will meet these requirements MOST efficiently?

Explanation

Lambda environment variables provide the simplest, most efficient approach to store configuration like table names. The runtime makes them available to code without deployment changes. Updating the environment variable automatically changes the table reference without modifying code. This is the AWS best practice for externalized configuration.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!