🔥 3-day streak
AWS Certified Developer - Associate129 / 150
Question 129 of 150
A team deploys a serverless application using AWS SAM. The same application is deployed to 'dev', 'staging', and 'prod' environments, each represented by a separate API Gateway stage. The Lambda function behind the API must call a different downstream service endpoint depending on the stage it is invoked from, WITHOUT redeploying separate copies of the function code for each environment. What is the recommended approach to pass the correct endpoint value to the Lambda function per stage?
Reviewed for accuracy · Report an issueNext question