202k views
5 votes
A company is writing a Lambda function that will run in multiple stages, such as dev, test, and production. The function is dependent upon several external services, and it must call different endpoints for these services based on the function's deployment stage.

What Lambda feature will enable the developer to ensure that the code references the correct endpoints when running in each stage?

1 Answer

5 votes

Answer:

Environment Variables.

Step-by-step explanation:

Environment Variables is a Lambda function which will enable the developer to ensure that the code references the correct endpoints when running in each stage.

It allows the Lambda function to be used to point to the different

services by creating different environment variables.

User James Zaghini
by
4.0k points