AWS Certified Developer – Associate (DVA-C02) — Question 240

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?

Answer options

Correct answer: D

Explanation

Deploying API versions as unique stages with distinct endpoints allows for better management and testing of different versions without interference. This method provides clear separation and can utilize stage variables for context, which is not achievable with headers or authorizers alone. The other options do not provide a robust solution for managing multiple versions effectively.