
Answer-first summary for fast verification
Answer: By deploying API versions as distinct stages with unique endpoints, utilizing stage variables for additional context.
The correct answer is D: Deploy the API versions as unique stages with unique endpoints and use stage variables to provide further context. This approach allows you to manage and deploy different versions of your APIs effectively. API Gateway deployment stages can represent different environments such as alpha, beta, and production, each with its own configuration. By using stage variables, you can customize the behavior and interactions of each deployment stage with different backend endpoints, thereby providing a straightforward and scalable method to handle multiple versions.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
How should a company implement versioning for a REST service using Amazon API Gateway and AWS Lambda for testing purposes?
A
By utilizing an X-Version header to indicate the version and pass it to Lambda functions.
B
By creating an API Gateway Lambda authorizer for directing clients to the appropriate API version.
C
By establishing an API Gateway resource policy to segregate versions and supply context to Lambda functions.
D
By deploying API versions as distinct stages with unique endpoints, utilizing stage variables for additional context.
No comments yet.