A developer is updating a serverless application hosted on AWS Lambda and wants to roll out a new function version using AWS CodeDeploy. The deployment must route of incoming traffic to the new version initially. After a -minute observation period, if no errors are detected by Amazon CloudWatch alarms, all remaining traffic () must be routed to the new version. Which AWS CodeDeploy deployment configuration meets these requirements?
- ACodeDeployDefault.LambdaLinear10PercentEvery10Minutes
- CodeDeployDefault.LambdaCanary10Percent10MinutesCevap
- CCodeDeployDefault.LambdaCanary10Percent5Minutes
- DCodeDeployDefault.LambdaAllAtOnce
Cevap
CodeDeployDefault.LambdaCanary10Percent10Minutes
The configuration CodeDeployDefault.LambdaCanary10Percent10Minutes shifts of the traffic to the new Lambda version initially, waits for a -minute interval to monitor for errors via CloudWatch alarms, and then routes the remaining of the traffic to the new version.
Adım Adım Çözüm
Anahtar Kavram
AWS CodeDeploy deployment configurations for AWS Lambda allow developers to gradually shift traffic between versions using Canary or Linear strategies.