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
- A. Update the environment variable values on version 10 of the Lambda function. Do not change the PROD alias.
- B. Update the environment variable values on version 10 of the Lambda function. Save the changes to create version 11. Update the PROD alias so that it points to version 11.
- C. Update the environment variable values on the SLATEST version. Do not change the PROD alias
- D. Update the environment variable values on the SLATEST version. Publish SLATEST to create version 11 of the Lambda function. Update the PROD alias so that it points to version 11.
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.