
Answer-first summary for fast verification
Answer: Update stage variable value from the stage name of test to that of prod
Update stage variable value from the stage name of test to that of prod After creating your API, you must deploy it to make it callable by your users. To deploy an API, you create an API deployment and associate it with a stage. A stage is a logical reference to a lifecycle state of your API (for example, dev, prod, beta, v2). API stages are identified by the API ID and stage name. They're included in the URL that you use to invoke the API. Each stage is a named reference to a deployment of the API and is made available for client applications to call. Stages enable robust version control of your API. In our current use-case, after the updates pass the test, you can promote the test stage to the prod stage. The promotion can be done by redeploying the API to the prod stage or updating a stage variable value from the stage name of test to that of prod. Incorrect options: Deploy the API without choosing a stage. This way, the working deployment will be updated in all stages - An API can only be deployed to a stage. Hence, it is not possible to deploy an API without choosing a stage. Delete the existing prod stage. Create a new stage with the same name (prod) and deploy the tested version on this stage* - This is possible, but not an optimal way of deploying a change. Also, as prod refers to real production system, this option will result in downtime. API performance is optimized in a different way for prod environments. Hence, promoting test to prod is not correct. The promotion should be done by redeploying the API to the prod stage - For each stage, you can optimize API performance by adjusting the default account-level request throttling limits and enabling API caching. And these settings can be changed/updated at any time.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
A development team has implemented a REST API using Amazon API Gateway, dividing it into two distinct stages: a test stage for test builds and a prod stage for stable builds. Once updates successfully pass the test in the test stage, the team wants to promote these updates to the prod stage.
What is the most efficient solution for achieving this promotion process?
A
Update stage variable value from the stage name of test to that of prod
B
API performance is optimized in a different way for prod environments. Hence, promoting test to prod is not correct. The promotion should be done by redeploying the API to the prod stage
C
Delete the existing prod stage. Create a new stage with the same name (prod) and deploy the tested version on this stage
D
Deploy the API without choosing a stage. This way, the working deployment will be updated in all stages
No comments yet.