AWS Certified Developer – Associate — Question 39
A developer is creating a serverless web application and maintains different branches of code. The developer wants to avoid updating the Amazon API Gateway target endpoint each time a new code push is performed.
What solution would allow the developer to perform a code push efficiently, without the need to update the API Gateway?
Answer options
- A. Associate different AWS Lambda functions to an API Gateway target endpoint.
- B. Create different stages in API Gateway. then associate API Gateway with AWS Lambda.
- C. Create aliases and versions in AWS Lambda.
- D. Tag the AWS Lambda functions with different names.
Correct answer: C
Explanation
Creating aliases and versions in AWS Lambda allows the developer to manage different iterations of the function without changing the API Gateway endpoint. The other options do not provide a mechanism for seamless updates linked to the API Gateway, necessitating manual changes which the developer wants to avoid.