A developer is updating a web application running on an AWS Elastic Beanstalk environment. The application is highly sensitive to customer-facing bugs, so the developer wants to test the new version using a small percentage of real production traffic () for a duration of minutes. If the new version triggers any Amazon CloudWatch alarms during this time, the traffic must immediately route back to the old version. If no alarms are triggered, the remaining of traffic should automatically shift to the new version. Which deployment policy should the developer configure in the Elastic Beanstalk environment?
- AAll at once
- Traffic splittingCevap
- CImmutable
- DRolling with additional batch
Cevap
Traffic splitting
Traffic splitting is the correct answer because it is the only native AWS Elastic Beanstalk deployment policy that allows developers to perform canary testing. It launches a temporary Auto Scaling group with the new version, routes a specified percentage of traffic (e.g., ) to it for a set evaluation period (e.g., minutes), monitors health using CloudWatch alarms, and automatically rolls back if alarms are triggered, or promotes the deployment to 100\% traffic if successful.
Adım Adım Çözüm
Anahtar Kavram
AWS Elastic Beanstalk Traffic Splitting Deployment Policy