AWS Certified Developer – Associate — Question 222

A government agency deploys a REST application on AWS. The agency integrates the application with AWS Lambda. The agency accesses the application through Amazon API Gateway. The agency has the following policies:

• Number versions to manage the deployment of all Lambda functions to production
• Create a PROD alias to point to each function
• Reference the PROD aliases in the production stages of API Gateway

One Lambda function contains the environment variables that are used to externalize connection parameters. The PROD alias points to version 10 of the Lambda function. A developer needs to update the connection parameters and ensure that the updated Lambda function is available on production.

Which solution will meet these requirements?

Answer options

Correct answer: D

Explanation

The correct answer is D because it ensures that the changes to the environment variables are saved as a new version (version 11) and the PROD alias is updated to point to this latest version, making the updates available in production. Option A does not create a new version to capture the changes, while option B does not utilize the SLATEST version. Option C fails to create a new version, which is necessary for managing updates in a controlled manner.