
Ultimate access to all questions.
A developer is working on a project to create a RESTful API service that uses Amazon API Gateway and integrates with AWS Lambda functions. The service needs to accommodate different versions of the API to facilitate testing and version control.
As a Developer Associate, what would you recommend as the most effective way to achieve this?
A
Use an X-Version header to identify which version is being called and pass that header to the Lambda function
B
Deploy the API versions as unique stages with unique endpoints and use stage variables to provide the context to identify the API versions
C
Set up an API Gateway resource policy to identify the API versions and provide context to the Lambda function
D
Use an API Gateway Lambda authorizer to route API clients to the correct API version