A developer is preparing to deploy a Node.js web application to an AWS Elastic Beanstalk environment. The deployment has two new requirements: it must securely retrieve a database password that is configured to rotate automatically, and it must install a custom security daemon package on the underlying Amazon EC2 instances during environment provisioning.
Which two actions should the developer take to meet these requirements?
- Store the database password in AWS Secrets Manager, and retrieve the secret programmatically in the application code.Cevap
- Create a configuration file containing the package installation instructions and place it inside a directory named `.ebextensions` at the root of the application source bundle.Cevap
- CStore the database password in AWS Systems Manager Parameter Store and configure Parameter Store to automatically rotate the value.
- DCreate a configuration file containing the package installation instructions and place it inside a directory named `ebextensions` (without a leading period) at the root of the application source bundle.
- ECreate a configuration file containing the package installation instructions and place it inside a directory named `.ebextensions` within the `/src` folder of the application source bundle.
Cevap
Store the database password in AWS Secrets Manager to be retrieved programmatically by the application, and place the configuration file inside the `.ebextensions` directory at the root of the application source bundle.
To securely manage a database password that needs automatic rotation, AWS Secrets Manager is the correct choice because it natively integrates with rotation schedules. To customize the EC2 instances (such as installing packages), configuration files must be stored in the `.ebextensions` folder located at the root of the application source bundle. Therefore, storing the password in Secrets Manager and placing the configuration file in `.ebextensions` at the root are the correct actions.
Adım Adım Çözüm
Anahtar Kavram
AWS Elastic Beanstalk environment customization using `.ebextensions` and secure secret management with Secrets Manager vs Parameter Store.
Tahmini Süre:1m 30s