A development team is preparing to update an application hosted on AWS Elastic Beanstalk. The new version requires the installation of an OS-level utility (xml2) on the underlying EC2 instances. Additionally, to guarantee clean system states, the team requires that the update is only applied to newly provisioned instances rather than modifying the existing ones in-place. The update must maintain the application's full serving capacity throughout the deployment process, but the team wants to avoid performing a manual DNS redirection or CNAME swap. Which two configuration steps should the developer perform to meet these requirements? (Select TWO.)
- Create a configuration file inside a directory named .ebextensions at the root level of the application source bundle to install the package.Cevap
- Configure the deployment policy for the environment to use Immutable updates.Cevap
- CCreate a configuration file inside a directory named ebextensions at the root level of the application source bundle to install the package.
- DConfigure the deployment policy for the environment to use Rolling with additional batch updates.
- EConfigure the deployment policy for the environment to use Rolling updates.
Cevap
To meet the requirements, the developer must create a configuration file inside a directory named .ebextensions at the root level of the application source bundle, and configure the environment's deployment policy to use Immutable updates.
To satisfy the requirement of installing custom OS-level packages, the configuration file must be placed inside the .ebextensions directory at the root level of the source bundle. To satisfy the deployment requirements (clean instances, full serving capacity, and no manual CNAME swap), the Immutable deployment policy must be used. This policy provisions a secondary Auto Scaling group with the new version, merges it with the existing group once healthy, and then terminates all the old instances, ensuring no configuration residue exists.
Adım Adım Çözüm
Anahtar Kavram
AWS Elastic Beanstalk configuration files (.ebextensions) and environment deployment policies.