Which solution will meet these requirements in the MOST operationally efficient way?
Create a canary release deployment for the existing API stage. Deploy the API to the existing stage. Test the updated Lambda function by using the existing URL.
Update the API Gateway API endpoint type to private. Deploy the changes to the existing API stage. Test the API by using the existing URL.
Create a new test API stage in API Gateway. Add stage variables to deploy the updated Lambda function to only the test stage. Test the updated Lambda function by using the new stage URL.
Create a new AWS CloudFormation stack to deploy a copy of the entire production API and Lambda function. Use the stack’s API URL to test the updated Lambda function.
Explanations:
A canary release would route a portion of live traffic to the updated Lambda function, potentially affecting production users, which violates the requirements.
Changing the API endpoint type to private will limit access, but deploying the changes to the existing stage risks affecting production users.
Creating a new test API stage and using stage variables to point to the updated Lambda allows isolated testing without affecting production users.
Deploying a new CloudFormation stack to replicate the environment is less efficient and introduces unnecessary complexity compared to simply using a test stage.