An enterprise is designing a serverless deployment pipeline for a critical payment gateway service. The service is built using AWS Lambda and Amazon API Gateway, and it persists transactions in an Amazon DynamoDB table. The deployment strategy must satisfy the following constraints:
* Deployments must be fully automated with zero downtime.
* Traffic must shift gradually: of the traffic must route to the new version of the Lambda function for a -minute evaluation period. If no issues are detected, the remaining must shift immediately.
* If the API Gateway error rate or the Lambda function error rate exceeds during the evaluation period, the deployment must automatically roll back within minutes.
* The DynamoDB schema updates must not disrupt the active or deploying versions of the Lambda function.
Which two actions should the Solutions Architect take to implement this deployment strategy? (Select two.)
- Configure the AWS CodeDeploy deployment group to use a custom deployment configuration on the Lambda compute platform, specifying a canary traffic shifting type with a traffic percentage and a -minute evaluation time.Cevap
- Configure the Amazon API Gateway integration to point to a specific Lambda function alias, and associate CloudWatch alarms monitoring Lambda errors and API Gateway errors as rollback triggers in the AWS CodeDeploy deployment group.Cevap
- CConfigure the Amazon API Gateway integration to point to the Lambda function's LATEST version, and use API Gateway stage canary deployment settings to route of the traffic to a new deployment stage for a -minute evaluation.
- DConfigure AWS CodePipeline to invoke an AWS Step Functions state machine that loops for minutes, using the AWS SDK to incrementally update the traffic weight of the API Gateway stage variable mapping to the LATEST version.
- EDeploy an Application Load Balancer (ALB) to target two separate target groups, each referencing a different version of the Lambda function, and use AWS CodeDeploy with the EC2 compute platform to manage weight shifting between target groups.