List of questions
Related questions
Question 73 - DVA-C02 discussion
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?
A.
Create a Lambda environment variable to store the table name. Use the standard method for the programming language to retrieve the variable.
B.
Store the table name in a file. Store the file in the /tmp folder. Use the SDK for the programming language to retrieve the table name.
C.
Create a file to store the table name. Zip the file and upload the file to the Lambda layer. Use the SDK for the programming language to retrieve the table name.
D.
Create a global variable that is outside the handler in the Lambda function to store the table name.
Your answer:
0 comments
Sorted by
Leave a comment first