A developer needs to deploy a new version of a high-traffic web application to an AWS Elastic Beanstalk environment. The deployment must satisfy the following requirements:
- The environment must maintain of its current instance capacity during the deployment to prevent performance degradation.
- In the event of a deployment failure, the rollback process must be quick and have zero impact on the active, healthy instances currently serving production traffic.
- Custom environment properties and configuration files must be applied automatically as part of the application source bundle.
Which deployment strategy and configuration approach should the developer use?
- AUse the Rolling deployment policy, and place the configuration files in a .ebextensions folder at the root of the source bundle.
- BUse the Rolling with additional batch deployment policy, and place the configuration files in an ebextensions folder at the root of the source bundle.
- Use the Immutable deployment policy, and place the configuration files in a .ebextensions folder at the root of the source bundle.Cevap
- DUse the All at once deployment policy, and place the configuration files in a .ebextensions folder at the root of the source bundle.
Cevap
Use the Immutable deployment policy, and place the configuration files in a .ebextensions folder at the root of the source bundle.
The Immutable deployment policy ensures that a completely new set of instances (in a temporary Auto Scaling group) is created to deploy the new version alongside the existing instances. This maintains capacity of the original environment during the deployment. If the deployment fails, Elastic Beanstalk terminates the new Auto Scaling group, causing zero impact to the original, running instances and allowing an instant rollback. Custom configuration files must be located in a folder named .ebextensions (with a leading dot) at the root of the application source bundle to be processed by Elastic Beanstalk.
Adım Adım Çözüm
Anahtar Kavram
AWS Elastic Beanstalk Deployment Policies and Configuration Files