A company runs a high-traffic web application on AWS Elastic Beanstalk. The development team has created a new version of the application that requires custom environment properties and packages a shell script that must run on the underlying EC2 instances during deployment. The deployment must satisfy the following requirements:
- The application must maintain 100% of its serving capacity during the deployment to prevent latency spikes.
- In the event of a deployment failure (such as a health check timeout on the new version), the environment must automatically revert to the previous version with zero downtime and no manual intervention.
- The custom shell script must execute successfully during the deployment before the new version starts receiving production traffic.
Which deployment strategy and configuration action should the developer use to meet these requirements?
- Configure the deployment policy to Immutable. Place the configuration file for the shell script inside a directory named .ebextensions at the root of the application source bundle.Cevap
- BConfigure the deployment policy to Rolling with additional batch. Place the configuration file for the shell script inside a directory named .ebextensions at the root of the application source bundle.
- CConfigure the deployment policy to Immutable. Place the configuration file for the shell script inside a directory named ebextensions at the root of the application source bundle.
- DConfigure the deployment policy to All at once. Place the configuration file for the shell script inside a directory named .ebextensions at the root of the application source bundle.