A developer is updating a critical serverless API hosted on AWS Lambda using AWS CodeDeploy. The deployment must meet the following requirements:
- Direct only of the production traffic to the new Lambda function version initially.
- Route all remaining traffic to the new version after a -minute monitoring window.
- Roll back the deployment automatically if any error metrics exceed the normal threshold.
Which of the following configuration options should the developer select to meet these requirements? (Select TWO.)
- Specify CodeDeployDefault.LambdaCanary10Percent10Minutes as the deployment configuration.Cevap
- Configure CloudWatch alarms in the CodeDeploy deployment group to monitor error metrics and trigger automatic rollbacks.Cevap
- CSpecify CodeDeployDefault.LambdaLinear10PercentEvery10Minutes as the deployment configuration.
- DSpecify CodeDeployDefault.LambdaCanary10Percent5Minutes as the deployment configuration.
- ECreate an Amazon EventBridge rule to trigger a custom Lambda function that deletes the new alias version if an error occurs.
Cevap
To meet the requirements, the developer must select the Canary 10 percent 10 minutes deployment configuration to manage the traffic routing, and configure CloudWatch alarms on the CodeDeploy deployment group to handle automatic rollbacks on error metrics.
The correct configuration is achieved by using the Canary 10 percent 10 minutes deployment strategy and configuring CloudWatch alarms in the CodeDeploy deployment group. The canary strategy ensures the new version receives of the traffic initially, and shifts the remaining traffic after minutes. The CloudWatch alarms enable CodeDeploy to monitor the error metrics and perform an automated rollback to the previous version if thresholds are breached.
Adım Adım Çözüm
Anahtar Kavram
AWS Lambda Canary Deployment and Automated Rollbacks using CodeDeploy
Tahmini Süre:1m 30s