A developer is deploying an update to a production web application hosted on AWS Elastic Beanstalk. The update must satisfy the following constraints:
* The application must maintain its full capacity of active instances throughout the deployment process to handle consistent user traffic.
* If the new version fails to deploy or pass health checks, the environment must roll back to the previous version automatically and as quickly as possible.
* The update must not require a DNS CNAME swap, as the domain name is mapped to a static resource external to the environment.
* The configuration must be managed programmatically as code inside the application source bundle.
Which configuration file path and content structure will satisfy these requirements?
- AA file named `.ebextensions/deployment.config` with the following content:
yaml
option_settings:
aws:elasticbeanstalk:command:
DeploymentPolicy: RollingWithAdditionalBatch - BA file named `ebextensions/deployment.config` with the following content:
yaml
option_settings:
aws:elasticbeanstalk:command:
DeploymentPolicy: Immutable - A file named `.ebextensions/deployment.config` with the following content:
yaml
option_settings:
aws:elasticbeanstalk:command:
DeploymentPolicy: Immutable
Answer - DA file named `.ebextensions/deployment.config` with the following content:
yaml
option_settings:
aws:elasticbeanstalk:command:
DeploymentPolicy: AllAtOnce