An API Gateway API invokes a Lambda function via a Lambda alias. A developer updated the code and wants to let other developers test the new version without affecting customers who use the API. Which approach provides this with the least operational overhead?
Choose an answer
Tap an option to check your answer.
Correct answer: Publish a new Lambda version, create a new API Gateway stage integrated with that new version, and use the new stage for testing..
Why this is the answer
Publishing a new Lambda version and creating a new API Gateway stage integrated with it is the most efficient solution. This allows developers to test the new code in isolation without impacting the production API Gateway stage or customer traffic. API Gateway stages are designed for this exact purpose, providing separate deployment environments (e.g., dev, test, prod) for the same API. Changing the existing Lambda alias to use weighted routing would expose the new version to some production traffic, which is not desired for initial testing. Deploying a filtering Lambda adds unnecessary complexity and operational overhead. Creating a separate API Gateway API is overkill; a new stage within the existing API is sufficient and more manageable.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed