A developer wants to add request validation to an API in production but must test the validation before modifying the production deployment. Which approach minimizes operational overhead for testing the changes first?
Choose an answer
Tap an option to check your answer.
Correct answer: Update the existing API to include request validation and deploy that change to a new API Gateway stage for testing. After testing, deploy the same update to the production stage..
Why this is the answer
The most efficient approach is to update the existing API and deploy the changes to a new API Gateway stage for testing. API Gateway stages allow for independent deployment and testing of API versions without affecting the production environment. This minimizes operational overhead because you are modifying the actual API that will eventually go to production, ensuring consistency and reducing the risk of discrepancies. After successful testing in the new stage, the same update can be promoted to the production stage. Exporting and re-importing the API as a new API, creating an entirely new API, or cloning the existing API all introduce unnecessary steps and potential for configuration drift. These methods require maintaining separate API definitions or resources, which increases complexity and the likelihood of errors when transferring changes back to the original production API.
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