A developer is deploying an updated version of a REST API to Amazon API Gateway. The developer must test the update by routing of production traffic to the new version. The remaining of traffic must continue to use the current version. The developer also needs the ability to instantly roll back the update if errors occur, or fully promote the update to production if it is successful. Which TWO configurations or actions must the developer perform to meet these requirements? (Select TWO.)
- Create a canary release on the existing API Gateway stage and configure the canary traffic percentage to .Cevap
- Delete the canary release from the stage to roll back, or promote the canary release to make the new version the active production version.Cevap
- CConfigure an Amazon Route 53 weighted routing policy pointing to two different API Gateway stages, one for production () and one for canary ().
- DDeploy the new API version to a new stage and configure a Lambda function with stage variables to dynamically calculate and split traffic.
- EConfigure an AWS CodeDeploy deployment group with a canary configuration targeting the API Gateway stage.
Cevap
To meet the requirements, the developer must create a canary release on the API Gateway stage configured to receive 15% of the traffic, and then either delete the canary release to roll back or promote it to replace the production version if successful.
Creating a canary release on the existing stage and specifying traffic natively implements the requested traffic split. Once configured, any new deployment to that stage routes the specified portion of traffic to the new code. Deleting the canary from the stage immediately halts the canary traffic routing and serves of traffic from the production version, fulfilling the instant rollback requirement. Promoting the canary upgrades the stage's production settings to point to the new deployment.
Adım Adım Çözüm
Anahtar Kavram
Amazon API Gateway stages support native canary releases. Enabling a canary on a stage allows a developer to route a portion of the traffic to a new deployment, test its stability, and either promote it to production or delete the canary to roll back.
Tahmini Süre:2m 0s