A company is creating a REST service using an Amazon API Gateway with AWS Lambda integration. The service must run different versions for testing purposes.
What would be the BEST way to accomplish this?
A.
Use an X-Version header to denote which version is being called and pass that header to the Lambda function(s).
B.
Create an API Gateway Lambda authorizer to route API clients to the correct API version.
C.
Create an API Gateway resource policy to isolate versions and provide context to the Lambda function(s).
D.
Deploy the API versions as unique stages with unique endpoints and use stage variables to provide further context.
API Gateway allows you to create different stages for your API, each with its own configuration. These stages can represent different versions of your API (like development, test, and production). You can deploy your API to these stages and have different configurations for each stage, such as different Lambda functions, stage variables, or settings. This approach is straightforward and aligns with best practices for managing different environments in API Gateway.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
TanTran04
Highly Voted 10 months, 2 weeks ago65703c1
Most Recent 5 months agoKarBiswa
7 months, 3 weeks agoSerialiDr
9 months agoClaire_KMT
12 months ago